Microcontroller › PIC › Temperature Sensor : Interfacing LM35 and LCD Display to PIC18F4550 › Hello,I hope you have solved
January 5, 2012 at 9:41 am
#6998
Shivaji P. Patil
Participant
Hello,
I hope you have solved problem as it is posted 2 months before.
If not,
1) you have to convert your temepature in string format to display on LCD.
2) you have to make calculation in float variable.
ex:
lcd_write_cmd(0xC0); // Move cursor to line 2 position 1
lcd_write_data(t); // Display the temperature
Instead of direct ‘t’ it should be converted to string.
Instead of direct ‘t’ it should be converted to string.
Instead of ‘int’ ‘t’ it should be ‘float’.
lcd_write_data(0xDF);
lcd_write_data(‘C’);