NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Sensors, Actuators, and Robotics » How to read data sheet
September 17, 2009 by apurcell |
Good day all, I have been kicking around the idea of adding a humidity sensor to my kit and having some trouble deciphering the datasheet for the sensor I am looking at. In particular: Honeywell HIH-4000 http://sensing.honeywell.com/index.cfm?ci_id=142959 Page 2 has a table of specs. I am not clear as to what one I should be looking at to code the conversion of the output voltage. If someone could steer me as to where to look I would be most grateful. Also if anyone has used a different humidity sensor, I am open to that input as well. Regards, Anthony |
---|---|
September 17, 2009 by mrobbins (NerdKits Staff) |
Hi Anthony, I haven't used this part before, but looking at page 2 of the datasheet, I think the proper place to look is "Voltage output (1st order curve fit)" where it says that
Then I think that for a 5V power supply and 0% RH you'll read
and for 100% RH you'll read
So if you want to go the other direction from voltage back to RH, you just have to invert the function properly:
Of course, if you're using the ATmega168's Analog to Digital Converter (ADC), then you first have to get from the 10-bit ADC reading to voltage. So your code could look something like this:
Hope that helps! Mike |
September 18, 2009 by apurcell |
Mike, That was more than I hoped for! Thanks so much! Regards, Anthony |
Please log in to post a reply.
Did you know that you can follow NerdKits on Facebook, YouTube, and Twitter? Learn more...
|