Homemade desktop clock

May 26, 2013,00:08 AM
 

Martin (Stromer) posted this fantastic desk clock made from an old computer hard drive on this week’s WristScan thread [click here for the original post] and I wanted to share it with you on HoMe in case you missed it …

 

My home made desktop clock

I got my hands onto this old hard disk about 20 years ago and the idea struck me to convert it into a clock with as little visible change as possible.

Unfortunately I had overestimated my electronic skills back then and so my first attempts using discrete ICs ended up in frustration. I put it aside and kept it in the drawer for years until I met the husband of my wife's friend who turned out to design electronic circuits to earn his living. We soon became friends and when I asked him he taught me all I needed to know and even provided me with a microcontroller development environment.

So about 10 years after the first attempt I got the thing working.

How it is read

It is very basically very simple:

The hard disk indicates the hour while the read/write head serves as the "minute" indicator by moving from the outer to the inner edge of the disk. Well, you may only estimate the correct quarter hour from the position of the read/write head, but I don't care about that.

At the full hour the disk turns by 30 degrees to the next hour marker and the read/write head returns to the the outer edge. By doing so the stepper motor emits a quiet, humming sound that reminds me that another hour has passed.

This is what it looks like at 8:59 :

At 9:00 o'clock :

 

And at about 9:30 :

 

This clock has been running for about 12 years now and you can clearly see the marks that the read/write head left on the turning disk and while moving in and out.

How it is operated

The time is set by turning the disk and setting the read/write head to the desired time by hand. Then you push the reset button on the back (the upper one of the tree on the back) and the clock measures the position of the indicators and sets its internal electronic quartz clock accordingly. For measuring the hour I painted a binary pattern onto the backside of the disk which is illuminated by infrared LEDs and detected by matching infrared light sensors.

For detecting the set minute the read/write head is driven to the outside of the disk until it interrupts the a light barrier. The steps necessary for that are counted, the internal clock is set and the head is driven back to its previous position.

Because the current time is stored in an internally the time display can be restored if it was changed by accident. This does the middle button on the back. Pushing it will turn the disk and move the head to the correct position.

The lowest button on the back side turns on "demo" mode. This makes one minute of internal time pass in 2 seconds real time so that you can easily watch the thing working. This was very useful during development to test things out thoroughly.

How it looks from behind

The electronics is hidden on the backside. I finally decided to build it based on a ATMega16 Microcontroller. It is larger that it would have been necessary for the task of controlling a clock but it offers a galore of input/outout pins that came very handy. A microcontroller, stepper motor driver (which is used to driver the hard disk motor because that pulls a lot of current due to the weight of the disk) and some transistors for amplifying the signals sent by a set light sensors that  is hidden under the disk and measures its position.

I tried to "respect" the original disk and to reuse as many of the present parts as possible. E.g. every 12 hours the read/write head goes all the way back to the outside of the disk (beyond the 0 minutes position) to meet the original light barrier and to verify/calibrate its correct position.

A pleasant thing about ATMega controllers is that they can be programmed using the C programming language. So today I can still understand the software I wrote back then to control the clocks functions ;-)

Here it what it looks like on the backside:

 

I even kept the drawing that I used to design the layout of the circuit board and to transfer it to the backside of the real board. Because it needed to be mirrored to backside it is on a transparent slide.
(I will spare you to post the source code for the microcontroller too smile )

Today I am thrilled by the fact that it has been running flawlessly for the past 12 years and still does. I really had not expected that.

But more than that I enjoy it as a very personal piece that has become possible only by meeting the right man and that we are still friends today.

Martin




  login to reply

Comments: view entire thread

 

I love it !

 
 By: DonCorson : May 26th, 2013-01:13
A great idea and clean execution. I hope it works at least another 12 years for you. Is the motor turning the disk original? It doesn't seem reasonable to have a stepper there originally. How often do you heed to change the batteries? Best, Don

Hi Don,

 
 By: stromer : May 26th, 2013-13:07
I am really flattered that somebody who is able to create real watches from the billet cares to ask about my converted scrap :-) The motors are both original. I am afraid my English was too poor to express it correctly: From what I found out by experiment... 

Great work

 
 By: Mark in Paris : May 26th, 2013-03:57
and quite nice looking I must say ;) Congratulations for the work and thanks Andrew for enlighting it. Cheers, Mark

Thank you Mark

 
 By: stromer : May 26th, 2013-13:09
for your kind words! I was caught by the beauty of the disk surface from the beginning and somehow found it a pity to scrap it. That might have saved the disk's life :-) Best, Martin

Amazing, my creative friend. If I had your skill, i would know what to do

 
 By: amanico : May 26th, 2013-13:15
With the stock of lap tops I killed, through these last 10 years... Best, Nicolas ...  

I am afraid

 
 By: stromer : May 26th, 2013-23:09
I am afraid the electronic skills are lost again on my side because I did not use them for too log. But I am sure you could do really crazy things with some old laptops if you only cared :-)) I would love to see the outcome. It would be something unexpect... 

It does not have to be about electronics.

 
 By: stromer : May 27th, 2013-02:24
I am just sure that you would find creative and crazy ways to handle a broken laptop. I does not need to have something to do with electronics :-) Have a great day! Martin

Great Idea Martin!

 
 By: patrick_y : May 26th, 2013-14:13
Hmm, I want one... Martin should come to the next IGOTT and bring hard drives and kits. We'll have a "Make your own clock seminar." Martin, you could sell your kit. Big business for you someday. Ingenious, truly ingenious. From an obviously creative mind.... 

Electronic devices at IGOTT?

 
 By: stromer : May 26th, 2013-23:03
I see it located in a dark basement corner with a sign over the door: 'Nerd's corner' :-) Thanks a lot, Patrick, for your enthusiasm and your kind words! Martin

Saw it on WS

 
 By: Ares501 - Mr Green : May 26th, 2013-15:27
but it sure deserves HoMe position and even AHCI positioning :) Great work. Excellent post Bravo Andrew for highlighting it Sincerely Damjan

That is great

 
 By: ED209 : May 27th, 2013-16:08
Very cool homemade desktop clock. Regards, ED-209

I love it!

 
 By: Allen : May 29th, 2013-01:13
Thanks for sharing, Martin. Thanks to Andrew for posting it on Home.

Video of the clock in operation

 
 By: stromer : May 30th, 2013-06:31
cazalea has asked me in the original thread to post a little video of the clock in operation. Here you are: Best, Martin