Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

LM35 Temperature Sensor Interfacing with ATmega32 and LCD Display

15723
1
Mark as Favourite

In this project, we will learn How to interface a LM35 temperature sensor with AVR ATmega32 Microcontroller and LCD display. Here, we will measure the temperature of the surrounding or any other material to which the LM35 temperature sensor is connected for its temperature measurement and we will display the temperature value in degree centigrade in a 16X2 alphanumeric LCD.

Since the output of LM35 temperature sensor is analog in nature and microcontroller cannot process the analog signal directly. So, first it will convert the analog output of LM35 temperature sensor to digital values using its analog to digital converter and then it process the digital value to convert the digital value in degree centigrade value. Then, the microcontroller will display the temperature in degree centigrade in the 16X2 alphanumeric LCD.

Now, lit a match stick or lighter near the LM35 temperature sensor and see the changes in its output value in the 16X2 alphanumeric LCD.

Softwares Required

Hardwares Required

Name / Unit Price Quantity Total Price
AVR Trainer Board-100 with ATmega32
Rs. 730.00
1pc
Rs.730.00
AVR USB Programmer
Rs. 350.00
1pc
Rs.350.00
12V, 1A DC SMPS Adaptor
Rs. 130.00
1pc
Rs.130.00
LM35 Temperature Sensor
Rs. 70.00
1pc
Rs.70.00
RG1602A 16X2 Alphanumeric LCD Green
Rs. 150.00
1pc
Rs.150.00
1 to 1 Connector-Female to Female
Rs. 4.00
6pc
Rs.24.00
10 to 10 FRC Female to Female Connector
Rs. 15.00
2pc
Rs.30.00
TOTAL Rs.1484.00

Circuit Diagram

LM35-Temperature-Sensor-Interfacing-with-AVR-ATmega32-Microcontroller-and-LCD-Display-Circuit-Diagram-ABLab-Solutions-1024x686

Video

Connection Guide

The step-by-step connection guide for LM35 Temperature Sensor Interfacing with ATmega32 and LCD Display is as follows:

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 10 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 10 )

  • Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 10 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 4 ( 0f 10 )

  • Connect the Vs, Vout and GND pins of LM35 temperature sensor with VCC, PA0 and GND pins of PortA header of AVR Trainer Board-100 with a 1 to 1 Connector.

    Steps - 5 ( 0f 10 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 10 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

    Steps - 7 ( 0f 10 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 8 ( 0f 10 )

  • Download LM35 Temperature Sensor Interfacing with ATmega32 and LCD Display Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 10 )

  • Lit a match stick or lighter near the sensor and see the output.

    Steps - 10 ( 0f 10 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 10 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 10 )

  • Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 10 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 4 ( 0f 10 )

  • Connect the Vs, Vout and GND pins of LM35 temperature sensor with VCC, PA0 and GND pins of PortA header of AVR Trainer Board-100 with a 1 to 1 Connector.

    Steps - 5 ( 0f 10 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 10 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

    Steps - 7 ( 0f 10 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 8 ( 0f 10 )

  • Download LM35 Temperature Sensor Interfacing with ATmega32 and LCD Display Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 10 )

  • Lit a match stick or lighter near the sensor and see the output.

    Steps - 10 ( 0f 10 )

Downloads

LM35 Temperature Sensor Interfacing with ATmega32 and LCD Display C File
  • 195 downloads 4 Kb
LM35 Temperature Sensor Interfacing with ATmega32 and LCD Display Circuit Diagram
  • 130 downloads 198 Kb
LM35 Temperature Sensor Interfacing with ATmega32 and LCD Display Hex File
  • 142 downloads 2 Kb
Alphanumeric LCD Header File v1.0
  • 2333 downloads 1 Kb
ADC Header File v1.0
  • 1570 downloads 2 Kb

Post a Comment

    • vomeshwaribadhe
      if i want to take this temperature value on serial terminal what can i do? i have written program for uart but it does not worked
      2017-03-04 12:38:31
      Reply