Breadboarding an Alarm Clock

3 min read

Breadboarding an Alarm Clock

3 min read

LCD Clock on Breadboard
I actually started this a couple of months back, but now that I have something working to the point where I’m pretty excited about it, I’m ready to share my pet project. Back in college, one of my favorite classes was my small electronics class. Learning about half-adders and resistors was okay but the really fun part was using embedded programming to interface a micro-controller to the outside world. Ever since then, I’ve wanted to build some sort of embedded project of my own. I finally motivated myself to build something I’ve always wanted–an alarm clock that works the way I want it to.

Here are the features of my ideal alarm clock:

  • Accurate to within a minute per month. Even better would be to synchronize to some time source.
  • Shows date, time and day of the week (so after a rough night, I know for sure if it’s a workday or not =D )
  • Easily visible during the day and at night.
  • Time adjustment allows adding or subtracting hours and minutes. I hate missing the correct minute on my current alarm clock and having to hit the set button 59 more times.
  • Alarm can be enabled/disabled according to the day of the week. Do I need an alarm on weekends? No. Am I so lazy that I don’t want to turn the alarm on and off every weekend? Yes.

Here are the items needed for breadboarding. This will be slightly different than the final bill of materials for the finished clock due to the breadboard power supply.

Note on LCD display: I purchased my display off of Ebay for $5 and it works great. If you decide to use SparkFun’s display, keep in mind that it requires a resistor in series when you supply power to the backlight. The resistor is not included in my schematic because my display has the resistor built in.

LCD Clock Breadboard

The notes on the image should give you an idea of what the components look like and what they are for. You will need to study the schematic to hook everything up correctly. If you are feeling lost at this point, read through the first two SparkFun tutorials then stop back. They will walk you through setting up the breadboard’s power supply and loading code onto an ATmega168.

LCD Clock Schematic
LCD Clock Schematic

If you’ve gotten this far, you’re probably interested in the code behind the alarm clock. It is available here. Keep in mind this is not a finished product yet so there are still some features missing. The RTC (real time clock) code is fairly solid though.

I already have a PCB layout ready in Eagle which I’m going to send out to get printed. I’m really looking forward to migrating from the breadboard to the finished product. I’ll make sure to post the result!

7 Comments

  • useful November 23, 2012 at 10:52 pm

    hi dear friend
    thanks for your work
    i would like to make this clock but i dont have atmega168
    is that possible to use atmega16 or atmega32?

    • Takaitra February 27, 2013 at 8:45 am

      I don’t know for sure but my guess is that with some minor tweaks of the code, the clock would work with an atmega16 or 32. What I would do is compare Atmel’s spec sheets for those chips against the 168. Make sure they have the appropriate timers, ADC, etc (I think they do). Register names and compiler flags would need to be updated to work with the specific chip.

  • Eczema Remedies January 17, 2012 at 2:39 pm

    I like the perspective.

  • Afg Hero October 15, 2011 at 2:10 am

    Have you made a video to show how you made it step by step? If not, can you make one?
    I’m new to these electronic stuff so i’m not so good (i just started using the 555 chips)

  • Takaitra March 8, 2010 at 9:47 am

    @LANCE SANITA
    I’ve provided the parts list, schematic, and code. What specifically do you need to know?

  • LANCE SANITA March 7, 2010 at 7:16 pm

    WE NEED A CONFIGURATION TO PERFORM THAT PROJECT PROPERLY TO OUR BREADBOARD.THANK YOU!GOD BLESS.

  • Takaitra.com » PhotoNotes January 17, 2010 at 9:44 pm

    […] next coding side-project is another WordPress plugin. After posting some photos of my breadboard, I decided it would be nice to have a way to add notes to those photos. The current solution is […]

  • Leave a Reply

    I accept the Privacy Policy

    ×