Arduino UNO Based Gas and Flame Detection System with I2C LCD Feedback and Alert Buzzer
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to monitor environmental conditions using a combination of sensors and to display information on an LCD screen. It includes an Arduino UNO as the central microcontroller, a Heat Flame Sensor for detecting flames or high temperatures, an MQ-2 sensor for detecting combustible gases, an I2C LCD 16x2 Screen for displaying information, and a buzzer for audible alerts. The Arduino UNO is responsible for reading sensor data, controlling the display, and activating the buzzer based on certain conditions.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.
- Purpose: Acts as the central processing unit of the circuit, interfacing with sensors, the LCD screen, and the buzzer.
Heat Flame Sensor
- Description: A sensor module capable of detecting flames or high temperatures.
- Pins: AO (Analog Output), DO (Digital Output), GND (Ground), VCC (Power Supply).
MQ-2 Sensor
- Description: A gas sensor module for detecting LPG, propane, hydrogen, and other combustible gases.
- Pins: A0 (Analog Output), D0 (Digital Output), GND (Ground), VCC (Power Supply).
I2C LCD 16x2 Screen
- Description: A 16x2 character LCD display that uses the I2C communication protocol.
- Pins: SCL (Serial Clock Line), SDA (Serial Data Line), VCC (5V), GND (Ground), and others for direct parallel interface.
Buzzer
- Description: An electronic buzzer for producing audible alerts.
- Pins: PIN (Signal Input), GND (Ground).
Wiring Details
Arduino UNO
- 5V connected to VCC of Heat Flame Sensor, MQ-2 Sensor, and I2C LCD 16x2 Screen.
- GND connected to GND of Heat Flame Sensor, MQ-2 Sensor, buzzer, and I2C LCD 16x2 Screen.
- A0 connected to A0 of MQ-2 Sensor.
- A4 (SDA) connected to SDA of I2C LCD 16x2 Screen.
- A5 (SCL) connected to SCL of I2C LCD 16x2 Screen.
- D8 connected to DO of Heat Flame Sensor.
- D9 connected to PIN of buzzer.
Heat Flame Sensor
- VCC connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO.
- DO connected to D8 of Arduino UNO.
MQ-2 Sensor
- VCC connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO.
- A0 connected to A0 of Arduino UNO.
I2C LCD 16x2 Screen
- SCL connected to A5 (SCL) of Arduino UNO.
- SDA connected to A4 (SDA) of Arduino UNO.
- VCC (5V) connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO.
Buzzer
- PIN connected to D9 of Arduino UNO.
- GND connected to GND of Arduino UNO.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code. It needs to be populated with instructions for initializing the sensors, reading their outputs, controlling the LCD display, and activating the buzzer based on sensor readings.