3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


Pong Clock

Pong Clock



This clock uses the classic video game Pong to tell the time. The 2 players automatically win and lose so their scores show the hours and minutes. It's not too hard to build and should cost less than $100. All the parts are easily available on eBay and the software code is free to download!

The clock can also show the time written in words such as "Ten Past Twelve", or with large or small digits. The date pops up every now and again too, printed out with a retro flashing cursor effect. A menu screen lets you choose the display mode, or you can have the clock pick a random mode every few hours.

The project uses 2 bright LED matrix panels from Sure Electronics (you can choose between red and green). An Arduino runs the main code and a DS1307 clock chip  keeps time, even when the power is off.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts List & Cost

Parts List & Cost
«
  • P1020068.JPG
  • arduino.jpg
  • ds1307.jpg
  • shield.jpeg
  • idc16way.jpeg
  • push to make.jpg
  • usb-a-b-cable.jpg
  • mainsusb.jpg
  • last photo ←
»
So here's what you need...

2 x Model 2416 Red or Green LED Matrix Displays from Sure Electronics

You can get these from Sure's eBay store for $15 each: http://www.sure-electronics.net/  Make sure you get the new version of the display which is based on the Holtek HT1632C chip. You can tell the new displays as they have the controller chip and DIP switches on the back. (See pic). My clock is made with the 3mm LED display, but they also make a larger 5mm one.

1 x Arduino Uno / Duemilanove with ATmega 328 CPU 

Th Arduino is the brains of the clock. It has a microprocessor that runs the main clock software, plus inputs and outputs we connect to the displays and other components. Ensure you get an Arduino with the ATmega 328 CPU. (Some older boards come with the ATmega 168 with doesn't  have enough RAM). You can get Arduino's for about $30. Try Sparkfun Electronics or eBay.

1 x DS1307 Real Time Clock chip (RTC) and IC socket.
1 x Crystal Oscillator for the DS1307  
1x 3.3v Coin Cell and holder - battery backup for the DS1307  

I found all these bits on eBay bundled as a kit for $10.

1x Arduino Prototyping Shield

The prototyping board or ‘shield’ plugs onto the top of  the Arduino making it easy to add components. It brings all the Arduino's input and output pins onto a circuit board that you can solder components to. Get a board which is designed for a chip to go on, i.e. one that brings each pin of the IC out to a solder pad you can connect wires to (see pic). Again places like Sparkfun or eBay are good sources for them. You should be able to pick one up for $15 - $20. If you don't like the idea of soldering, you could get a breadboard and jumper wire to build the circuit on temporarily instead.

1x 16 Pin IDC Socket 
We solder this socket to the prototype board so we can plug the display ribbon cable in. They are a couple of dollars on eBay. If you aren't planning to solder, you don't need this. 

2x ‘Push to Make’ Buttons.
These are used to set the time / change the display mode. You can get them for a few dollars.

1x USB Lead - Type "A to B" 
This is needed to to program the Arduino, and then as a power lead for the clock.

1x Mains to USB Power Adapter
This is used to power the clock and you can pick them up for less than $10. Look for one with an output of 150mA or above.



« Previous StepDownload PDFView All StepsNext Step »
60 comments
1-40 of 60next »
Mar 18, 2012. 11:21 AMGenzo says:
Nice job.
I had few compilation fails, but Google helped me (about round which has already defined).

Thanks for your tutorial.
Feb 25, 2012. 10:11 AMcyoung_mi says:
Any suggestions on mounting the project?

I'd like something that holds all the parts together and allows it to stand alone on a desk or something.
Feb 25, 2012. 10:04 AMcyoung_mi says:
Any mounting suggestions?
I'd like to connect everything together and allow it to stand on it's own like on a desk or something.
Feb 25, 2012. 8:58 AMJ-Five says:
COOL I WANT ONE!!!!!
Jan 28, 2012. 8:35 PMbassplayer1015 says:
Could you possibly upload a picture of the other side of this completed board? I am a complete beginner with circuitry/wiring and have never done anything like this before. I have an Arduino board from a project I gave up on a year ago, but would like to give this one a try. Thanks, BC
Jan 30, 2012. 9:31 AM027842715 says:
salvation
I speak french
I live in Belgium
I'm a beginner in electronics and computer
I have a clock like this
I do not know how but you can maybe help me
If you still have a list of all the components needed to do (clock) for you send it to me please! and maybe the code lists which also needs

thank you very much
Jan 30, 2012. 9:30 AM027842715 says:
salvation
I speak french
I live in Belgium
I'm a beginner in electronics and computer
I have a clock like this
I do not know how but you can maybe help me
If you still have a list of all the components needed to do (clock) for you send it to me please! and maybe the code lists which also needs

thank you very much
Dec 25, 2011. 4:37 AMDjandco says:
Hi,

First off thanks for the idea and the ible ;-)

I built one and I have a little question if you don't mind;
The clock works perfectly but it freezes up. If you do the IT repair (power off, power on) it works perfectly again.
Any ideas?

Oh, one more thing, for some reason the Uno is only pumping 3.4V DC from the 5V output, I found that I had to use the 5V supply to power the clock chip otherwise I got random code on the display and if your tried to change the clock time the number goes up and you can not select anything.
Put the 5V on and bob is your next door neighbour!

Thanks

Darren
Dec 28, 2011. 9:27 AMDjandco says:
Thanks Nick,

In your ible you do state to use the USB to power it and not the round power socket, I had been told that you only had to worry about this on older ones where you had to select the power source? not sure about that but I had also been told that on the new model UNO it did not matter which way you power it.
Turns out it does :-)
I cut down a USB lead and powered the unit from that and so far we have no issues.

Should have done what you said in the first place!

Thanks for coming back to me on this.

Kind regards

Darren
Dec 26, 2011. 8:26 AMTHEORANGESNOWFROG says:
Thanks for the amazing instructables
Sep 22, 2011. 9:05 AMjashan510 says:
Instead of an arduino can we use a pic micro controller.. Because i wanna make this clock for someone but i really dont want to give away my arduino
Sep 22, 2011. 9:07 PMjashan510 says:
im new to the microcontroller world dont know much about em...
if not pic then any microcontroller with which i dont have to use my arduino board
cz u get the microcontrollers for like 3-4 dollars but the arduino i have was quite expensive..
is there a way to use the arduino boot loader without the arduino board?

P.s thanks for replying man im in love with your clock best iv ever seen.
Nov 25, 2011. 4:51 AMmischka says:
You could buy the ATMEGA preprogrammed with the arduino bootloader, program it with your arduino board and wire it like this: http://www.instructables.com/id/Standalone-Arduino-ATMega-chip-on-breadboard/

Sep 24, 2011. 8:01 AMjashan510 says:
Yes u probably right man itll take a lot to rewrite the codes and redesign everything..
Dec 21, 2011. 5:40 AMUgifer says:
The way to go is definitely as mischka says - use an ATMeag-328 and program it in your Arduino but then pull out the chip and put it into a socket on a piece of perf-board made up as indicated in the bread-board arduino tutorial. You need almost none of the gubbins on an Arduino board to make the chip run - that's mostly for development. Once you have it running you only need the chip, crystal and a few capacitors. You don't really even need a reset switch unless you are wanting to re-program it in place. With this project you are only using a few pins so it would be very easy to make up a '328 board. The '328 chips themselves only contribute about £3-£4 to the cost of the project.
Oct 29, 2011. 2:03 PMsaid007 says:
Nice clock mrnick. Do I need to download the code for this? Where do I get the code?

I am diffinately building this clock and Ordered the parts already. Just wondering how the code thing is done..

Tks
Nov 25, 2011. 4:47 AMmischka says:
See Step 9 for the code.
Oct 6, 2011. 2:42 AMJoelLemos says:
Hello, I have the PDF of this project will be someone I could give it away because it can not get it?

Thank you!
Oct 28, 2011. 1:18 PMsaid007 says:
i would like the PDF please :)
Nov 5, 2011. 8:23 PManonymouse197 says:
Become a Pro member :) (or be lucky enough to have signed up before pro memberships existed)
Nov 7, 2011. 7:53 AMtigerbomb8 says:
yer like me
Oct 22, 2011. 1:01 AMalfamc2 says:
OMG!! this is so cool. im making a big list of peices i need for multiple instructables and im gona go on a nerdy shopping spree and build this. (=
Aug 22, 2011. 10:54 AMCarleyy says:
Awesome Project!
Aug 22, 2011. 10:07 AMnix78 says:
Hmm, nice Pong Clock implementation! I like this pixely display better than the "originals" (the one by Buro Vormkrijgers and LadyAda's MonoChron)!
Sep 9, 2011. 2:23 AMmagicthegathering says:
This is great. I have one question I couldn't answer. Are you using the USB adapter for powering the clock or are you using the power adapter on the arduino board to power the clock? Thanks.
Sep 9, 2011. 2:39 AMmagicthegathering says:
One more thing. Sorry If these questions seem stupid, I am new to this stuff. Would the code you provided work with the larger 5mm led panels without editing it? Thanks.
Sep 9, 2011. 10:53 PMmagicthegathering says:
Thanks for the help. I ordered the 5mm ones so I will post a video of it in action. Your project has made me excited to build one. I was wondering how complex it would be for me to change the time to a 12 hour format? Not that it really matters anyway, just curious. Thanks for posting this indestructible. It is really good and should have won.
Alex
Oct 3, 2011. 7:34 PMmagicthegathering says:
Hey man,
I got all the parts in and put it together using a breadboard first. It all works and looks stunning! Thanks for the great program. I am about to solder it together when I get some time. I was wondering how you mounted yours inside a case? I want to put mine in a fancy case and wanted to see what you did to yours.

By the way, those larger 5mm displays work wonderfully like you said they should. The one trick is it seems like they have to go in a certain order. I know that sounds odd but I had the first one connected up with the right switch on in the back and it displayed the image incorrectly. All worked well after switching the displays out and the switches again. Such a great project and I hope you win. I hope to post a video as soon as it is mounted.
Alex
1-40 of 60next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
15
Followers
1
Author:mrnick1234567