RH-02 With my own driver

Post general discussions on using our drivers to write your own software here
Post Reply
mretallack
User
User
Posts: 2
Joined: Thu Mar 30, 2006 7:48 am

RH-02 With my own driver

Post by mretallack »

Hello, I have written my own driver to talk to an RH-02 temperature and humidity sensor. I used the information in the rh02.pdf file, however the 16-bin reading to temperature conversion table only goes from 0 to 50oC.

http://www.picotech.com/document/pdf/rh02.pdf

Where can I get the conversion information for 0oC to -20oc and 50oC to 70oC.

Thanks in advance.

mretallack
User
User
Posts: 2
Joined: Thu Mar 30, 2006 7:48 am

Thanks for the data

Post by mretallack »

Thanks for sending me the missing data. I have converted it into an equation for easy usage. Not fully tested at this stage.....

Hopefully this will help other people if they ever need the info.

Code: Select all


float fltCount = (GVP_FLOAT)intReading;
                
// ok, do a bit of maths
fltCount =((-66349+fltCount)/(703.3-(0.0088832*fltCount)))+(0.98373*(pow(log(fltCount), 2)));

Post Reply