HS1011 Humidity Sensor
Matthew Burmeister
Posts: 49
i have been working on the HS1011 for a couple of hours, but i haven't have any success. i get results from 9 to 256. (i used a byte instead of a word to limit it from going above 256). Maybe it's my code or wiring.
If it is my code, any fixes or does anyone have a driver for it?
If it's wiring, any suggestions?
con _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 RHconstant = 12169 var long returnlong long humsen byte humidity pub main tv.start(12) repeat clk.MS(1000) tv.out($00) tv.str(string("Propeller Weather System")) tv.out($0d) tv.str(string("Humidity: ")) rc.rctime(16,1,@humsen) humidity := (humsen - RHconstant) / 24 TV.Str(Num.ToStr(humidity, Num#DEC))
If it is my code, any fixes or does anyone have a driver for it?
If it's wiring, any suggestions?
Comments
Also it seems like the black wire, both leads of the resistor and one end of the sensor are all touching, I'm sure this is not what you want.
Rick
Post Edited (CassLan) : 5/8/2009 4:09:25 AM GMT
Rick