I'm using a WeMos D1 R2 & DHT22 (AM2302) but i can't get the WeMos board to get any values from the DHT22 sensor, i have tryed alot of ports, and both 3,3v and 5 volt,
Have anyone this kind of board and sensor and got it to work?
I'm using a WeMos D1 R2 & DHT22 (AM2302) but i can't get the WeMos board to get any values from the DHT22 sensor, i have tryed alot of ports, and both 3,3v and 5 volt,
Have anyone this kind of board and sensor and got it to work?
Post the sketch you are using and the connections you have made to the DHT22 from your WEMOS D1.
have you tried some of the on line tutorials?
first google hit (I've not read it)
I have been trying this also, Using the port D2, ground and 3.3v or 5v port my sensor has only three pins
This is my pinset on my memos d1 board.
16:38:24.050 -> {"humidity": nan, "temp": nan}
16:38:26.071 -> {"humidity": nan, "temp": nan}
16:38:28.072 -> {"humidity": nan, "temp": nan}
16:38:30.053 -> {"humidity": nan, "temp": nan}
Is there any other way to measure if the senor gives out any values?
post your code and exact circuit
@nufked-jamtu1-qamvak , if your DHT22 sensor is like the one you linked to in post #4, then it looks like it already has the pullup resistor on the rear of the board. You won't need to fit the additional 10K resistor that is shown in the tutorial.
You should probably power the sensor from the 3.3V pin on the D1 board as that is the voltage level at which the ESP8266 operates (according to the details in your 2nd link).
To get further assistance, you need to show us your code too.
Used several codes, but this i one of them: (same as from the hompage linked from above)
#include "DHTesp.h"
DHTesp dht;
void
setup() {
Serial.begin(115200);
dht.setup(D2, DHTesp::DHT22);
}
void
loop() {
float
h = dht.getHumidity();
float
t = dht.getTemperature();
Serial.print(
"{\"humidity\": "
);
Serial.print(h);
Serial.print(
", \"temp\": "
);
Serial.print(t);
Serial.print(
"}\n"
);
delay(2000);
}
Tryed the v3.3 setting and switched to a new sensor, now its working, can i be that i have fryied the other sensor with 5v? or switching around with the cabels?
may be the other unit was broken
are they easy to brake, or? should a i try and get a new one from the supplier
quality varies depending on the source but you should not break them so easily
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.