Regarding to Humidity sensor interface with 8051
Discussion in "Project Doubts" started by kamalparmar Oct 8, 2013.
Tue Oct 08 2013, 02:59 pm
Hello to all,
I am try to display humidity on LCD with using the ADC0804 , Customized sensor and 8051.
But i am not get it code.
please can you help me in making the code for this?
i will wait for you reply
I am try to display humidity on LCD with using the ADC0804 , Customized sensor and 8051.
But i am not get it code.
please can you help me in making the code for this?
i will wait for you reply
Tue Oct 08 2013, 03:49 pm
Post your code along with datasheet of sensor. Only then we can help you out.
kamalparmar like this.
Tue Oct 08 2013, 08:59 pm
i am atttaching here my c code file and also send the DSN in protues file so please find the attachment.
tell me how can i measure the %RH Humidity via any type of sensor.
tell me how can i measure the %RH Humidity via any type of sensor.
Tue Oct 08 2013, 09:03 pm
Sorry prevoius DNS file is not correct so i amm updated it. so please consider this file
Tue Oct 08 2013, 09:08 pm
@kamalpa
Add your code and DSN file to a zip or RAR file to attach it.
Add your code and DSN file to a zip or RAR file to attach it.
[ Edited Tue Oct 08 2013, 09:10 pm ]
Wed Oct 09 2013, 05:48 pm
ok.. few questions for you:
1. What is the problem with current program?
2. Is you LCD working fine?
3. Did you try to do simple adc conversion and print value?
4. I do not understand this display function.. Please comment your code
5. Do you know what is max-min voltage of humidity sensor?
6. Where is the datasheet? is it possible to share?
1. What is the problem with current program?
2. Is you LCD working fine?
3. Did you try to do simple adc conversion and print value?
4. I do not understand this display function.. Please comment your code
void display() { key++; number=number+input_port; if(key==11) { number=number/key; number=number*10; number=number/25; humidity=number-3; lcd_display(humidity); key=0; number=0; } }
5. Do you know what is max-min voltage of humidity sensor?
6. Where is the datasheet? is it possible to share?
Wed Oct 09 2013, 06:01 pm
In this code the LCD is working fine and also i am try to Print the ADC value but problem is like that for humidity sensor how can i convert this ADC value in %RH humidity value and then its display on LCD.
so can you exaplain me how can i convert this ADC value to %RH humidity.
PLease help me.
I am using some Customized sensor so no datasheet availble but its same as one other sensor i am sending this sensor datasheet.
please find the attachment.
so can you exaplain me how can i convert this ADC value to %RH humidity.
PLease help me.
I am using some Customized sensor so no datasheet availble but its same as one other sensor i am sending this sensor datasheet.
please find the attachment.
Thu Oct 10 2013, 12:24 pm
sensor's output is low 0-1V for 0-60% RH. you can divide this linearly for every 1% Rh = 1/60V = 0.0167V. Now depending on your Vref voltage divide ADC range. e.g. if Voltage is 5V then every step will give you 5/255 V = 0.0196
Now you can make a relation between ADC value and sensor's RH.
Now you can make a relation between ADC value and sensor's RH.
Powered by e107 Forum System