How to Make a Working Police Alarm!
by trainsarecool in Circuits > Arduino
16 Views, 0 Favorites, 0 Comments
How to Make a Working Police Alarm!
This is a Police Alarm that I made. It is basically the same thing as https://www.instructables.com/editor/EBVZU34MK2VLTPH, but it's also different. :)
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 (Blue or Amber)
Piezo (Buzzer)
Wires, and something to cut them
Resistor
Wire the Buzzer
Using Black Wire, connect the NEGATIVE pin of the Buzzer to a GND pin on the Arduino. Then, using Red Wire, connect the POSITIVE pin to an ANALOG pin on the Arduino, like A0.
Wire the LED
Using Black Wire, connect the CATHODE pin of the LED to a GND pin on the Arduino. Then, using Red Wire, connect the ANODE pin to a Resistor, and connect that to a DIGITAL pin on the Arduino, like D0.
Program the Arduino
To program the Arduino on Tinkercad Circuits, click the "Code" button in the top-right area of the screen. Then enter the block code which is shown. Or you can do JS code. If you are not using Tinkercad to make your circuit, and you are doing it for real, plug the USB of the Arduino into your computer. Then upload the following JavaScript code:
Then, plug it back into the Arduino and turn it on. Now it should work!
Make the Alarm Housing (Optional)
To make the housing for the alarm, you can either make your own or 3D print one of mine.
Police Alarm:
https://www.tinkercad.com/things/g8uNnp1Ctec-police-alarm-housing
Alert Alarm:
https://www.tinkercad.com/things/dQUNwdVhTGQ-alert-alarm-housing