Connect with us

Temperature measurement with LM35

Discussion in 'Microcontrollers, Programming and IoT' started by Soprano1990, Jan 26, 2017.

Scroll to continue with content
  1. Soprano1990

    Soprano1990

    3
    0
    Jan 26, 2017
    Hi I am also a newbie in this world of MCU, Can you please help me with measurement tempetature with LM35 . I am struggling to figure it out how it works.
    Thank in Advance
     
    Last edited by a moderator: Jan 26, 2017
  2. davenn

    davenn Moderator

    13,437
    1,807
    Sep 5, 2009
    have you looked at the datasheet for the LM35 ?
    it has lots of examples
     
  3. Harald Kapp

    Harald Kapp Moderator Moderator

    9,544
    1,970
    Nov 17, 2011
    You may also look for tutorials specific to the mcu type you're using. For many mcu/sensor combinations you will find circuit and code examples. Use your mcu type and LM35 as search terms.
     
    Soprano1990 likes this.
  4. Soprano1990

    Soprano1990

    3
    0
    Jan 26, 2017
    Hi Davenn,
    Thanks for your reply.
    I looked at the LM35DZ/NOPB on page 16: Fig. Temperature sensor, single supply -54 °C to 150°C. I have used this circuit and connnected a multimer to measure the voltage but i am not getting something useful.
    My question should I use an op-amp to amplifier the signal before the signal goes to mcu?
     
  5. Soprano1990

    Soprano1990

    3
    0
    Jan 26, 2017
    Hi Harald,

    I am using PIC16F1847 , I found a working code from ElectroSome blog. On his code, he used a variable resistor but I repladed it with LM35 but I am not getting the same result.
    I don't know if it is to do with timing of adc configuration.
    Please help me to be able to successfully achieve this.
    Thx
     
  6. Harald Kapp

    Harald Kapp Moderator Moderator

    9,544
    1,970
    Nov 17, 2011
    Show us a circuit diagram of your circuit.
     
  7. wingnut

    wingnut

    233
    8
    Aug 9, 2012
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-