Arduino Smoke Detector With Emotive LED Display
by Random Stuff We Make in Circuits > Arduino
265 Views, 3 Favorites, 0 Comments
Arduino Smoke Detector With Emotive LED Display

In this project, we will be creating an Arduino-based smoke detector that not only senses the smoke but also displays a visual alert. For the visual alert, we're using an 8x8 LED matrix to show a sad emoji when smoke is detected and a smiley face when the air is clear. A buzzer will also sound in the presence of smoke. This system can be a great addition to your home safety or an excellent project for those looking to delve a bit into electronics and coding.
Supplies




For this project, you will need:
- Arduino Nano
- MQ-2 smoke sensor or Equivalent
- 8x8 LED Matrix with MAX7219 driver
- Buzzer
- Breadboard
- Jumper wires
- USB cable for programming your Arduino
Wire Up the Circuit

Let's wire up your Arduino to the components. Here's a detailed guide:
- MQ-2 Smoke Sensor:
- VCC to 5V on Arduino
- GND to GND on Arduino
- A0 to Analog pin A0 on Arduino
- 8x8 LED Matrix with MAX7219 Driver:
- VCC to 5V on Arduino
- GND to GND on Arduino
- DIN to Digital pin 7 on Arduino
- CS to Digital pin 5 on Arduino
- CLK to Digital pin 6 on Arduino
- Buzzer:
- Positive (+) to Digital pin 3 on Arduino
- Negative (-) to GND on Arduino
Refer to the image provided earlier as a visual aid to ensure all components are connected as instructed.
The Code
.png)
- Open Arduino IDE.
- Install the LED Control Library in your Arduino IDE.
- Upload the provided Arduino sketch to your board. This code will read the smoke levels from the MQ-2 sensor and display the corresponding emoji on the LED matrix, as well as manage the buzzer's beeping.
- Change the Threshold value, if required.