How to build a wooden digital clock powered by an atmega168 (arduino) with a built-in alarm and games.

I first thought about making this when I saw an LED clock covered by a wood veneer . I liked it when I saw it, until I saw the price. This is when I decided to build my own, I wanted it to build it for much less, from solid wood and play games!

Step 1: What You Need

- 4, 18" x 4" x 1" wood planks (I went with Maple)
- 85 Red LEDs
- 85 Green LEDs (Optional)
- 1 4 to 16 pin Demiltiplexer
- 15 NPN transistors (such a 2N3904)
- 1 ATMEGA168 Microcontroller (or Arduino)
- 1 20 MHz Crystal
- 1 5 Volt Regulator
- 2 220uF Capacitors (for power spike leveling)
- 1 Old Pocket Radio
- 2 1/8" Audio Jacks
- 1 5-9V DC wall adapter
- 1 (or more) Old Game Controller(s)
- 4 3-1/2" Wood Screws
- Solid Core Wire (easier to work with)
- Solder
- Hot Glue Sticks
- White Glue
- Sand paper

For the game controller I use an Atari 2600 joystick (or even paddle if you re-program), but it is also compatible with with a Sega Master System Controllers, Atari 7800 joysticks (theoretically) or even Sega Genesis Controllers.

- Drill press
- Flat End Hobby Tool Bit
- Soldering Iron
- Hot Glue Gun
- Miter Saw
<p>Superb work, thanks for sharing...)</p><blockquote><strong><a href="http://www.rachelallan.com/prom-dresses/rachel-allan/2" rel="nofollow">Buy prom gowns</a> </strong></blockquote>
<p>Drilling holes in the front panel... I had a similar problem making magnetic blocks for the granddaughter http://www.flickr.com/photos/wb8nbs/7376982060/ these magnets have to be less than 1/16&quot; from the surface to be effective. My technique was to drill halfway with a 3/8&quot; brad point bit, then chuck up a 3/8&quot; keyhole router bit like http://www.rockler.com/hanging-slot-router-bits-router-bits in the drill press to finish. The keyhole bit makes a perfectly flat bottomed hole.</p>
Great Project!
What was the total cost?
This laptop is IBM thinkpad R50 right?<br>Mine is IBM thinkpad R50E. Yay I always thought I'm the only one in the world that owns that laptop.
I think a great way to do this would be to drill the holes all the way through, and then glue veneer over the face - that way you don't have to stress so much about drilling to an exact depth. Call me lazy :) Cool idea, though! - I'm thinking about making one
why you drill out if you can saw it out it takes less time i think <br>but it is i nice idea to use less tools for a project <br>i really gonna build this clock
this looks so nice I gonna make a &quot;mini&quot; version of it for my desk :)<br>I think I'll use 3mm RGB leds...
oh noz 3mm RGB LEDs doesn't exist :o
you can get multisim from <a href="http://www.analog.com/en/amplifiers-and-comparators/operational-amplifiers-op-amps/products/CU_multisim_SPICE_program_download/fca.html" rel="nofollow">www.analog.com/en/amplifiers-and-comparators/operational-amplifiers-op-amps/products/CU_multisim_SPICE_program_download/fca.html</a><br />
Very cool project!&nbsp; BTW, If you don't want to deal with all the electronics you could perhaps use the Lightuino (<a href="http://makersmarket.com/products/67-lightuino-led-driver" rel="nofollow">makersmarket.com/products/67-lightuino-led-driver</a>), which controls 70 channels of LEDs.&nbsp; Each channel could be 3 LEDs.&nbsp; Since it is not doing a LED &quot;matrix&quot; the LEDs are on all the time instead of being flashed rapidly.&nbsp; This means that they will be a lot brighter which might be pretty important for a project where the LEDs are hidden behind wood.<br />
Hi!<br/><br/>First of all congratulations for that cool project! I just have one basic question. Attached <a rel="nofollow" href="http://files.getdropbox.com/u/425260/FVDZEOOFC00G4KV.pdf">here there is an example</a> of two LEDs that I might want to switch on. They are inside a green oval.<br/>From what I understand, for switching on those two leds, I might have to activate the Pin1 to select green, and Pin11, Pin12 to select those two rows. In order to make the current flow, I guess I might activate the 00 and 01 inputs of the demux by choosing the corresponding pin2to5.<br/><br/>But the problem is, how do I avoid that the leds in red ovals do switch on?<br/><br/>Thanks!<br/>
I was just wondering,what if you don't have an atari controller?How do you set the time?
It is possible to install a few buttons if you wanted, but I like the controller.
can that alternative be done with a joystick such as this tactile one from lambind switches?<br/><br/><a rel="nofollow" href="http://www.insidetech.com/nfs/insidetech/attachment_images/0005/5950/american-flag-2a.jpg">http://www.insidetech.com/nfs/insidetech/attachment_images/0005/5950/american-flag-2a.jpg</a><br/>
Can you upload some schematics?and btw I live in Philippines do you think that this part will be available here:ATMEGA168 Microcontroller?
Sorry for the double post,but the idea of using a PS1 controller came to me moments after posting.Would it be possible?
its ok this is not a fourm and its not considered double post
you can post behind of an other of yor comments because there is no edit!
IT isn't too hard to find a schematic of the controller on-line (like <a rel="nofollow" href="http://pinouts.ru/Inputs/JoystickAtari2600_pinout.shtml">here</a>). The PlayStation controller is very different. The Atari controller just uses buttons to connect pins together, while the PlayStation controller uses a form of serial communication.<br/><br/>The ATMEGA168 should be available there. If not, you could probably order it online from overseas.<br/>
Thanks J_Hodgie.
What if I just wan the clock---no alarm and games? What components can I edit out?
There isn't much, just a few LEDs. but even then the titles "Clock" and "Alarm" would have holes when switching modes. Apart from that there isn't anything I can think of.
I got TinyCad. I got it working pretty good with an external HD. I find that when I do a lot of deleting and I don't save file enough, the program tends to crash. It has not done this for a long time now. Very nicely done project you got there. Dr. Bill KB1LZL
Very professional looking. What are you using for a CAD program?
The software I used was Solidworks, but I am currently using unigraphics NX 5. I don't really have a preference between the two.
ooohhhh I so want to make this...but sadly....I'm no good with electronics.....*crys*
<a rel="nofollow" href="http://www.suck.uk.com/product.php?rangeID=41">http://www.suck.uk.com/product.php?rangeID=41</a><br/>
lol 100 euros and not a SINGLE game!
I am looking into getting a Arduino and I don't want to have to bring the board in every robot. Is it possible to change out the chips and put them into other things without much extra components like a basic stamp? I have a basic stamp but to get a new chip is fifty dollars way too much to put in smaller projects.
It is possible with minimal components. All you need shouldn't be too hard to find on the arduino website. And as a bonus each chip is only $5.<br/>If you are going to switch out chips I also suggest you get an <a rel="nofollow" href="http://wolfpaulus.com/journal/embedded/arduino2.html">AVR ISP mk II</a> to burn a bootloader to the new chips.<br/>
Is this a seperate device or just a program. I didn't understand what the wabsite was saying?
The AVR ISP mkII is a separate device that can attach to the arduino to burn a bootloader (a piece of software that allows programs to be quickly loaded over USB)
OK, I see now thanks for all your help. I really appreciate it.
It would have been cool to use one solid block of would instead of 4 layers. Or possibly made it look like a solid block by making the face layer over lap the other 3 layers, cut 45 degree angles on the edges of the face and boxing the other 5 sides in with 5 pieces of wood, also with 45 degree angled edges. So you end up with a box around the whole thing with no visible joining edges. I just wish i had some electronic knowledge because i would be making one of these right now. really nice end product!! it looks pro
That looks so cool! But I think it's too hard for me to make (I wish I had one of those)
Added to Arduino Group! ;D
What a wonderful instructable! I'm fairly new to electronics, but for the most part I can follow it. (that's a feat in itself!)<br/><br/>On the page discussing electronics setup.. why is it that when you show the solderless breadboard, I don't see any transistors, but they're on the soldered board? If I understand correctly, the set of 15 transistors are only necessary if I want to have two different color LED's on the clock. So this means that the pictured breadboard config will run the clock with just one color?<br/><br/>It'd be soo helpful to get a more detailed shot of the breadboard + Arduino setup.. pretty much because I only 50% understand all of the electronics lingo at this point. :-)<br/><br/>Again - <strong>amazing</strong> job on this thing!<br/>
Agree and I would be pleased to get a schematic.
The schematic for the clock is now up in step 9, Let me know if it is unclear.
Thanks for the comment! There are no transistors on the solderless breadboard because I took the photo mid-process of designing the electronics. You are also correct that the transistors are not needed with just one colour of LEDs. However, I would recommend adding one transistor to each anode row to boost the signal from the microcontroller, which makes the LEDs brighter. I'll see what I can do about getting a better shot of the soldered breadboard, but at this point it is difficult to do. I am also currently making the schematic.
Beautiful... but it's not "solid" wood...
...Yes it is... It is not made of one block, but I didn't use any chipboard or other cheaper wood substitute covered by a veneer, It is all wood. If you check, solid wood tables or furniture are also made up of boards glued together.
Yes, the <em>wood</em> is solid, but what I meant was that the clock has electrical components inside it, so it's not purely a block of wood, as <em>solid</em> would imply.<br/>
Then a wooden chain I carve wouldn't be one piece of wood ? Very nice work on the clock J !!
It would be made of a single piece of wood, which was broken down into smaller pieces; so, it would be a number of small, solid pieces of wood. I mean, when you cut a 2x4 in half, it all <em>used</em> to be the same piece of wood, but it isn't any more -- it's two pieces now, right?<br/>
Now you're just being silly Is a solid wood dresser not solid wood because it has drawers?
If there was nothing in it, it would be solid wood -- it would be wood through and through. But if it was full of clothes, then no, it wouldn't be solid, because it would be wood with cloth in it -- no longer wood through and through. But you're right, this is getting silly. So let's stop arguing and forget about the dispute.
its a silly dispute, good work on the clock. i wish i had the smart to do somthing like this.

About This Instructable


584 favorites


Bio: Currently doing masters in Mechatronics Engineering, but still create in my spare time
More by J_Hodgie: Cheshire Cat Pumpkin animated with LEDs Walking Papercraft Mech Warrior Geared Christmas Card
Add instructable to: