Discussion in "Project Doubts" started by    kamalparmar    Oct 8, 2013.
Tue Oct 08 2013, 02:59 pm
#1
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
Tue Oct 08 2013, 03:49 pm
#2
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
#3
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.
Tue Oct 08 2013, 09:03 pm
#4
Sorry prevoius DNS file is not correct so i amm updated it. so please consider this file
Tue Oct 08 2013, 09:08 pm
#5
@kamalpa
Add your code and DSN file to a zip or RAR file to attach it.



[ Edited Tue Oct 08 2013, 09:10 pm ]
Tue Oct 08 2013, 10:12 pm
#6
Hello now i am attach in .rar file here..
please find the attachment
Attachment
Wed Oct 09 2013, 05:48 pm
#7
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
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
#8
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.
Thu Oct 10 2013, 12:24 pm
#9
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.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am