How to Make a Working Fire Alarm!
by trainsarecool in Circuits > Arduino
46 Views, 1 Favorites, 0 Comments
How to Make a Working Fire Alarm!
I am interested in fire alarms, so I decided to make one in Tinkercad! You can do the circuit part of this tutorial in Tinkercad or real life.
Supplies
Computer
Knowledge of JS (optional)
Tinkercad or other 3D design program
3D Printer (for step 5, optional)
***If you are using Tinkercad for the circuit, then you don't have to buy these parts.***
Arduino Uno R3
One LED (Red or White)
Piezo (Buzzer)
Wires, and something to cut them
Resistor
Connect the Piezo
To connect the Piezo to the Arduino, connect the POSITIVE end to an ANALOG pin, like pin A0. Then connect the NEGATIVE end to Ground.
Connect the LED
To connect the LED to the Arduino, connect the CATHODE to Ground, and connect the ANODE to TERMINAL 1 of the Resistor. Then connect TERMINAL 2 of the resistor to a DIGITAL pin, like pin D0. Then set the resistance of the Resistor to 25, or something else.
Code the Arduino (Tinkercad)
To code the Arduino on Tinkercad, press the Code button in the top-right area of the screen. If you are using Blocks, then enter the following blocks code. (This sets the alarm to Code 3. You can modify it to set the alarm to any other pattern.) If you are using Text (JS), then change the blocks to JavaScript code. (I do not know JavaScript.)
Code the Arduino (Real Life)
To code the Arduino in real life, plug the USB of the Arduino into your computer's USB Drive, and then upload your JavaScript code to the USB. (I still do not know JavaScript.) Then plug the USB into the Arduino and turn it on.
Make an Alarm Case (optional)
Using Tinkercad Designs or another program, design a 3D case for your alarm, and design the light cover. The part of the light cover that goes over the LED should be clear plastic filament. The rest of the alarm should be opaque plastic filament. You can paint it red with white fire lettering, or white with red fire lettering. (Lettering meaning the word FIRE on either side of the alarm.) Or you can use my design at https://www.tinkercad.com/things/jrWdXo2kzrn-fire-alarm-housing.
Voila!
Now you have a working fire alarm!