Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

humidity sensor calculation

Status
Not open for further replies.
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:

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.

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

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:
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top