ablab

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 ATmega16 and 7 Segment Display

16350
Mark as Favourite

In this project, we will learn How to interface a LM35 temperature sensor with AVR ATmega16 Microcontroller and 7-segment 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 7-segment displays.

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 7-segment displays.

Now, lit a match stick or lighter near the LM35 temperature sensor and see the changes in its output value in the 7-segment displays.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega16 1pc
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 1pc
LM35 Temperature Sensor 1pc
Quad 7-Segment Display Board 1pc
1 to 1 Connector-Female to Female 7pc
10 to 10 FRC Female to Female Connector 2pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for LM35 Temperature Sensor Interfacing with ATmega16 and 7 Segment Display is as follows

  • Steps - 1 ( 0f 9 )

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

  • Steps - 2 ( 0f 9 )

    Connect PortB header of AVR Trainer Board-100 with Segment header of Quad 7-Segment Display with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 9 )

    Connect the DIS1, DIS2, DIS3 and DIS4 pins of Display Select header of Quad 7-Segment Display with PD0, PD1, PD2 and PD3 pins of PortD header respectively of AVR Trainer Board-100 with 1 to 1 Connectors.

  • Steps - 4 ( 0f 9 )

    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 9 )

    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 9 )

    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 9 )

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

  • Steps - 8 ( 0f 9 )

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

  • Steps - 9 ( 0f 9 )

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

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

    Steps - 1 ( 0f 9 )

  • Connect PortB header of AVR Trainer Board-100 with Segment header of Quad 7-Segment Display with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 9 )

  • Connect the DIS1, DIS2, DIS3 and DIS4 pins of Display Select header of Quad 7-Segment Display with PD0, PD1, PD2 and PD3 pins of PortD header respectively of AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 9 )

  • 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 - 4 ( 0f 9 )

  • 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 - 5 ( 0f 9 )

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

    Steps - 6 ( 0f 9 )

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

    Steps - 7 ( 0f 9 )

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

    Steps - 8 ( 0f 9 )

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

    Steps - 9 ( 0f 9 )

Downloads

LM35 Temperature Sensor Interfacing with ATmega16 and 7 Segment Display Project File
  • 178 downloads 0 Kb

Post a Comment