Hi,
I am trying to interface a humidity sensor to an 18F4550 and display the result on an LCD.
The sensor in question is a DHT-11 or AM2303 made by aosong Datasheet
The sensor outputs a digital signal on 1 wire, when requested by the mcu.
I have the mcu communicating with the sensor, but am having trouble getting the results read, and then decoded to display on the lcd.
Basically, the sensor outputs the signal as 5x8 bit words, consisting of a humidity and temperature readings and also a checksum.
The signal is made up of varying high / low levels, with the lows indicating next bit is ready, and the length of the high indicating a 1 or 0.
I am using mikro c for coding.
Has anyone worked with one of these before, or any any pointers.
Thanks
I am trying to interface a humidity sensor to an 18F4550 and display the result on an LCD.
The sensor in question is a DHT-11 or AM2303 made by aosong Datasheet
The sensor outputs a digital signal on 1 wire, when requested by the mcu.
I have the mcu communicating with the sensor, but am having trouble getting the results read, and then decoded to display on the lcd.
Basically, the sensor outputs the signal as 5x8 bit words, consisting of a humidity and temperature readings and also a checksum.
The signal is made up of varying high / low levels, with the lows indicating next bit is ready, and the length of the high indicating a 1 or 0.
I am using mikro c for coding.
Has anyone worked with one of these before, or any any pointers.
Thanks