ablab

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

Analog MQ-8 Hydrogen Gas Sensor Interfacing with ATmega16 and 7-Segment Display

1379
Mark as Favourite

In this project, we will learn Analog MQ-8 Hydrogen Gas Sensor Interfacing with AVR ATmega16 Microcontroller and 7-Segment Display. Here, we will interface an Analog MQ-8 Hydrogen Gas Sensor with ATmega16 microcontroller and we will display the Analog MQ-8 Hydrogen Gas Sensor value in 4 multiplexed Common Anode 7-Segment Displays.

Since, the output of the Analog MQ-8 Hydrogen Gas Sensor is analog in nature and these analog signals cannot be processed directly by the ATmega16 microcontroller. So, first this signal needs to be converted to digital value to be processed by the microcontroller. The conversion can be done with the help of ADC of the AVR ATmega16 microcontroller. After converting the analog signal to digital, the microcontroller will display the digital value of Analog MQ-8 Hydrogen Gas Sensor in the 4 multiplexed Common Anode 7-Segment Displays.

Now, we will use some source of Hydrogen Gas near Analog MQ-8 Hydrogen Gas Sensor and we will see the changes in the output of Analog MQ-8 Hydrogen Gas Sensor 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
1 to 1 Connector-Female to Female 7pc
Analog MQ-8 Hydrogen Gas Sensor Board 1pc
10 to 10 FRC Female to Female Connector 2pc
Quad 7-Segment Display Board 1pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for Analog MQ-8 Hydrogen Gas 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 7 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 VCC, GND & O/P pins of Analog MQ-8 Hydrogen Gas Sensor header to VCC, GND and PA0 pins of PortA header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

  • 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 Analog MQ-8 Hydrogen Gas 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 )

    Use some source of Hydrogen Gas near the Analog MQ-8 Hydrogen Gas 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 9 )

  • Connect PortB header of AVR Trainer Board-100 with 7 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 VCC, GND & O/P pins of Analog MQ-8 Hydrogen Gas 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 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 Analog MQ-8 Hydrogen Gas 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 )

  • Use some source of Hydrogen Gas near the Analog MQ-8 Hydrogen Gas Sensor and see the change in output.

    Steps - 9 ( 0f 9 )

Downloads

Analog MQ-8 Hydrogen Gas Sensor Interfacing with ATmega16 and 7-Segment Display
  • 1 downloads 0 Kb

Post a Comment