Arduino Led and Buzzer Timer

by 786805 in Circuits > Arduino

1810 Views, 2 Favorites, 0 Comments

Arduino Led and Buzzer Timer

Terrific Luulia-Curcan.png

This instructable will walk you through the steps to make a Led and Buzzer Timer. When the pushbutton is pressed, another LED will light up every 2 seconds as the circuit counts down to 10 seconds. When the 10-second timer expires, the piezo buzzer will beep for 3 seconds and the LEDs will all flash to indicate that the timer is done.

Supplies

OIP.BRplPzcjrKDS-RaXYR6XQwHaHa.jpeg
10 mm red led-800x800.jpg
0e4c0528-0f1f-4254-bea2-e54da2806c44_1.230d35c306f1f246a46d6fa7c99b2f4e.jpeg
41013367.jpg
OIP.pubseDfXX9FvkQow3QYE7AHaHa.jpeg
arduino-a000066.jpg
OIP.pt1F7XfZiMaI01_jMWSboAHaHa.jpeg
R2dc0599aa6ccba7436b2fc82abc7978e.jpeg

Supplies Required to Build this Project:

Arduino UNO × 1

Red Led x 2

Green Led x 2

Yellow Led x1

Pushbutton switch × 1

1k ohm Resistor × 6

Buzzer × 1

Breadboard (generic) × 1

Jumper wires (generic) × 15-20

Links to Purchase Supplies:

Arduino UNO: https://www.amazon.ca/Arduino-A000073-Uno-REV3-SMD...

Red Led: https://www.amazon.ca/EDGELEC-120pcs-Diodes-Diffus...

Green Led: https://www.amazon.ca/EDGELEC-120pcs-Diodes-Diffus...

Yellow Led: https://www.amazon.ca/EDGELEC-120pcs-Diodes-Diffus...

PushButton: https://www.amazon.ca/MakerSpot-Momentary-Tactile-...

Resistors: https://www.amazon.ca/DAOKI-600-Pack-Resistors-Ass...

Buzzer: https://www.amazon.ca/dp/B0761WSXDK/ref=redir_mobi...

BreadBoard: https://www.amazon.ca/BusBoard-Prototype-Systems-B...

Jumper Wires: https://www.amazon.ca/Neuftech-Flexible-Insulated-...

Assembling

IMG_8767_2.jpg
lol123.png

Link to ThinkerCAD to help you understand the circuit: https://www.tinkercad.com/things/1rlC8rH5G7Z-terri...

Step by Step Instructions

- First off you should start by placing all of your LED on your bread board

- Then you should add your 5 (1k) resistors from your cathode to the negative rail

- From there you should you should add your push button ( in the same pin located as the one in TinkerCAD)

- After that you should connect a resistor from the negative side to the negative rail

- Following that you should connect your positive side to your positive rail

- Then you should use the negative side of the button again to connect it to slot number 2 on your Arduino UNO board

- After setting up your push button, you should place the buzzer on the breadboard ( in the same pin located as the one in TinkerCAD).

- Afterwords connect the negative side of your buzzer to the negative rail

- Then the positive side to solt number 8 on your Arduino UNO board

- Moving on from there you should add connections from your LED's anode to the Arduino UNO board ( as listed in ThinkCAD)

- Then you should add power and ground to your bread board

- After that you should upload your code and test your circuit

Code

code_logo_rgb_0.jpg

[ The link below leads to the Arduino file for the code ]

https://create.arduino.cc/editor/jash12345/a544f7a...

Final Product

IMG_8767_2.jpg

Demonstration of the Circuit:


To begin the circuit, tap the push button, and thus the countdown will start. Using the code, you can alter the timings across each pause, as well as change the led colours to your preference.