hckeat said:Hi,
I still have some question about the calculation of LM35.
Take an example, if the output of LM35 is 0.28V, and the configuration bit of ADC is as above (ADCON1= %10001110) with AN0 as the analog input and Vref+ (Vdd = 5V) Vref- (Vss = 0V), then how does the PIC converts the analog data to digital and show it on LCD?
How does the calculation looks like? (10-bit resolution being used)
hckeat said:loop:
ADCIN 0, temp
pause 5
temperature= (temp*10) */ quanta
lcdout $fe,2
lcdout $fe,$80,"Temp ",dec2 (temperature/100),".", dec1 (temperature//100),$DF,"C"
Pause 200
-------------------> put here gosub to keyscan routine and compare routine
Goto loop
End
OK. Now I have this code of displaying temperature on LCD, I need to improve it where I need to use a keypad to enter a value of temperature, when the air temperature equal of greater than the temperature being set, PIC will ON a LED. I am wondering how to insert the keypad part. I'll be using a 4*3 keypad.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?