Wednesday, June 8, 2011

Binary Clock

So, I was feeling lazy and browsing ThinkGeek I stumbled across their sales and found an LED clock. First I was excited, then disappointed (the clock was/is $30). Then I realized two things. First, I have 2000 LED's sitting in my room. Second, I have a computer. So, with that in mind I wrote a little program to display the time (hours, minutes seconds) on my computer. Maybe one day I will get to making the actual clock.

If you want the program you can download it here: http://www.mediafire.com/?ybgr6w1jam4vmhc.
If you use Game Maker and want a copy of the source (I didn't want to reinstall Eclipse today) you can have it here: http://www.mediafire.com/?8mgmlwzigdh24na.

The program displays the time in two ways. It shows a graphic representation in 24 hour mode. With each digit having it's own column. Additionally the window caption displays the current time (also in binary) for your viewing pleasure.

The above time is: 11 hours, 17 minutes and 14 seconds.

Numbers from the bottom are 1,2,4 and 8. Just add the column to get the time. It's simple!

If you want an actual LED Binary Clock then you can order one from ThinkGeek (they are on clearance at the time of writing this). Or check out the stock of them over at Amazon.


Powers of 2 BCD ClockPowers of 2 BCD Binary Clock with Red Lights (Red)Powers of 2 Binary Clock