In this project, we will learn How to make a Smoke Monitoring and Alarm System with AVR ATmega32 Microcontroller and 7-Segment Display using Analog MQ-2 Smoke Sensor. Here, we will display and monitor the concentration of smoke using Analog MQ-2 Smoke Sensor value in 4 multiplexed Common Anode 7-Segment Displays. Also, we will compare the concentration of smoke with a threshold value continuously and when the concentration of smoke is greater than the threshold value, the buzzer will start beeping.
Since, the output of the Analog MQ-2 Smoke Sensor is analog in nature and these analog signals cannot be processed directly by the ATmega32 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 ATmega32 microcontroller. After converting the analog signal to digital, the microcontroller will display the digital value of Analog MQ-2 Smoke Sensor in the 4 multiplexed Common Anode 7-Segment Displays. Also, the ATmega32 microcontroller will compare the output of Analog MQ-2 Smoke Sensor value with a threshold value(here the threshold value is 700) continuously and when the Analog MQ-2 Smoke Sensor output value is greater than the threshold value, at that time the ATmega32 microcontroller will send signal to buzzer and the buzzer starts beeping.
Now, we will place burning incense stick near Analog MQ-2 Smoke Sensor and we will see the change in concentration of smoke in the 7-Segment Displays and Buzzer.
The step-by-step connection guide for Smoke Monitoring and Alarm System with ATmega32 and 7-Segment Display using Analog MQ-2 Smoke Sensor 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-2 Smoke 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 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 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 - 7 ( 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 - 8 ( 0f 9 )
Download Smoke Monitoring and Alarm System with ATmega32 and 7-Segment Display using Analog MQ-2 Sensor Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.
Steps - 9 ( 0f 9 )
Place burning incense stick near the Analog MQ-2 Smoke 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 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-2 Smoke 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 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 - 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 )
Download Smoke Monitoring and Alarm System with ATmega32 and 7-Segment Display using Analog MQ-2 Sensor Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.
Steps - 8 ( 0f 9 )
Place burning incense stick near the Analog MQ-2 Smoke Sensor and see the output.
Steps - 9 ( 0f 9 )
Downloads
Smoke Monitoring and Alarm System with ATmega32 and 7-Segment Display using Analog MQ-2 Smoke Sensor
2 downloads
0
Kb
Downloads
Smoke Monitoring and Alarm System with ATmega32 and 7-Segment Display using Analog MQ-2 Smoke Sensor
Post a Comment