Android Mobile and Analog MQ-2 Smoke Sensor based Wireless Smoke Monitoring and Alarm System with ATmega32 and 7 Segment Display using HC-05 Bluetooth
In this project, we will learn how to make a Android Mobile and Analog MQ-2 Smoke Sensor based Wireless Smoke Monitoring and Alarm System with AVR ATmega32 Microcontroller and 7 Segment Display using HC-05 Bluetooth. Here, we will display and monitor the concentration of smoke wirelessly from an Android Mobile using Bluetooth and 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, alert signal is sent to buzzer and to PC wirelessly.
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 send the digital value of Analog MQ-2 Smoke Sensor to the HC-05 bluetooth through USART communication protocol. This HC-05 bluetooth transmits the digital value of Analog MQ-2 Smoke Sensor wirelessly to the bluetooth of the Android Mobile. The bluetooth of the Android Mobile receives the digital value of Analog MQ-2 Smoke Sensor through an Android App called Bluetooth Terminal and displays it. Apart from Andoid Mobile, microcontroller will display the Analog MQ-2 Smoke Sensor value in 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 alert signal to buzzer and to Andoid Mobile through bluetooth. After getting the alert signal, buzzer starts beeping and Andoid Mobile displays the alert signal in the Bluetooth terminal App.
Now, we will place a burning incense stick near Analog MQ-2 Smoke Sensor and we will see the change in concentration of smoke in Andoid Mobile, 7-Segment Displays and Buzzer.
- Atmel Studio 6 Software
- SinaProg Hex Downloader Software
- USBasp Driver
- Bluetooth Terminal Android App.