Timeline for What's Wrong with this DHT22?
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S May 7, 2017 at 22:36 | history | suggested | SDsolar | CC BY-SA 3.0 |
Added one tag
|
May 7, 2017 at 2:49 | review | Suggested edits | |||
S May 7, 2017 at 22:36 | |||||
May 7, 2017 at 2:49 | comment | added | SDsolar | I always use Adafruit_Sensor and DHT - have you tried that? | |
Aug 4, 2015 at 13:12 | vote | accept | Frozen Blade | ||
Aug 3, 2015 at 21:21 | answer | added | JW2 | timeline score: 2 | |
Aug 3, 2015 at 21:03 | comment | added | Frozen Blade | @NickGammon no and I guess I don't need that. Lcd works fine | |
Aug 3, 2015 at 21:02 | comment | added | Nick Gammon♦ | I can't see a resistor in your photo (maybe it is hidden). There should be a 10 k pull-up from pin 2 to 5V (that is, between pin 2 and pin 1). Do you have that? | |
Aug 3, 2015 at 20:51 | comment | added | Frozen Blade | @NickGammon done | |
S Aug 3, 2015 at 20:49 | history | edited | Frozen Blade | CC BY-SA 3.0 |
added 598 characters in body; added 164 characters in body
|
Aug 3, 2015 at 20:43 | comment | added | Nick Gammon♦ | Please amend your question to post the code. Putting it in a comment is pretty-much unreadable. | |
Aug 3, 2015 at 18:59 | comment | added | Frozen Blade |
#include "DHT.h" #include <LiquidCrystal.h> #define DHTPIN 2 #define DHTTYPE DHT22 // DHT 22 (AM2302) LiquidCrystal lcd(12, 11, 5, 4, 3, 2); DHT dht(DHTPIN, DHTTYPE); void setup() { Serial.begin(9600); Serial.println("DHT22 test!"); lcd.begin(16, 2) dht.begin(); } void loop() { float h = dht.readHumidity(); float t = dht.readTemperature(); if (isnan(t) || isnan(h)) { Serial.println("Failed to read from DHT"); } else { lcd.print("Hum: "); lcd.print(h); lcd.setCursor(0, 1); lcd.print("Temp: "); lcd.print(t); } }`
|
|
Aug 3, 2015 at 18:13 | comment | added | javawocky | What lib are you using? Can you post your setup code also? | |
Aug 3, 2015 at 18:10 | review | Suggested edits | |||
S Aug 3, 2015 at 20:49 | |||||
Aug 3, 2015 at 17:29 | review | First posts | |||
Aug 4, 2015 at 7:36 | |||||
Aug 3, 2015 at 17:27 | history | asked | Frozen Blade | CC BY-SA 3.0 |