Last Christmas, after seeing me express some coveting interest in a geeky product on the internet, my parents gave me a binary clock. Part of what I love about it is that it reminds me of the very first circuit (with a chip) that I made in my high school electronics class. We had a breadboard – that's a board with lots of holes to push wires into to connect them, not something to serve a cheese platter on – and a timer chip, a counter chip, a battery, some LEDs, and some wires to connect them. Sure enough, they started blinking and counting in binary! It's sort of the Hello World of computer engineering. Of course when I plugged in my binary clock like a child starting to play with his toy on Christmas morning, the lights didn't come on. And then I started to smell burning electronics. Uh oh! I immediately unplugged it and examined the power adaptor. It said it needed 120 V, 60 Hz AC, in other words, United States power. It seemed very odd to me that it would not accept the 230 V, 50 Hz of Spain, since almost all electronics now can handle both.
I did some research and I discovered that the makers of the clock had decided to save some effort and did not include an actual clock chip, but rather used the alternating current from the 60 Hz power supply to tell time. So even if the power adaptor wasn't fried and I could adapt the voltage, the clock would run slow in Spain.
It turns out the clock does have a 50 Hz mode, but I was pretty sure that I'd fried my power adaptor. Luckily, the manufacturer of my clock, Anelace Inc., sells European adaptors for their clocks. I tried to order one originally from getDigital, the European version of ThinkGeek (ThinkGeek won't ship to Spain! ARGH!!!), but they were very unhelpful. Then I contacted Anelace Inc. directly and they were more than happy to ship one to me. As the next Christmas approaches, I finally have my binary clock working.
It fits right between my two shelves, so I didn't even have to mount it to the wall! This photo was taken at 23:09:51, obviously.
If I'm totally honest, there are really two primary reasons to own one.
One of my favorite one-liner t-shirts they have at ThinkGeek reads:
There 10 kinds of people in the world: those who can read binary, and those who can't.
I wanted to show you, my readers, how neat it looked and also teach you how to read one, so I whipped up some simple – really, binary is the simplest thing you can do in computer programming – javascript magic to show you. Here's my clock, displaying your local time:
#binaryClock { width: 505px; height: 370px; background: #222; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 1px solid #000000; position:relative; } #binaryClock .led { position:absolute; width: 26px; height: 12px; background: #333; color: #333; padding:9px 2px; text-align:center; } #binaryClock .led.on { background: #c33; color: #c33; } #binaryClock:hover .led { color: #000; } #binaryClock:hover .led.on { color: #000; } #binaryClock .led.row2 { top: 100px; } #binaryClock .led.row1 { top: 175px; } #binaryClock .led.row0 { top: 250px; } #binaryClock .led.col5 { left: 50px; } #binaryClock .led.col4 { left: 125px; } #binaryClock .led.col3 { left: 200px; } #binaryClock .led.col2 { left: 275px; } #binaryClock .led.col1 { left: 350px; } #binaryClock .led.col0 { left: 425px; }
16
8
4
2
1
32
16
8
4
2
1
32
16
8
4
2
1
The top row is the hour and the middle row is the minutes. Obviously the bottom row is the seconds, but they mainly serve to make the clock look cool and blinky. Just like each column in a base-ten number represents a power of ten (one, ten, hundred, etc.), each column in a binary number represents a power of two (one, two, four, eight, etc.). So for each column, if the light is on, you add that power of two, and the sum is the value represented by that row. To make it easier for you, I've specified the powers of two in each "light" if you move your mouse over the clock. Since being Europeanized (though not enough to use an "s" in that word), I much prefer the Centigrade temperature scale and the 24-hour clock, so I've got my binary clock in 24-hour mode. At midnight, all the lights are off. Can you read the time?
In the end it's mainly a cool office decoration, but I like it very much. If you want one, there's a list of retailers here.