Hi all. In trying to make a little humidity control device, I have an Arduino Uno hooked up to an LCD keypad, Fan, RTC, SD card breakout board, and finally DHT 22 temperature/humidity sensor.
Code uploads and works fine when I have everything but the DHT22 power line connected, but when I try to upload with the DHT22 connected to 5v, I get the following error:
avrdude: stk500_set_extended_parms(): protocol error, expect=0x14, resp=0x00
avrdude: stk500_initialize(): failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Anyone know what this means or how to fix it? Thanks!
The current thing was my best guess too but I thought the DHT's current draw would be too small to have such a big effect.
I had tested the sensor itself with a test sketch but after your suggestion tried the same sketch with only the DHT connected and got the same error so I switched the signal pin and it worked.
Thanks for making me think robtillaart!
I guess you can't use pin 0 for the DHT signal? Do you know why that is? Is there a way to override whatever prevents this? I need to use every pin available for my project so very curious to figure that out.
I do! and so I tried that out but then realized that my one unused analog pin A4 is somehow connected to my RTC which is hooked up to the Uno's SDA and SCL pins. So it uploaded, but my RTC stopped working (showed 2165/165/165 as the date).