Components and supplies
Pushbutton switch 12mm
LED (generic)
Resistor 100 ohm
Breadboard (generic)
Jumper wires (generic)
Resistor 221 ohm
Buzzer
9V battery (generic)
Resistor 10k ohm
Arduino UNO
Project description
Code
Siren Code Arduino
Here is the code!
Siren Code Arduino
Here is the code!
Downloadable files
Circuit & Connections
STEP A: (Connecting LED) As we are basically building a siren, red and blue flashes look cool. So take 5 red and 5 blue LEDs. Now, connect the negative terminal of these LEDs with a 220 ohm resistor (current limiting) to the negative rail of the breadboard as shown in the circuit diagram. Positive ends of red LEDs are connected to pin 3 to pin 7, while the positive ends of blue LEDs are connected to pin 8 to pin 12 of Arduino's digital pin. STEP B: (Connecting Piezo Buzzer) Now, it's time to connect our buzzer and the pushButton to the breadboard. Connect the Piezo buzzer with a 100 ohm resistor to the negative rail and positive end of buzzer connected to pin 13. STEP C: (Connecting pushButton) Connect one out of four pins of pushButton with pin 2 and connect down it to GND rail using a pull down resistor of 10k ohm. Connect 5V with another button pin as shown in the circuit diagram.
Circuit & Connections
Circuit & Connections
STEP A: (Connecting LED) As we are basically building a siren, red and blue flashes look cool. So take 5 red and 5 blue LEDs. Now, connect the negative terminal of these LEDs with a 220 ohm resistor (current limiting) to the negative rail of the breadboard as shown in the circuit diagram. Positive ends of red LEDs are connected to pin 3 to pin 7, while the positive ends of blue LEDs are connected to pin 8 to pin 12 of Arduino's digital pin. STEP B: (Connecting Piezo Buzzer) Now, it's time to connect our buzzer and the pushButton to the breadboard. Connect the Piezo buzzer with a 100 ohm resistor to the negative rail and positive end of buzzer connected to pin 13. STEP C: (Connecting pushButton) Connect one out of four pins of pushButton with pin 2 and connect down it to GND rail using a pull down resistor of 10k ohm. Connect 5V with another button pin as shown in the circuit diagram.
Circuit & Connections
Hardware Required
Hardware Required
Comments
Only logged in users can leave comments
coding_killer
0 Followers
•0 Projects
0