Hi Richard,
Have you tested the length of cable/wire that can reliably be used with these sensors? And if you have, does it make a difference if the resistor is at the sensor or at the PIC?
Hi Richard,
Have you tested the length of cable/wire that can reliably be used with these sensors? And if you have, does it make a difference if the resistor is at the sensor or at the PIC?
Dave
Always wear safety glasses while programming.
no not at all I have the unit mounted on the cpu pcb with no pull up resistor at all , just using wpub and a 3.3v rail. The data sheet (am2302) implies that 100m transmission is possible with a 1k pull up and shielded cable . not really sure why the pull up resistor location would make a difference assuming that the cable resistance is very low compared to the pull up value . my remote sensor (outside) is a wireless connection with a rfm69cw , so cable transmission is not something I have looked intoHave you tested the length of cable/wire that can reliably be used with these sensors? And if you have, does it make a difference if the resistor is at the sensor or at the PIC?
Thanks Richard. I have used the DHT11 with 50 foot of wire and the resistor at the MCU. My boy is trying a DHT22 with the resistor at the module. He is getting strange readings. I have not seen his setup yet to figure out the problem.
Dave
Always wear safety glasses while programming.
with a little bit more code now it can do dht11 and dht22 sensors just by setting a var sens_type to 11 or 22
see this thread for adjusting timers for a different fosc
http://www.picbasic.co.uk/forum/showthread.php?t=19873
Bookmarks