Random Alarm Clock (Arduino Leonardo)

by tedchou in Circuits > Arduino

375 Views, 0 Favorites, 0 Comments

Random Alarm Clock (Arduino Leonardo)

Arduino alarm clock test

Partial credit: https://create.arduino.cc/projecthub/EvdS/led-dice...

This alarm clock uses Arduino dice to decide whether or not its alarms will blare. When the dice rolls a 6, the alarm clock rings for around 5 seconds. If it doesn't roll a 6, it waits 5 minutes and then rolls again.

Supplies

> LEDs (generic) x6

> Jumper wires (generic)

> Resistor 221 ohm x6

> Buzzer x1

> Arduino Leonardo Board x1

> Breadboard x1

Connect the Wires

P_20200527_202416_vHDR_Auto_1.jpg
Screen Shot 2020-05-30 at 9.00.46 PM.png

Connect the wires according to the picture provided.

The Coding

Screen Shot 2020-05-27 at 9.19.33 PM.png
Screen Shot 2020-05-30 at 9.06.51 PM.png

You can get the code from this link, or download it: https://create.arduino.cc/editor/tedchou621/8862fe...

This version has no 6 hour delay.

Downloads

Thanks for Reading

P_20200527_203712_vHDR_Auto_1 (1).jpg

If you want to actually use this project, you have to delay it by a few hours depending on how late you want to wake up. You can also make an exterior for it to fit in.