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

Alcohol Monitoring and Alarm System with ATmega16 and LCD Display using Analog MQ-3 Alcohol Sensor

1489
Mark as Favourite

In this project, we will learn How to make an Alcohol Monitoring and Alarm System with AVR ATmega16 Microcontroller and LCD Display using Analog MQ-3 Alcohol Sensor. Here, we will display and monitor the concentration of alcohol using Analog MQ-3 Alcohol Sensor in 16X2 Alphanumeric LCD Display. Also, we will compare the concentration of alcohol with a threshold value continuously and when the concentration of alcohol is greater than the threshold value, the buzzer will start beeping.

Since, the output of the Analog MQ-3 Alcohol 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-3 Alcohol Sensor in the Alphanumeric LCD Display. Also, the ATmega16 microcontroller will compare the output of Analog MQ-3 Alcohol Sensor value with a threshold value(here the threshold value is 700) continuously and when the Analog MQ-3 Alcohol Sensor output value is greater than the threshold value, at that time the ATmega16 microcontroller will send signal to buzzer and the buzzer starts beeping.

Now, we will place cotton dipped in Alcohol/Spirit near Analog MQ-3 Alcohol Sensor and we will see the change in concentration of alcohol in the Alphanumeric LCD Display and Buzzer.

Softwares Required

Hardwares Required

Name / Unit Price Quantity Total Price
AVR Trainer Board-100 with ATmega16
Rs. 700.00
1pc
Rs.700.00
AVR USB Programmer
Rs. 350.00
1pc
Rs.350.00
12V, 1A DC SMPS Adaptor
Rs. 130.00
1pc
Rs.130.00
Analog MQ-3 Alcohol Sensor Board
Rs. 210.00
1pc
Rs.210.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.1594.00

Circuit Diagram

Circuit_Diagram_of_Alcohol_Monitoring_and_Alarm_System_with_AVR_ATmega16_Microcontroller_and_LCD_Display_using_Analog_MQ-3_Alcohol_Sensor.png

Video

Connection Guide

The step-by-step connection guide for Alcohol Monitoring and Alarm System with ATmega16 and LCD Display using Analog MQ-3 Alcohol Sensor is as follows:

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

    Steps - 1 ( 0f 11 )

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

    Steps - 2 ( 0f 11 )

  • 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 11 )

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

    Steps - 4 ( 0f 11 )

  • Connect the VCC, GND & O/P pins of Analog MQ-3 Alcohol 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 11 )

  • Connect the VCC, I/P & GND pins of Buzzer header with 5V header, PC0 pin of PortC header & GND header respectively in AVR Trainer Board-100 with a 1 to 1 Connectors.

    Steps - 6 ( 0f 11 )

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

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

    Steps - 8 ( 0f 11 )

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

    Steps - 9 ( 0f 11 )

  • Download Alcohol Monitoring and Alarm System with ATmega16 and LCD Display using Analog MQ-3 Sensor Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 10 ( 0f 11 )

  • Place cotton dipped in Alcohol/Spirit near the Analog MQ-3 Alcohol Sensor and see the output.

    Steps - 11 ( 0f 11 )

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

    Steps - 1 ( 0f 11 )

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

    Steps - 2 ( 0f 11 )

  • 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 11 )

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

    Steps - 4 ( 0f 11 )

  • Connect the VCC, GND & O/P pins of Analog MQ-3 Alcohol 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 11 )

  • Connect the VCC, I/P & GND pins of Buzzer header with 5V header, PC0 pin of PortC header & GND header respectively in AVR Trainer Board-100 with a 1 to 1 Connectors.

    Steps - 6 ( 0f 11 )

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

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

    Steps - 8 ( 0f 11 )

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

    Steps - 9 ( 0f 11 )

  • Download Alcohol Monitoring and Alarm System with ATmega16 and LCD Display using Analog MQ-3 Sensor Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 10 ( 0f 11 )

  • Place cotton dipped in Alcohol/Spirit near the Analog MQ-3 Alcohol Sensor and see the output.

    Steps - 11 ( 0f 11 )

Downloads

Alcohol Monitoring and Alarm System with ATmega16 and LCD Display using Analog MQ-3 Sensor C File
  • 23 downloads 4 Kb
Alcohol Monitoring and Alarm System with ATmega16 and LCD Display using Analog MQ-3 Sensor Circuit Diagram
  • 11 downloads 88 Kb
Alphanumeric LCD Header File v1.0
  • 2593 downloads 1 Kb
ADC Header File v1.0
  • 1747 downloads 2 Kb
Alcohol Monitoring and Alarm System with ATmega16 and LCD Display using Analog MQ-3 Sensor Hex File
  • 13 downloads 2 Kb

Post a Comment