Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

ADDE

Newbie level 2
Joined
Apr 25, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
::))
Activity points
1,325
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.

thnz even for ur reading
 

ratheeshbr

Member level 1
Joined
Jul 26, 2009
Messages
37
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,445
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.

thnz even for ur reading

Me too having the same problem!
 

engshahrul

Banned
Joined
Apr 27, 2009
Messages
330
Helped
98
Reputation
196
Reaction score
94
Trophy points
1,308
Location
Malaysia
Activity points
0
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
Joined
Jul 26, 2009
Messages
37
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,445
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:
 

karthikkrv85

Full Member level 3
Joined
Nov 9, 2009
Messages
173
Helped
17
Reputation
34
Reaction score
17
Trophy points
1,298
Location
bangalore
Activity points
2,356
please upload your code as well as the circuit. That may give us some clue to help you
 

ratheeshbr

Member level 1
Joined
Jul 26, 2009
Messages
37
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,445
Code:
#include<16f877a.h>
//#device adc=10
#include"pic.h"
#include"lcd1.h"
float x,tempread;
int i;
float temp()
{
	set_adc_channel(4);
	delay_us(20);
	x=read_adc();
	delay_ms(200);
	return(x*1.96);
	delay_ms(500);
}
		
void main()
{
	float T;
	setup_adc(ADC_CLOCK_INTERNAL);
   	 setup_adc_ports(ALL_ANALOG);
   	 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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top