Rimbik
Posts: 3
Joined: Wed Oct 03, 2018 6:53 am

Wire setting for my heat sensor with rpi3 b plus

Wed Oct 03, 2018 7:01 am

I got a heat sensor (DHT11 - Temprature and Humidity Sensor Module, EC-0442) with 3 wires red, yellow, brown colored.
I can see in sensor it has mark plus, minus but not sure which wire to put where.
Brown I guess is Data, Is Red + ? or then which one is - ?

Is yellow negative?

I am fitting this heat sensor to my Rpi 3 GPIO pin

Please suggest,

drgeoff
Posts: 9889
Joined: Wed Jan 25, 2012 6:39 pm

Re: Wire setting for my heat sensor with rpi3 b plus

Wed Oct 03, 2018 2:47 pm

Consult the spec sheet for the module or ask the vendor. Google isn't finding me anything relevant for "EC-0442 temperature".

danjperron
Posts: 3404
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Wire setting for my heat sensor with rpi3 b plus

Thu Oct 04, 2018 11:11 am

The DHT111 use a special serial protocol. It's not I2c and it is not TTL serial.


Check this old post that I made a long time ago.
https://www.raspberrypi.org/forums/view ... 49#p671849

You could use pigpio to read it. There is also a kernel driver but I prefer Joan's version with pigpio.

RattusRattus
Posts: 67
Joined: Sat Sep 29, 2018 11:27 am

Re: Wire setting for my heat sensor with rpi3 b plus

Thu Oct 04, 2018 4:29 pm

Differant modules will have differant pin-outs.
The best you can do is use a multi-meter to 'buzz-out' the pins.

The DHT11 data sheet tells you the pin numbering for the sensor itself:
Pin Description
1, the VDD power supply 3.5~5.5V DC
2 DATA serial data, a single bus
3, NC, empty pin
4, GND ground, the negative power

Your module is likly to just connect these pins to your wires. Connect the multimeter (in either diode test or resistance modes) between each pin and each wire to find which is which on YOUR (undocumented) module

/Andy

Rimbik
Posts: 3
Joined: Wed Oct 03, 2018 6:53 am

Re: Wire setting for my heat sensor with rpi3 b plus

Thu Oct 11, 2018 4:23 pm

RattusRattus wrote:
Thu Oct 04, 2018 4:29 pm
Differant modules will have differant pin-outs.
The best you can do is use a multi-meter to 'buzz-out' the pins.

The DHT11 data sheet tells you the pin numbering for the sensor itself:
Pin Description
1, the VDD power supply 3.5~5.5V DC
2 DATA serial data, a single bus
3, NC, empty pin
4, GND ground, the negative power

Your module is likly to just connect these pins to your wires. Connect the multimeter (in either diode test or resistance modes) between each pin and each wire to find which is which on YOUR (undocumented) module

/Andy
Thank you for the update, Now I guess since I am deploying it with VS 2017 remotely with Wifi and IP Address, there is no display attached to Pi, and am expecting I will see it my Visual Studio, That may be wrong assumption. I will connect my pi to projector and will check, Thank you all :-)

Return to “General discussion”