[SOLVED] adc reading and calculation of humidity

Status
Not open for further replies.

key_

Newbie level 6
Joined
May 29, 2013
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,352
hai all
I need to know how to convert 10bit adc value for a humidity sensor SY-HS-220 ......pls give any formula for converting that adc value to relative humidity value........
 

This sensor will give humidity in percentage. So the count of 1023 means 100% humidity.
Hence you can derive the humidity from count by this formula:

Humidity(in %) = (adc_val * 100) / 1023;
 

thanks for your replay ......
I have doubted because the data sheet shows its working in 30-90% RH and it give output 2970mv at 90%RH .........??? and I calculated the value

%RH= adc_val*90/(2970mV/4.8mV)
but i didn't get the correct value ....so pls clear my doubt
 
Last edited:

Your datasheet shows a straight-line for Characterstics curve.
Straight line has equation y=mx+c

slope (Δy/Δx) = (2.970-0.990)/(90-30) = 0.033 // from Standard characterstics table.
so, m=0.033

check with substitutions,
x=30, y=0.990
0.990=(0.033)(30)+c
c = 0

x=90 y=2.970
2.970=(0.033)(90)+c
c = 0

Both of passing through origin.

so, output voltage (RH) 0.033 V or 33 mV.

Now apply the reference voltage in the above equation.
 
Last edited:
Reactions: key_

    key_

    Points: 2
    Helpful Answer Positive Rating
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…