Introduction
In this lesson we are going to learn how to make an ambulance siren project. The siren is used as a warning function for emergency services such as ambulance, police cars or fire engine cars to signal that a driver should give way to the emergency services vehicles.
To make this project we need:
- Unda Xplora Kit
- RGB LED
- 3 220 ohm resistors
- Buzzer
- 1 Pushbutton(pick any color of your choice)
- 1 10 kilo ohm resistor
Let’s build the Ambulance Siren Project
Place one pushbutton, a buzzer and the RGB LED on the breadboard. Place three 220ohm resistors next to each pin of the RGB LED except on the negative pin (the pin with the longest lead). Place a 10 kiloohm resistor on the breadboard next to the pushbutton.
Connect a jumper wire from the 5V pin to the top positive rail of the breadboard and then connect a jumper wire from the positive rail to one pin of the pushbutton.
Connect a jumper wire from GND to the negative rail of the breadboard and then connect a jumper wire from negative rail to one side of the resistor placed next to the the pushbutton.
Connect a jumper wire from digital pin D13 to one side of the resistor placed next to the pushbutton.
Connect a jumper wires from digital pin D2 to the resistor R1 placed next to the first pin, from the top breadboard negative rail to the second pin of the RGB, from digital pin D3 to the resistor R2 placed next to the third pin of the RGB LED and from digital pin D6 to resistor R3 placed next to the fourth pin of the RGB LED.
Connect a jumper wire from the digital pin D10 to the positive side of the buzzer and connect a breadboarding jumper wire from the negative terminal to the negative side of the buzzer.
Return to the project window and then run the Project.
What did you observe?
When you load the project, you immediately notice that the RGB begins flashing just like how the ambulance sirens usually flash. You also realize that the buzzer also creates a buzzing sound once the project has been uploaded. This works just like how ambulance sirens work; the siren makes a loud audible sound to signal to other vehicles to give the ambulance right of way.
Feedback is closed.