Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

humidity sensor calculation

Status
Not open for further replies.
Joined
Jul 25, 2012
Messages
1,192
Helped
170
Reputation
340
Reaction score
161
Trophy points
1,343
Activity points
0
dip your sensor in water for max humidity and then note down the max raw adc value it is giving. If you are using 10 bit adc the raw adc value of sensor should be in the range 0 to 1023. Check that and reply.



if you get raw adc value 1023 for RH 90 i.e., 2970 mV

then 1023 = 90

1023 * x = 90

x = 0.0879765395894428

then your result will be

result = (raw_adc_value * 0.0879765395894428)

eg: if raw_adc_value = 920 then 920 * 0.0879765395894428 = 80.93841642228739 RH

 
Last edited:

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,840
Helped
14,116
Reputation
28,489
Reaction score
12,797
Trophy points
1,393
Location
Bochum, Germany
Activity points
277,691
dip your sensor in water for max humidity
Only few electronic humidity sensors will tolerate this procedure. It's also questionable that they give good results above 90% rH. Calculating a linear transfer characteristic based on the datasheet should work as a first guess. For an accurate (two-point) calibration use the vapour phase over saturated salt solutions.

http://www.omega.com/temperature/z/pdf/z103.pdf
 

Tahmid

Advanced Member level 5
Joined
Jun 17, 2008
Messages
4,758
Helped
1,791
Reputation
3,574
Reaction score
1,650
Trophy points
1,393
Location
Silicon Valley, California, USA (from Dhaka, Bangl
Activity points
30,545
Page 2 of the attached datasheet (post 1) shows a straight-line graph. By eye, it looks quite straight, with a little deviation at some points.
Assuming that it is a completely straight line, the gradient is constant and equal to (Δy/Δx) = (2.970-0.990)/(90-30) = 0.033.

A straight line has equation y=mx+c. m=0.033

At (30,0.990):
0.990=(0.033)(30)+c
c = 0

So, it goes through the origin.

You can take another point:
At (90,2.970):
2.970=(0.033)(90)+c
c = 0

So, it goes through the origin.

Thus, the formula for output voltage (in Volts) is V = 0.033 (RH). Expressed in mV, it is V = 33 (RH).

Now, to calculate relationship between ADC result and relative humidity, you need to know the reference voltage.

Hope this helps.
Tahmid.
 
Last edited:

ameyakale

Newbie level 3
Joined
Jan 2, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Pune
Activity points
1,302
Page 2 of the attached datasheet (post 1) shows a straight-line graph. By eye, it looks quite straight, with a little deviation at some points.
Assuming that it is a completely straight line, the gradient is constant and equal to (Δy/Δx) = (2.970-0.990)/(90-30) = 0.033.

A straight line has equation y=mx+c. m=0.033

At (30,0.990):
0.990=(0.033)(30)+c
c = 0

So, it goes through the origin.

You can take another point:
At (90,2.970):
2.970=(0.033)(90)+c
c = 0

So, it goes through the origin.

Thus, the formula for output voltage (in Volts) is V = 0.033 (RH). Expressed in mV, it is V = 33 (RH).

Now, to calculate relationship between ADC result and relative humidity, you need to know the reference voltage.

Hope this helps.
Tahmid.
Do this sensor require temperature compensation? If yes can you post formula?
Thanks in advance.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top