Hi! I got myself a DYP-TH02A sensor for temperature and humidity. I was under the questionable impression they all work with the DHT library.
This is not the case, and my search is going in circles...
Could one of you provide a clue? A library and example sketch, ideally? I did find the pin-out already!
Many thanks!!
Jürgen
Hi, welcome to the forum.
There is a lot Arduino code on Github, you probably find it there. Also seeedstudio.com has code for the TH02 for Arduino.
Link to Arduino code for the TH02 : LMGTFY - Let Me Google That For You
Many thanks, Peter!
Is it possible that there are two beasts with similar names?? The TH02 made by a company named Hope is a I2C type of sensor (see attached PDF). The TH02 made by DYPSensor is rather a single interface port module (see attached Word file). I have the DYP-TH02...
Pins and ports are different--no SDA/SCK, but only one single data line. To make things confusing my sensor has a larger brother DYP-TH01B that has an SPI interface.
Could you check the two docs please and compare? Many thanks ahead!!
Best regards,
J
TH02_V1.1.pdf (365 KB)
131528710914001962.doc (125 KB)
Oops, sorry :-[
That is nuts!
They are two different sensors.
The only thing I found was the same document.
The site www.dypsensor.com does not open.
Let's assume it needs 5V.
It seems to be like the DHT21 or DHT22, but the timing is a little different. The pulse for a logic '1' is 60us, and the DHT-22 has 70us. The pause is 40us and the DHT-22 has 50us.
The DHT21 is also called RHT02, but the timing is still not the same.
You might try the DHT library : Arduino Playground - DHTLib
Perhaps it will work, perhaps you have to write you own code.
Those sensors are not very accurate, they could be easily 30% inaccurate.
You could forget about this sensor and buy a DHT22.
For more accurate humidity, the Honeywell HIH6000 series is a lot better.
Many thanks for your help! I gave up on this sensor for now, though. I tried to modify the DHT.CCP to recognize the signals. I got to the point where the data low triggered a burst of signals back--but I could not decode successfully. Still beyond me...
Have a nice weekend!
J