Arduino UNO Flame Detection System with Battery-Powered LED Alert
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with a KY-026 Flame Sensor, a 5V relay, a Piezo Buzzer, and a WS2815 LED Strip. The circuit is powered by two 18650 Li-ion batteries. The Arduino UNO reads the flame sensor's output and controls the relay and buzzer accordingly. The relay, in turn, controls the power to the LED strip.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
5V Relay
- Description: An electromechanical switch used to control high voltage devices.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
KY-026 Flame Sensor
- Description: A sensor module that detects flame and fire.
- Pins: A0, GND, VCC, D0
Piezo Buzzer
- Description: An electronic device that produces a sound when a voltage is applied.
- Pins: pin 1, pin 2
WS2815 LED Strip
- Description: An addressable LED strip that operates on 12V.
- Pins: GND, B0, D0, +12V
18650 Li-ion Battery
- Description: A rechargeable lithium-ion battery.
- Pins: -, +
Wiring Details
Arduino UNO
- 3.3V: Connected to VCC of KY-026 Flame Sensor
- 5V: Connected to VCC of 5V Relay
- GND: Connected to GND of KY-026 Flame Sensor, GND of 5V Relay, GND of Piezo Buzzer, and - of one 18650 Li-ion Battery
- Vin: Connected to + of one 18650 Li-ion Battery
- D9: Connected to In of 5V Relay
- D8: Connected to pin 1 of Piezo Buzzer
- D7: Connected to D0 of KY-026 Flame Sensor
5V Relay
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- In: Connected to D9 of Arduino UNO
- Normally Open: Connected to + of one 18650 Li-ion Battery
- Common terminal: Connected to +12V of WS2815 LED Strip
KY-026 Flame Sensor
- VCC: Connected to 3.3V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- D0: Connected to D7 of Arduino UNO
Piezo Buzzer
- pin 1: Connected to D8 of Arduino UNO
- pin 2: Connected to GND of Arduino UNO
WS2815 LED Strip
- +12V: Connected to Common terminal of 5V Relay
- GND: Connected to - of one 18650 Li-ion Battery
18650 Li-ion Battery
- Battery 1:
- +: Connected to Vin of Arduino UNO
- -: Connected to GND of Arduino UNO
- Battery 2:
- +: Connected to Normally Open of 5V Relay
- -: Connected to GND of WS2815 LED Strip
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components, and the loop() function is where you place the code that needs to run continuously.
Additional Documentation
This section is reserved for any additional documentation or notes that may be required for the project.