HR202 Humidity Sensor (PIC16) code request

Status
Not open for further replies.

No22Ben

Member level 1
Joined
Sep 23, 2010
Messages
34
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,522
Hi guys, I'm currently working on a humidity project.
I'd bought the "SN HMD MOD" (HR202) sensor , https://img.dxcdn.com/productimages/sku_152031_1.jpg

The sensor is basically consists of 4 pins (Vcc, GND, AO & DO). May I know what is the formula or equations to calculate humidity ?
Full PIC coding & explanation will be much appreciated

thanks again~
 

You are using HR 202 Sensor module and not just sensor. The module is giving outputs DO (Digital Out) and AO (Analog Out). You can connect the AO pin to ADC pin and see what adc value you get for the humidity inside the place you are measuring. Based upon that calibrate in the code. You need to measure the room humidity with a standard humidity sensor. If the sensor o/p is linear then you can do like this.

If adc value you get is 418 for %RH then if standard value you get with a RH meter is %20 then just use a factor to convert 418 to 20.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…