Test and Measurement Forum

RH-02 With my own driver

Post general discussions on using our drivers to write your own software here

RH-02 With my own driver

Postby mretallack » Thu Mar 30, 2006 7:59 am

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

Postby mretallack » Mon Apr 03, 2006 10:31 am

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)));
mretallack
User
User
 
Posts: 2
Joined: Thu Mar 30, 2006 7:48 am


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests