ablab

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

Digital IR Sensor Interfacing with ATmega16 and LED Display-Analog Output

3270
Mark as Favourite

The digital IR sensor that we are going to interface with ATmega16 microcontroller is a dual output sensor i.e. the sensor gives both analog and digital output signal.

In this project, we will learn How to interface the analog output of the digital IR sensor with AVR ATmega16 microcontroller. Here, we will read the analog output of the digital IR sensor and we will display that value of the sensor in a LED array. But the microcontroller can not read analog signal. So, the microcontroller will convert the analog output of the digital IR sensor to digital value through its analog to digital converter and it will display that value in the 1X8 LED array. Now, move your hand or any other material to and fro infront of the sensor and see the changes in the 1X8 LED array.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega16 1pc
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 1pc
Digital IR Sensor 1pc
1 to 1 Connector-Female to Female 3pc
10 to 10 FRC Female to Female Connector 2pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for Digital IR Sensor Interfacing with ATmega16 and LED Display-Analog Output is as follows

  • Steps - 1 ( 0f 8 )

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

  • Steps - 2 ( 0f 8 )

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

  • Steps - 3 ( 0f 8 )

    Connect the VCC, GND & AO pins of Digital IR Sensor header to VCC, GND and PA0 pins of PortA header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

  • Steps - 4 ( 0f 8 )

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

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

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

  • Steps - 7 ( 0f 8 )

    Download the Digital IR Sensor Interfacing with ATmega16 and LED Display-Analog Output Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Steps - 8 ( 0f 8 )

    Move an obstacle to and fro in-front of the Digital IR Sensor and see the change in output.

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

    Steps - 1 ( 0f 8 )

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

    Steps - 2 ( 0f 8 )

  • Connect the VCC, GND & AO pins of Digital IR Sensor header to VCC, GND and PA0 pins of PortA header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

    Steps - 3 ( 0f 8 )

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

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

    Steps - 5 ( 0f 8 )

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

    Steps - 6 ( 0f 8 )

  • Download the Digital IR Sensor Interfacing with ATmega16 and LED Display-Analog Output Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 7 ( 0f 8 )

  • Move an obstacle to and fro in-front of the Digital IR Sensor and see the change in output.

    Steps - 8 ( 0f 8 )

Downloads

Digital IR Sensor Interfacing with ATmega16 and LED Display-Analog Output Project File
  • 16 downloads 0 Kb

Post a Comment