Jun 6, 2016

How To Make a Thermometer using Arduino and LM35

How To Make a Thermometer using Arduino and LM35

How To Make a Thermometer using Arduino and LM35

Today I am going to show you How to make a Thermometer with Arduino and LM35 temperature sensor,LCD Display,On a breadboard and connected together with wires.It will show temperature in  Celsius and Fahrenheit.


Requirements:-

How To Make a Thermometer using Arduino and LM35

This is the list of parts needed to make the thermometer.



  1. 1 x Arduino UNO board
  2. 1 x LM35 temperature sensor
  3. 1 x LCD Display (16A1,16A2 or any other)
  4. 1 x Breadboard
  5. 1 x 10k Potentiometer/variable resistors(You can also use 5k or 50k)
  6. Some male to male jumper wires.
  7. Power Bank or Battery
  • Arduino IDE installed in pc with some basic information about how to use it.
Basic Information About Parts and links to Buy -

  • Arduino UNO board

How To Make a Thermometer using Arduino and LM35



The Arduino Uno is a microcontroller board based on the ATmega328. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs ,a 16 MHz ceramic resonator ,a USB connection ,a power jack ,an ICSP header and a reset button. 


It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started. 
Microcontroller ATmega328 Operating Voltage 5V Input Voltage (recommended) 7-12V Input Voltage (limits) 6-20V 
Digital I/O Pins 14 (of which 6 provide PWM output) 
Analog Input Pins 6 
DC Current per I/O Pin 40 mA 
DC Current for 3.3V Pin 50 mA 
Flash Memory 32 KB (ATmega328) of which 0.5 KB used by bootloader 
SRAM 2 KB (ATmega328) 
EEPROM 1 KB (ATmega328) 
Clock Speed 16 MHz


Buy Now from here-


Arduino Uno R3 ATmega328P ATMEGA16U2 Compatible with USB Cable







  • LM35 temperature sensor

  • How To Make a Thermometer using Arduino and LM35



    LM35 series Temperature Sensor is a precisely integrated circuit whose voltage output is linearly proportional to the centigrade temperature. These sensors have an added advantage over kelvin calibrated sensors and do not require the subtracting of constant voltage from its output to obtain convenient centigrade scaling.It will give Analog data and by coding we have to convert it to Digital.It is a 3 terminal ic in which middle one is used to obtain output and left terminal from the output terminal is of +5v and last one is of GND.
    Buy It From these links-

    Robomart LM 35 Temperature Sensor

    • LCD Display

    LCD 16x2 Alphanumeric Display(JHD162A) for 8051,AVR,Arduino,PIC,ARM All
    I am having an old 16 x 1 lcd display(JHD16A1) so i used it in this project,But In this project any displaywill work.and 16x2 is better so i am giving link for 16A2 display link.You just have to change some code i explained everything in coding part.



    Circuit diagram




    How To Make a Thermometer using Arduino and LM35


    There Are no difference between 16 x 1 and 16 x 2 display's pins so Just follow the circuit and use power bank to give power to completed project.
    The circuit is very easy and the assembly/connection is also very easy just use the above circuit diagram and make all the connection carefully.Now connect the arduino board to the pc and upload the below code.

    Coding-





    //By SOURABH KUMAR @ www.androroot.com




    #include<LiquidCrystal.h>



    LiquidCrystal lcd(12,11,5,4,3,2); //pins diclaration for lcd on arduino

    const int inPin = A0;      //Middle (Output) pin of LM35

    void setup()

    {

      lcd.begin(8,2);   //Change here accoring to your lcd

    }

    void loop()

    {
      int value = analogRead(inPin);
      lcd.setCursor(0,0);  //No change
      float millivolts = (value / 1024.0) * 5000;
      float celsius = millivolts / 10;
      lcd.clear();
      lcd.setCursor(0,0);     //No change
      lcd.print(celsius);
      lcd.print("C");
      lcd.setCursor(0,1);     //
      lcd.print((celsius * 9)/5 + 32);
      lcd.print("F");
      delay(1000);
    }



    Above is the basic code for The thermometer
    Note-As i said i am using an old 16x1 lcd which only works correctly when it will be assumed and deaclered as 8x2 lcd.But when you will use 16x2 display then this problem will not accure.for 16x2 display just find 

    lcd.begin(8,2);   //Change here accoring to your lcd

    in the code and replace (8,2) according to your display as (column,row) .
    let you have a 16x2 display then replace (8,2) with (16,2).
    and if you have 20x4 display just replace the (8,2) with (20,4).

    Now i hope that everything is clear now so just upload the code.

    Everything done time to enjoy
    After uploading is finished instantly the thermometer will begin to work if nothing visible on lcd other then just bright yellow light then just adjust the back-light through the 10k Potentiometer/variable resistors.After adjusting you will find the output as shown in figure below.
    How To Make a Thermometer using Arduino and LM35

    Finally we have made a thermometer using Arduino and LM35 which is able to show temperature in Celsius and Fahrenheit You can modify codes and also circuit according to you. So i hope you will like this easy project.

    Also Visit-


    How To Make An Android Controlled Robot

    Feel free to comment and share.

    0 comments:

    Post a Comment

    Join Us on Facebook