lm35 with pic16f877

Thread Starter

pkp044

Joined Feb 25, 2011
5
Hi,
I am planning to build a temperature alarming system consisting of lm35 sensor and pic16f877 microcontroller. I want to display the received temperature result from temperature sensor to computer. Can any one help me sending the circuit diagram and source code in assembly langauge
 

t06afre

Joined May 11, 2009
5,934
You are asking for quite a lot. How can we know that this is not some school assignment. That you want us to do?
We like to help in this forum. But that requires you putting in some effort your self. A good start would be posting a schematic or any code that you have made. Because you have given this some thought. Have you not?:rolleyes:
 

be80be

Joined Jul 5, 2008
2,072
You can see it all here LM35 to pc

It's using a 18f2550 as rs232 to USB com. But the windows app works with any chip that can send serial data.

Like a max 232 and a pic16f877 to get the readings and then send to the PC app.


 
Last edited:

Thread Starter

pkp044

Joined Feb 25, 2011
5
Hi,
I have code to read voltage from lm35 and print it on computer.I am new in micro controller programming. I dont know whether this code work or not. I have proteus simulator with me, where i can design circuit. But i dont know the correct circuit diagram.Here's my code

#include<16f877.h>
#device ADC=10
#fuses HS, NOWDT
#use delay(clock=10000000)
#use rs232(baud=9600,parity=N, xmit=PIN_C6, rcv=PIN_C7,stream=RS232,bits=8)
#inlcude<stdio.h>
#include<STDLIB.H>
int16 value,value1;
void main()
{
setup_adc(ADC_CLOCK_INTERNAL);
setup_adc_ports(ALL_ANALOG);
set_adc_channel(1);
while(1)
{
delay_ms(30000);
value= read_adc();
value1= 5.00 * value*100.00/1023.00;
printf("%f\n\r", (float)value1);
}
}


Pls, send me the circuit diagram
 

t06afre

Joined May 11, 2009
5,934
Hi,
I have code to read voltage from lm35 and print it on computer.I am new in micro controller programming. I dont know whether this code work or not. I have proteus simulator with me, where i can design circuit. But i dont know the correct circuit diagram.Here's my code
Post your current schematic here for comments;) Do not expect that we shall draw the schematic for your
 
Top