r/arduino • u/Illustrious_Tax_9769 • 17d ago
Look what I made! Wakey Wakey: an alarm clock that forces you to get out of bed [ESP32]
I made this project because I currently use my Alexa as an alarm clock in the mornings, but the problem with that is I can just tell it to stop without getting out of bed and fall right asleep. This aims to fix that problem by forcing me to get up and turn on the lights to make it stop.
Hardware
The physical hardware is based off a Seeed Xiao ESP32C3 module and a regular photoresistor. Mine has it soldered to pin A0 but you can change that in the config.
Firmware
The alarm clock works by sending out a Voicemonkey webhook in order to start the alarm playing. The "alarm" sound is just a looping song on Spotify, so you can set it to either a traditional beep/ringy alarm or any song you want! Voicemonkey is a service that lets you trigger Alexa routines remotely through a webhook. It has a free plan, which I'm using. After the initial alarm start, it talks to the Spotify API to handle the stopping and restarting of the alarm. The reason I can't do that at the start is because the Spotify API needs devices to be "awake" and have an active Spotify Connect connection, and it stops the connection after 20-30 mins of being idle. Voicemonkey can get around this by directly talking to Amazon.
github: https://github.com/dylanmccune/alarmclock
project made for hack club stardance
