Instructables
Overview
This is a guide to building an Arduino-powered clock that uses LEDs to display a 24-hour clock (hours and minutes) as binary digits, an analog meter to display the seconds, a switch to toggle between time-display and time-setting mode, and 2 knobs for setting the hours and minutes. This was designed from scratch, but is an improvement over other Arduino binary clocks that miss milliseconds here and there. This clock is extremely accurate and can be used and trusted.

To clear things up right away, Cwik is my last name and it's pronounced "Swick". So no, it's not the Quick Clock, and no, it does not run quick.

We'll start by using the Arduino Uno for prototyping, then build our own Arduino circuit from scratch for the final product. While creating out own circuit from scratch at the end is completely optional, it will allow you to continue to use your Cwik Clock, while freeing up the Uno for your next project.



Goals
There are 3 main goals for this project:
1) Familiarizing yourself with basic circuitry components - My Dad inspired me to get into electronics and circuits. After fixing some old oscilloscope by determining a resistor had blown, I was amazed that he could actually fix something (rather than throw it out and replace it). I have very little experience with circuits, but am determined to be able to hold a conversation with my dad that involves more than batteries, buzzers and light bulbs. By the end of this guide, you should gain knowledge of LEDs (safely powering them, and controlling using the Arduino), understand potentiometers (what they are, and reading their values from the arduino board), how an analog ammeter works, and using Ohm's Law.

2) Striving for functional perfection - Go big or go home. We're building this to high standards, a clock you can actually use and trust.

3) Making this look damn good - Although most of the concepts are simple, it doesn't mean our product has to look it too. Some key themes in its appearance are compactness, retro styling, throwbacks to audio equipment, fit & finish, and feel. My Dad had a lot of electronic equipement laying around the basement, so some colors and elements are inspired by my vague memories. Using an analog meter on a digital clock and a potentiometer to set digital time seems backwards, but it's what builds the charm of the Cwik Clock and differentiates itself from the countless binary clocks on the market already.

Audience
This guide is ideal for anyone looking for their 1st start-to-finish Arduino project. Elementary knowledge of the arduino platform, circuitry, and programming would be helpful, but aren't absolutely essential.
 
Remove these adsRemove these ads by Signing Up
The analog second meter is beautiful. Great aesthetic on this thing, and great attention to detail. Well done.
sjones981 month ago

Could anybody help? It's not working... my power cable has a light on it when its on and as soon as I plug this in it goes off so maybe its shorting? I have no idea but here's some pictures just in case there is anything glaringly obvious...

IMG_2327[1].JPGIMG_2328[1].JPG
Heitz made it!2 months ago

Had been sitting on these parts since the Instructable was posted. Finally got around to doing it. I used the extra Led to change the clock to an AM/PM 12 hour clock. Basically any time over 12 hours like 15:00 shows 3:00 with the PM light on. Also changed the hour "0" to display as 12. I really learned some things about programming using time. Very fun instructable. Had a heck of a time sourcing the meter, but got lucky on Ebay and found a domestic source, although its milliamps instead of microamps, was able to change the resistor to match the output.

20140814_055730.jpg
sjones983 months ago

Trying to find a similar enclosure but I don't know what I'm looking for, what was it originally? Love this clock btw! Have slowly mastered the circuit just trying to get hold of all the stuff and hopefully mine will turn out half as good as yours

cwik (author)  sjones983 months ago

Any store like a RadioShack or Fry's should have "project boxes" (just ask for enclosure for hobby circuitry), it's just a matter of what size and shapes they have. I really lucked out in terms of finding a compact box, and one with the angled front.

Glad to hear the circuit part went well, and good luck with finding the right box!

sjones98 cwik2 months ago

Hi again! slowly getting together all the stuff to get started (verrrryy slowly i know) gonna leave the enclosure till i know how big i'm going to make it! As for the analog meter, I'm finding that voltmeters are cheaper than uA ammeters for whatever reason, as the voltage of the circuit is alternating between 0 to 5V could I use a 5V voltmeter without the 100k ohm resistor? would that work? Thanks again!

me56471 year ago
This is really nice work. I love how the analog meter makes it look like retro lab equipment.  I am definitely going to make one.  I just hope it comes out as nice as yours!  I haven't read all of this yet so excuse me if you already mentioned this..

Its pretty easy to take the front plastic off analog meters like that and print out your own scale at home. We do it all the time at work to convert 5v meters to Torr meters for vacuum equipment. Play with the design a little and use some nice paper and they look like you purchased them.
cwik (author)  me56471 year ago
I had considered printing my own scale and even painting the tip of the needle red or bright orange, but was afraid of making it look too amateur. The one I bought looked really clean. It also had a metal background, and the stripe that goes across is this unpainted silver finish that I really grew fond of. Although it is a bit weird that the scale only goes to 50.
mspinks1 year ago
The analog meter adds a real charm to it. I've thought about building a binary clock for a while, but I wanted something different. I'm going to go find an analog meter right now.
cwik (author)  mspinks1 year ago
Thanks! I really feel the analog meter is the eye-catcher of the whole clock but wasn't as easy as I thought it would be to get. I bought one from a 3rd party seller on amazon and took many weeks to ship. In the meantime I really wanted to finish the project so I went to a local electronics shop where I found the meter I eventually used in the final product (the one in the pictures), however they only had a single unit in that current range. I hope you have better luck than I did finding an elegant meter!
mspinks1 year ago
Is the one led in the left column a dummy?
cwik (author)  mspinks1 year ago
Yes, the top left LED indicates whether you're in time setting mode while the one below it is completely for show and is not wired up to anything. It'll never light up.
Aleator7772 years ago
Simply great. I really enjoy the aesthetic of it; has that industrial appeal.
xBacon2 years ago
Where did you get this enclosure? I think it looks pretty cool and I would like to get one for a different kind of clock i'm making.
cwik (author)  xBacon2 years ago
I got it at Fry's Electronics (in store, not online) for roughly $10. FYI, the holes for the screws are not pre-threaded so you've got to be a bit careful not to strip them or start them at a bad angle.
xBacon cwik2 years ago
Cool, thanks
jdorne2 years ago
Hello

I am wanting to use LEDs for the seconds instead of an analog meter. However, I need 7 LEDs for such thing. How would I go about this? Some sort of shift register IC just for the seconds part? Multiplexing?

What would you recommend?

Also, do you think rotary encoders would be better for adjusting since you can keep turning them?
jdorne jdorne2 years ago
Oh, and in case it wasn't obvious, its because I havent got enough pins on my UNO R3. :)
cwik (author)  jdorne2 years ago
I had bookmarked this page for later when I needed more pins as it details using a shift register:
http://arduino.cc/en/Tutorial/ShiftOut

Another option is to use a column with 6 LEDs:
o <-- 32
o <-- 16
o <-- 8
o <-- 4
o <-- 2
o <-- 1

I actually didn't know about the rotary encoder, so thanks for bring that to my attention. I personally like the fact that the knobs stop at the minimum and maximum values using potentiometers, but one benefit of the rotary encoder is that you could set its current reading to the current time when going into time setting mode (ie, toggling the time setting switch wouldn't change the time to whatever you left the knobs at last).
cwik (author)  jdorne2 years ago
(removed by author or community request)
cwik (author)  cwik2 years ago
When I said "another option", I just meant instead of using 7 LEDs... you'll still need the shift register.
hertzgamma2 years ago
Amazing!
Good!
spu32 years ago
EXCELLENT! Nicely done!
sonicase2 years ago
cool