Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : MM DHT22
Author | Message | ||||
Chrisk Senior Member Joined: 21/12/2014 Location: AustraliaPosts: 118 |
Hi Guys Has anyone got a Basic program to get temperature and humidity using the DHT22. I have a colour Maximite running ver 4.5. Most programs that I have found will not run on my Maximite. chrisk |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 5923 |
Welcome to the forum. The maximite doesn't have support for the DHT22 yet. The micromite Mk2 does and it is likely that support for the maximite will be added in a future update. Jim VK7JH MMedit MMBasic Help |
||||
Chrisk Senior Member Joined: 21/12/2014 Location: AustraliaPosts: 118 |
Thankyou Jim I was aware of the micromite because of an article in Silicon Chip. Was hoping that someone might have a solution, but will look out for the update. Chris |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi Chris I have DHT22 or DHT11 solution it's is based on a pic 12f629 (8 pin device) all it does is output the humidity and temperature via a serial port You could use this with any flavour of mite. It is written in Picbasic so could be changed to suit If you are interested I will post the files required Regards Jman |
||||
Chrisk Senior Member Joined: 21/12/2014 Location: AustraliaPosts: 118 |
Hi Jman That would be great. How difficult would it be to change to suit as my Basic isn't that good. Just fumbling through. Regards Chris |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi Chris Please find attached the required files to make a DHT-XX to serial adapter 2014-12-26_060939_PIC12f629-DHT.zip You will need a programmer of some sort (Pickit2 or Pickit3) to program the 12f629 with the supplied hex file (either dht11.hex or dht22.hex) There are two versions for the mite side the first version waits for the data from the 12f629 and therefore the data is all way's current. The second version gets the last stored data so it could be a little off but this version is faster. As you can see on the circuit diagram there is a pin labelled select this used for the second version and can be tied to V+ if you only use the first version if you use the second version connect this to any 5v tolerant pin and adjust the code as required (I used pin 15). Due to memory constraint's (only 1k) the dht22 version only provides the data as an integer I have also included a screen shot of the required configuration bits (Pickit2) Should you not have the gear to program the 12f629 I will gladly program one for you (either version) Regards Jman |
||||
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925 |
Jman, great solution for this. You've made me curious about using some smaller 8 pinners to do a few simple things where the uMite might be a waste, especially for size. Looking at Great Cow Basic for this. Thanks for your insight! |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
I have an issue with GCB in that the soft serial does not work very well. The baud rates are off (Instead of 2400 I get 2920). These newer little PIC's have factory calibrated internal oscillator so they should be ok. With PIcBasic Pro the serial out is fine. Unless somebody can assist with GCB and the serial (Could just me been dumb) Regards Jman |
||||
Chrisk Senior Member Joined: 21/12/2014 Location: AustraliaPosts: 118 |
Hi Jman You make mention of the select pin going to pin 15 where do the J1 pins 1 and 2 connect? The Colour Maximite Hardware manual says pin 15 is an input. I'm confused. Also I am unable to find any of my mates with a PIC programmer. If I could get you to program one for me, any version, how can I re-imburse you. All the best for the New Year Chris |
||||
Print this page |