Here is how I went about it, which might help you if you want to make one yourself...
When you pick a drive to use, make sure it has four conductors going to the motor ("Y configuration") rather than three ("Delta configuration") if you want to use the TDA5140A/TDA5144 to drive it. The conductors are likely to be on a tiny flexible ribbon going into the motor on the back of the board.
Get yourself a proper Torx driver to take out the screws holding the drive together (you can work around it with other things but you will drive yourself crazy). Remove the PCB from the back, being careful not to damage the ribbon going to the motor. Remove the metal front cover, remembering that there are usually a few screws hidden behind labels. Less brute force, more patience :o)
Remove the head and magnets by taking out screws. Take out the central screw of from the hub and take off the platter. You might be unlucky and have a platter which sits very low to the backplane. You might need to improvise to jack it up a bit to leave space behind from the leds, or you could combine parts from a couple of drives (as I did) to get the best combination. Another thought is to cut windows for the LEDs in the aluminium backplane, but that seems like a lot of effort!
My replacement platter was cut out of FR4 single sided copper clad board using a 70mm holesaw. A smaller holesaw (19mm I think) was used to cut out the centre, which was then filed to snugly fit the hub of the 2.5" laptop drive. The digits were actually laid out in EAGLE (PCB designer) since it was the only package I had to hand which let you type in rotation angles for characters. This worked OK, but a decent vector drawing package will have more interesting font options. The platter was etched just like a PCB.
It was challenge to fit LEDs and section dividers in the few mm of room behind the platter. My solution was to use SMD components and mount them on flexible kapton copper clad board (awesome stuff) which I picked up on eBay. Just press and peel and etch it as a normal PCB. The finished result, with components on, is only a mm or two in height and can be shaped with scissors and a knife, then glued down in the space under the platter. I made the light dividers from a bit of card cut with a knife and glued to the flexible board.
To index the rotation I used a reflective surface sensor (Osram SFH9202) which detects the passing of a piece of white paper stuck to the back of the platter. I used a strip of matt black insulation tape to give decent contrast on the rim of the platter (FR4 is a bit shiny).
I was a bit worried that the sensor seemed to be getting hot. I am still not convinced this is right, but looking at the data sheet they do dissipate 80mW, and I tried 3 of them and they all did it, so maybe this is right (it hasn't blown up yet!)
The sensor output is quite "analog" and doesn't, by itself, give a nice sharp switching signal. I should have shopped more carefully since Osram do the same sensor with a built in Schmitt trigger output. Still, I had some CD40106 Schmitt trigger inverter chips so I used one of those to give me a clean logic output and it seems to work fine now.
The main board was designed in EAGLE and etched on SRBP using some cheap toner transfer film from a chinese ebay shop. This film is great! it works better than the much more expensive press'n'peel blue and seems less fussy about your ironing technique (i have none). Another first was to etch this with Hydrochloric Acid and Hydrogen Peroxide mixture rather than Ferric Chloride. It is very fast and resulted in less erosion of tracks under the toner, but it also resulted in a nasty lingering chlorine smell pervading the house.
I really enjoy working with SMDs these days, but I used to be terrified of them. Those tiny surface mount components have many advantages: They tend to be cheaper, your boards can be much smaller and need less drilling, and the result is actually really satisfying. I'd say the most important things are magnification (I use a 10x loupe) a decent iron with a small tip (e.g. 0.4 or 0.8mm needle tip), fine solder (e.g. 0.015"), tweezers and a flux pen. Most important of all is practice and expecting it to all go wrong at least a couple of times before you get on a roll with it. Then you'll never look back :)
I'll admit I used solder paste for a couple of the components (the LEDs and their resistors, the two tiny resistor networks, the 16MHz resonator for the Atmega328). I used a hot air tool to reflow the paste. Everything else was done with an iron. The LEDs, resistors and small caps are 0805 size.
I have a small stock of M41T100 realtime clock chips in SOIC8 packages (from an ebay bargain) and I used one of these on this project, with a backup battery.
The MCU is an Atmega328 set up with Arduino bootloader. The code is all Arduino stuff. The Arduino drives the LEDs through a ULN2803 transistor array, since these LEDs are powered in groups of 3 and draw something like 30mA each, which would be too much to drive directly from the Arduino digital output pins.
Last but certainly not least, the hard drive motor is driven by a TDA5144. A word of warning - Don't think you can put power to a hard disk motor and it will spin. These are brushless motors and need electronics to make them work. If you want to try any HDD motor project I recommend you invest in a special IC for it. The Philips TDA5140A and TDA5144 have been perfect for the job in my experience (The TDA5140 - without the A - seems more finicky to get working). You can certainly make your own brushless DC motor controller, but that is a project by itself and I prefer to jump in with the fun stuff :)
Something I was glad I did was to add isolation jumpers to the board so I could power up the Arduino stuff without the motor starting, and vice-versa.
Code and EAGLE files can be found here
https://github.com/hotchk155/DigiPovClock
Nice, now do this with one of those "watch sized" CF card hard disks.
ReplyDeleteI have one here where the platter is virtually see through, due to a nasty head crash.
Maybe I can use this method to make a wristwatch POV clock?
oooh - let me know if you have any luck. Sounds like I might need to check out those myself :) are they the "microdrives" ?
DeleteSince the LEDs have to rapidly turn on and off... how would that affect their life span? I'm curious if you had that running all and day and all night, how long would it be before the LEDs would begin to die and need replacing?
ReplyDeleteI don't think they care.. LED applications like digital clocks and matrix displays are multiplexing LEDs or driving them at less than 100% duty cycle on khz rates, so I don't reckon the switching affects their life at all, and they probably actually last proportionately longer as a result of being on less than the whole time. But I am just guessing :)
DeleteCould you publish the schematic in a more usable format? PDF would be great.
ReplyDeleteok, will see what i can do, but EAGLE is definitely worth a try
ReplyDeleteI use kicad and I'm quite happy with it.
DeleteYou should try making a platter with "pixel" instead of number. You'd kind have the X axis on the led and the Y axis on the platter
ReplyDeleteHere's a crud drawing I did on paint :
https://picasaweb.google.com/lh/photo/l5E1jjzFeFBPtZg3_9Rg6Dmi7wnG3t1uqqrHahqiMnY?feat=directlink
It shouldn't be to hard to etch on a PCB.
Changing to code to access those "pixel" instead of numbers, you'd get a 8xN display.
You could also add more led on the bottom of the platter to get more "x" pixels.
Nice idea Andre! It's got me thinking... if I get anywhere with this will post about it
Delete@andreq is this the kind of think you mean
Deletehttps://plus.google.com/u/0/105009608886388132613/posts/f3ogd42DNnH
pretty dang awesome
ReplyDeleteThis is brilliant!!! - Nicely done.
ReplyDeleteHow did you go about determining capacitor values for your hard drive? I'm right now trying to debug my TDA5144. It rotates one phase, then oscillates. I'm assuming it's my startup capacitor which you specify as 200pF. I did use 200pF though.
ReplyDeleteI copied the values from the application circuit on the TDA5140A data sheet. The value is actually 220nF if its the same cap I am thinking of (c2 on the github wiki page, right?)
DeleteWhy do you use a sensor... do you set the rotation speed with it?
ReplyDeleteOther way round - it measures the rotation speed. Sensor lets the Arduino chip know when each spin of the disk starts so it can time how long it takes and then divide that time up to know the angle of the disk at any moment. That info is used that to flash the LEDs at the right times
DeleteI'm planning on building this myself, and I've run into a few issues.
ReplyDelete[*] What's the voltage on the power supply?
[*] What type of battery are you using for the clock-chip?
Thanks.
Missed the questions :\
Delete1.I run this at about 8v for the motor, which is regulated to 5v for the micro
2.cr1220
What LEDs do you use because because there is needed much current, isn't it?
ReplyDeleteThey are from ebay (hitechledworld). Here is the spec info
DeleteMaterial: InGaN
Size: SMD 0805 SMT
Emitting Colour: Green
Lens Type: Water clear
SIZE:2.0 x 1.25 x 0.8mm 0805 SMD LED
Reverse Voltage: 5.0 V
DC Forward Voltage: Typ: 3.4V Max: 3.6V
Luminous Intensity: Typ: 900mcd
DC Forward Current: 20mA
Viewing Angle: 120-140degree
I used them with 100 ohm series resistance and drive 3 in parallel behind each digit of the POV. I use a ULN2803 NPN transistor array for drive.
Deletethanks!.. a friend of mine and I are also working on a hdd clock as a school-project and your documentation and answers are really helpfull
DeleteI have issue with sensor board.How are parts placed and what is pins value?
ReplyDeleteThis comment has been removed by the author.
DeleteSo sensors pin one goes trough resistor to Sens_Vcc ,pins 3 and 6 are Sens_GND and pin 4 is Sens_Q ? I got it right?
DeleteDeleted my previous comment as sensor should be SFH9202. I added an image which should help you (https://github.com/hotchk155/DigiPovClock/blob/master/sensorboard.gif). Also check out photos at https://plus.google.com/photos/105009608886388132613/albums/5836187581823103281/5836187608373769682
ReplyDeleteHope that helps!
That is exactly what I'm looking for.
DeleteThank you.
Nicely done especially the disk part I was wondering if it can be done alphanumeric
ReplyDeleteI'm starting eagle files I do not see any value capacitors nor resistors.
ReplyDeleteHey, https://github.com/hotchk155/DigiPovClock/wiki/R-C-Component-values
DeleteHi.
Deletethank you.I get stuck with it even if I write.
Hi, we need a HDD drive with Y configuration of the motor,
ReplyDeleteO - motor coils common centre terminal is easy to find, is there any rule how to connect A, B, C - motor coil terminals to TDA5144?
Hi - As long as you have Y-configuration and connect 0 to the common point, you can connect A/B/C in any order. If the disk spins in reverse simply change 2 of the connections over
Deletehi, On the pcb usb next "so8" what the type?
ReplyDeletethanks
That will be the real time clock chip (M41T100).
ReplyDeleteHi, one more question. I'm ready with soldering the boards. Now I'm trying just to spin the hard drive. I'm using 12V input power supply, but the motor doesn't spin. My Atmega is still blank, but I think the TDA driver should run the motor without any control from the MCU?
ReplyDeleteThere are some jumpers to isolate the motor circuit from the power when programming the MCU, so you'll need to put those jumpers in place to spin the motor. Could that be the problem? Cheers/Jason
DeleteHi, The jumpers are set like on this photo:
Deletehttp://1.bp.blogspot.com/-LmT2nx-RFoY/TzGxVc4LIFI/AAAAAAAACUk/s5kdUVWUiCU/s1600/DSC00018+%25282%2529.JPG
The MCU isn't programmed yet, and I didn\t even try to program it. I want just to spin the motor first, after that I will burn the bootloader and so on.
Good day, i think atmega 328 next resonator 16mHz and M41T00M6E rtc clock ic above 32kHz crystal, or?atmega above six pins connector programmed? Thank you for your answer, Alexander.
ReplyDeleteHi - I made this graphic which I hope will help
Deletehttps://raw2.github.com/hotchk155/DigiPovClock/master/board_layout_guide.png
Hi,
ReplyDeleteI was planning on letting some of my students do this as a Science project. They've seen it and they love it. How much do you think this will all cost?
Hi - its hard to say exactly as I used parts which I already had lying about. I think you'd certainly be under $50 but by shopping around and buying in bulk you can probably get lower. Good luck!
Deletehi, i can't can atmega program write on the ic. What the program rs232 through. write, verify, ..... I create rs232 connector bc546 two zener and resistor.
ReplyDeleteawesome project, i am trying to do this project but would like to use a 3.5 inch hard drive, i have no experience with eagle, is there an easy way to convert from 2.5 to 3.5?
ReplyDeleteI ported Ur code to arduino Uno but I got dis problem
ReplyDeleteIn file included from C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.1.0_x64__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
from sketch\DigiPovClock.ino.cpp:1:
E:\C ARDUINO\DigiPovClock-master\DigiPovClock\DigiPovClock.ino: In function 'void TIMER1_0VF_vect()':
E:\C ARDUINO\DigiPovClock-master\DigiPovClock\DigiPovClock.ino:400:6: warning: 'TIMER1_0VF_vect' appears to be a misspelled signal handler, missing __vector prefix [-Wmisspelled-isr]
ISR(TIMER1_0VF_vect)
^
In function 'TIMER1_0VF_vect':
E:\C ARDUINO\DigiPovClock-master\DigiPovClock\DigiPovClock.ino:400:2: warning: 'TIMER1_0VF_vect' appears to be a misspelled signal handler, missing __vector prefix [-Wmisspelled-isr]
ISR(TIMER1_0VF_vect)
^
can U help me Plz Thx
just remove that function - it is not used
DeleteThx
Deletecan I post a code here ?
Deleteand brushless driver I use esc
ReplyDeleteI don't know why Buffer size is 256???
ReplyDeleteWe have 11 digits, so we have to put 11 byte per rev, thus the size of Buffer should be 11 byte..
I think...
Can you explain for me? Please...
yeah - comments in the code explain it; the code treats 1 rotation as 256 "sectors" which makes timing LED activation easy - just put the LED status in each sector 0-255 and "play" them as disk rotates. You could also do fancy animations as any sector can be addressed, but I never got round to it..
ReplyDeleteI am very happy because I can get this useful information
ReplyDeleteOf course with this good article, I will better understand something that you wrote this.
Thank you very much because you are willing to share interesting things like this with all of us.
Greetings, and good luck always :)
Benjolan Di Payudara Sebagai Ciri Kanker Cara Menyembuhkan Gondokan Cara Mengobati Infeksi Jamur Pada Miss V Cara Alami untuk Menghilangkan Kutil Obat Usus Buntu yang Ampuh Cara Menghilangkan nyeri Pada Lutut Saat Jongkok Biaya Operasi Usus Buntu Obat Penghilang Gatal Pada Kemaluan Benjolan Di Payudara Cara Menghilangkan Koreng
I think I understand Your code 90%, but there are parts that can't get into my head. Can you explain a bit updateClock() function. How did you get those values (235,214,...) and why q && 0xff part? I think I understood the colons part. Also, part where buffers are changed; WHEN exactly are all 256 bytes switched. I mean, I see WHERE is this in code but don't understand. I didn't know it's possible to do it like that at once (well, I'm still strugling to learn C). Is it because those pointers are related to arrays or what? Sorry for my bad english, and sorry if I'm bothering You, I know you posted this long time ago. Best wishes...
ReplyDeleteAfter little drawing I think I figured out first part of my question and in case somebody else is interested I'll write this here, but I'm not 100% sure. LEDs below first digit (seconds) and last digit (tens of hours) are spaced 180° apart. Sensor iz placed approximately 120° from first digit. When we turn degrees into positions, since we have 256 positions, 256/360° = 0.71111 pos/degree. So first digit falls in 120° * 0.7111 = 85.33 and we add one segment width 85.33 + 23.2 = 108.5. In code we have 111 which is close. For last digit we have (120° + 180°) * 0.7111 = 213.33 and we add one segment width 213.33 + 23.2 = 236.53 In code this is 235. We are adding one segment because piece of paper that triggers whole thing is placed exactly below colon and you have one segment to get to zero. I think LEDs are spaced in this order: 0°,30°,52.5°(first colon),75°,105°,127.5°(second colon),150°,180° counterclockwise in the direction of platter rotation. Sensor iz at 240° or -120°. All other positions are calculated from those angles.
DeleteStuff And Nonsense: Digital Pov Clock Working! Mostly >>>>> Download Now
ReplyDelete>>>>> Download Full
Stuff And Nonsense: Digital Pov Clock Working! Mostly >>>>> Download LINK
>>>>> Download Now
Stuff And Nonsense: Digital Pov Clock Working! Mostly >>>>> Download Full
>>>>> Download LINK Rn