lm35 with pic16f877

Discussion in 'Embedded Systems and Microcontrollers' started by pkp044, Feb 25, 2011.

  1. pkp044

    Thread Starter New Member

    Feb 25, 2011
    5
    0
    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
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    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:
     
  3. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
  4. be80be

    Senior Member

    Jul 5, 2008
    432
    57
    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.


    [​IMG]
     
    Last edited: Feb 25, 2011
  5. pkp044

    Thread Starter New Member

    Feb 25, 2011
    5
    0
    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
     
  6. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Post your current schematic here for comments;) Do not expect that we shall draw the schematic for your
     
Loading...