Reading HS1101 Humidity Sensor with Propeller
bomber
Posts: 297
I am working on a Sprinkler Controller Device using the Propeller. The goal of the device is to sample Relative Humidity, and then decide wether to turn on the sprinklers or not. I considered using the Sensirion Temperature/Humidity Sensor, but I realized it would put me above my budget. The HS1101 humidity sensor fit the bill perfectly. The only problem is that I cannot find an object to read the sensor. If possible, I would like to use the same schematic to connect the HS1101 to the Propeller that would be used to connect it to a Basic Stamp. you can find the schematic Here (scroll down to page 2).
Comments
I have a friend in the special effects business who heard a young animator say, "Where's the dinosaur plug-in?" Sometimes you have to step up and be the first to create an object because nobody else has taken the time. And why wait on others who may not code as well as you, anyway?
Here's a bit of code that should be helpful. Not having one of those sensors, though, it's not tested. And as the thresholds of the Stamp and Propeller are different you're going to have to do your own calibration.
The only tricky part that I remember was finding resistor values that produced a significant swing on the output; the sensor only varies from ~161pF to ~193pF according to the datasheet.
I forgot to mention that I am a novice spin programmer. Anyway, I will try to calibrate your code.
-Roger