This project is a simple yet effective fire alarm system that uses an Arduino board and a few key components to detect flames and alert the user of potential danger.
- Arduino board (I used an Arduino UNO R3 for this project)
- Flame sensor: capable of detecting infrared light with a wavelength ranging from 700nm to 1000nm, allowing it to detect a flame within a certain radius
- Potentiometer: allows the user to fine-tune the sensitivity of the alarm, ensuring that it triggers at the appropriate distance
- 7-segment display: displays the current sensitivity value on a scale from 0 (the alarm will never trigger) to 9 (the alarm will be triggered when there is fire detected at the maximum distance that the sensor can detect). When the alarm is triggered, the display shows the letter "F"
- Red LED: serves as a visual indicator that the alarm has been triggered
- Blue LED: indicates that the alarm is on and ready for use
- Active buzzer: emits a loud, high-pitched sound when the alarm is triggered, alerting users of potential danger
- Breadboard
- Jumper Cables (Male-to-Male)
- x2 220Ω resistors (for the LEDs)
- x1 330Ω resistor (for the flame sensor)
- x1 1kΩ resistor (for the 7-segment display)
When the fire alarm system is powered on, the blue LED is lit and the 7-segment display shows the current sensitivity value. The user can adjust the sensitivity of the alarm using the potentiometer at any time while the system is on. If the flame sensor detects a flame within the specified distance, the alarm is triggered and the red LED and active buzzer are activated, while the 7-segment display shows the letter "F".
To use the fire alarm system, follow these steps:
- Assemble the hardware components according to the circuit diagram provided.
- Upload the code to the Arduino board.
- Adjust the sensitivity of the alarm using the potentiometer as needed.
- If the flame sensor detects a flame within the specified distance, the alarm will be triggered.
View on Tinkercad.
To clone and upload this repository to an Arduino board, follow these steps:
-
Make sure you have Git installed on your computer. If you don't have it, you can download and install it from the official website.
-
Open a terminal window on your computer and navigate to the directory where you want to clone the repository.
-
Type the following command to clone this repository:
git clone https://github.com/ArchontisKostis/fire-alarm-arduino.git
-
Press Enter to execute the command. This will create a new subdirectory with the same name as the repository, and clone the repository into it.
-
Connect your Arduino board to your computer using a USB cable.
-
Open the Arduino Integrated Development Environment (IDE) on your computer.
-
In the Arduino IDE, click the "File" menu and select "Open".
-
Navigate to the directory where you cloned the repository and select the directory folder.
-
Click the "Upload" button in the Arduino IDE to upload the code to your Arduino board.
Once the upload process is complete, the code will be running on your Arduino board and the fire alarm system will be ready for use (assuming you have assembled the hardware components according to the circuit diagram).
This fire alarm system is a homemade project and has not been tested or certified by any official body. It is intended for educational and experimental purposes only and should not be relied upon as a sole means of fire detection.
If you detect a fire using this system, you should immediately evacuate the area and call emergency services.
The developer of this system is not responsible for any damages or injuries that may result from the use of this system/software. Use at your own risk.
For more information on using Git and Github, you can refer to the Git Documentation and the Github Documentation.
For more information on using Arduino, you can refer to the Arduino Documentation and the Arduino Reference
Thank you for taking the time to read through this README file! I hope it has been helpful in understanding the purpose and functionality of my project.
I just wanted to let you know that this README file was actually generated by an AI using the tool ChatGPT. That's right – an artificial intelligence was responsible for putting all of this information together in a clear and concise manner. While I still rely on human contributors for the content and accuracy of the information provided, I thought it would be fun to try out this new AI tool for generating README files.
I hope you found the ChatGPT-generated README to be as helpful and efficient as I do, and I look forward to continuing to experiment with new technologies to improve the user experience. Thank you again for reading!
This is an Open Source project licensed under the MIT License. See the LICENSE file for details.