Beginner

Overview

Imagine waking up to a device of your own creation. That's exactly what you can do with these clock tutorials! The possibilities for an alarm clock are endless - you can simply display the time and date, or you can add music, voice, or even internet connectivity to jazz up your morning.


Things to Know

  • The Time Library: If you'd like to build a solely software-powered alarm clock, you don't need anything more than a standard Arduino. The Arduino board contains a quarz crystal for timing. This crystal keeps track of the amount of time since it was last turned on. This is great for most programs, but for telling time, it has the downside of resetting every time you unplug it. If you're going to keep your clock powered on all the time, though, you can just use the Time library for simplification. For more information and to download the library, click here.
  • Real time clock: An RTC is a chip that keeps track of time even when your Arduino is turned off or unplugged. It runs on a coin cell battery that's separate from the Arduino power system, so as long as its battery works, it will tick along perfectly. You can find an example of a commonly used RTC here.
  • Alarm components: You can make your alarm however you want - buzzer, voice recording, radio, etc. Probably the simplest would just be a piezo buzzer, but if you'd like something more complicated, you can even try internet connectivity. Decide which components you want before you start.
...
70s Bosch Alarm Clock by Antonio Moro (CC-BY-NC-ND)

Project Ideas


...
Image by mikesoniat

Motion-Sensitive Alarm Clock:

This alarm clock is a generally basic project - buzzer and LCD display - but it has the added perk of a motion sensor so the diplay turns off when you're not in the room. It can easily be customized if you want to add on later.



...
Image by Gadget Gangster

Talking clock:

If you'd like to record a voice message to wake you up, this tutorial will show you how to combine an RTC with an SD card. You can save multiple files for multiple days as well. The SD card will increase the Arduino's memory enough to be able to save the sound samples.




Radio clock:

If you'd like to wake up to your favorite radio station, try out this tutorial. The author has a lot of ideas, so the article is still in progress and continually being updated. He also has instructions on how to build a nice box to keep your electronics in.

...
Image by Zeedijk Mike

Internet-connected clock:

This clock uses the Arduino Yun, which provides for internet connectivity, instead of the Uno, but it's still super cool. It syncs with your google calendar to set alarms based on what you have going on the next day. Instead of a normal LCD display, it uses a touchscreen shield for added functionality.

...
Image by Tony DiCola


Tips and Tricks

  • Adding music: If you looked at the tutorial for the talking alarm clock, you'll know that it used an SD card instead of just storing sound in the Arduino. The reason for this is that memory on the Arduino is pretty limited. It's great for small programs, but for anything larger, you'll need external storage. SD card readers are a good way to increase your memory capacity.
  • Formatting the time: Most RTCs will come with a specific protocol for accessing the hour, minute, and second. You should be able to find this easily online. Most project instructions will include pre-written code that you can download and modify as necessary.
  • Clock enclosure: If you're going to be using your clock every day, you'll probably want it to look nice instead of like a jumble of wires. When you're picking your parts, try to choose ones that will fit into a reasonably sized space so you can build a sleek box to keep them in later.

Good luck, and have fun!




<-- Previous: Robotics Next: Quadcopters -->