Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
The has a built in ADC, and that would be the easiest to use.
Almost all ADCs work best with a signal that changes over most of the range of the supply voltage. The will probably be running from 5 V, so the ADC will work best if the signal from the sensor covers a good proportion of the 0 - 5 V range.
You don't say what the range of the humidity sensor analog signal is, but if it's not a voltage in the range 0 - 5 V, and it if doesn't change by more than about 1 V in the humidity range you are interested in, then some sort of signal conditioning would be needed or would help.
You need to use an I/O pin configured for "open collector" (or switch it between out and in using the TRIS bit), plus a pullup resistor from the data line to 5V.
Edit - here is an example for using one with a PIC18F:
Interface single wire DHT11 sensor with PIC18F4550 and read the value of Temperature and Humidity from DHT11. Display these Temperature and Humidity values on a 16x2 LCD.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.