RH-02 With my own driver

 
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
Author Message
mretallack
User
User


Joined: 30 Mar 2006
Posts: 2

PostPosted: Thu Mar 30, 2006 7:59 am    Post subject: RH-02 With my own driver Reply with quote

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.
Back to top
mretallack
User
User


Joined: 30 Mar 2006
Posts: 2

PostPosted: Mon Apr 03, 2006 10:31 am    Post subject: Thanks for the data Reply with quote

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:


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)));
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group