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!

Screenshot 2026-01-08 16.52.32.png

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

Screenshot 2026-01-08 16.22.47.png

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

Screenshot 2026-01-08 16.27.31.png

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

Screenshot 2026-01-08 16.35.04.png

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:


void setup()
{
pinMode(A0, OUTPUT);
pinMode(0, OUTPUT);

digitalWrite(0, HIGH);
}

void loop()
{
tone(A0, 523, 500); // play tone 60 (C5 = 523 Hz)
delay(500); // Wait for 500 millisecond(s)
tone(A0, 92, 500); // play tone 30 (F#2 = 92 Hz)
delay(500); // Wait for 500 millisecond(s)
}


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