# LM35 WIth pic16f877A - LCD it is not showing (using C)

Status
Not open for further replies.

##### Newbie level 2
HI all.
I am New in here n Also Very New in Controller i have programmed my controller Using C but the problem is that in the LCD it is nt showin the correct value when i increase the Tempreture or press the positive one it will jump two value and displays the Even Values only....

I need Help as soon PLz the due date is Less u can feel it as student.

#### ratheeshbr

##### Member level 1
HI all.
I am New in here n Also Very New in Controller i have programmed my controller Using C but the problem is that in the LCD it is nt showin the correct value when i increase the Tempreture or press the positive one it will jump two value and displays the Even Values only....

I need Help as soon PLz the due date is Less u can feel it as student.

Me too having the same problem!

#### engshahrul

##### Banned
Sorry I dont get anything from the link( that website);

Only a program
Yes, just take the source code.
Someone give for the theory, then asking for source code. Giving the source code, then asking for another else.

#### ratheeshbr

##### Member level 1
I think My program side is ok. I am writing pgm using CCs compiler. What my doubt is the variation in the output of LM35. Temperature is varying between a range of 4- 5 degree Cel:

#### ratheeshbr

##### Member level 1
Code:
#include<16f877a.h>
#include"pic.h"
#include"lcd1.h"
int i;
float temp()
{
delay_us(20);
delay_ms(200);
return(x*1.96);
delay_ms(500);
}

void main()
{
float T;
lcdinit();
go(3);
printc("Temp Sensor");
delay_ms(1500);
delay_ms(1500);
clrscr();
while(1)
{

go(0);
printc("Temperature=");
go(12);
print(temp());
delay_ms(1500);
}
}

---------- Post added at 17:01 ---------- Previous post was at 17:00 ----------

Circuit is nothing but output of LM35 directly connected to RA5 of PIC 16f877a

Status
Not open for further replies.