Shop OBEX P1 Docs P2 Docs Learn Events
Hard Drive Stepper Motor - with high speed spin-up circuit — Parallax Forums

Hard Drive Stepper Motor - with high speed spin-up circuit

Beau SchwabeBeau Schwabe Posts: 6,545
edited 2013-03-21 11:19 in General Discussion
Don't throw away that DEAD hard drive just yet...

I had a couple of western digital hard drives lying around that were DEAD. Initially I was going to just harvest the magnets from the drives, but I focused my attention towards the hard drive motor itself instead.

On the left hand side of the image, I just soldered 4 wires to the back of the motor. Normally these contacts make a connection with the circuit board via spring clips. Anyway I placed a black DOT that I will refer to as terminal #1, the others from left to right are #2,#3, and #4.

First I took an ohm meter and measured the coil resistances with the various combination possibilities with their results...

1-2   4.3 Ohms
1-3   4.3 Ohms
1-4   2.5 Ohms
2-3   4.3 Ohms
2-4   2.5 Ohms
3-4   2.5 Ohms




...I looked for the common denominator for the least amount of coil resistance and it worked out to be #4 ... so this is my common. (See Coils.jpg)


Next was to determine the sequence ... this was just by trial an error but here it is...

CCW     CW

+  -    +  -

4  3    4  3
1  4    2  4
4  2    4  1
3  4    3  4
4  1    4  2
2  4    1  4





... Note the polarity. So A proposed driver circuit might be composed of 4 Half-Bridges (See HD Drive.jpg)

Edit
Here is a circuit that will spin up the hard drive to a high speed.
http://forums.parallax.com/showthread.php?p=881285


I just thought I would pass this information along (I hadn't seen Hard drive motors being re-purposed here in the forum)


The motors are 6 Phase 24 Steps per revolution or 15 Deg per step.

Enjoy!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe

IC Layout Engineer
Parallax, Inc.

Post Edited (Beau Schwabe (Parallax)) : 2/14/2010 2:43:56 PM GMT
«1

Comments

  • ercoerco Posts: 20,244
    edited 2010-02-09 17:38
    Great info, Beau! You're a busy fellow with lots of interesting things going on. Nice to see you have time for creative explorations like this. Keep 'em coming!

    And per Ken, keep cracking on that Prop2 layout! [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • PrettybirdPrettybird Posts: 269
    edited 2010-02-09 18:05
    Like your post. I am also a scavenger and have a few dead hard drives around. Looks like a tiny 3 phase Y motor
  • Beau SchwabeBeau Schwabe Posts: 6,545
    edited 2010-02-10 04:50
    erco,

    Thanks... just trying to clean some of the clutter. I got the urge to dismantle the DEAD hard drive during the evening 10'oclock news and by mid-night I decided to post what I found.

    Seems like a very capable little motor that might make a good little robot if you get a couple of them and put wheels on the hub.


    Prettybird,

    Thanks... The motor can be driven in 3-Phase if you don't flip the polarity, so yeah, technically it's a bipolar 3-Phase stepper, but there are a total of six Phase sequences before you see a repeat.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 2/10/2010 4:55:31 AM GMT
  • David BDavid B Posts: 590
    edited 2010-02-10 22:36
    All the stepper motors I've played with produce a feeling of strong ripply pulses if I rotate the shaft by hand, but the disassembled hard disks I've seen seem to spin super freely.

    Why is that?

    Is the stepper designed with a massive magnetic core that retains lots of residual magnetism, where the hard drive motor does not?

    Does that mean the stepper was designed for lots of magnetic force at low speeds, but will be limited to only moderate top rotational speeds, where the hard disk motor will not have much low speed torque, but will be capable of much higher top speed? Does that sound right?

    Beau, did the motor feel like it had much zero or low speed torque?

    Are there any other differences that would affect how a motor like this could be used?

    I was thinking that the hard drive motor could be used for a little 3 phase generator, but then realized that it probably would have to be spun at quite a high rate of speed to get any watts out of it... but then, I've got a little low-power high speed Stirling engine that might be a good fit for a generator like this!
  • eiplannereiplanner Posts: 112
    edited 2010-02-11 01:09
    I really like this idea because I have kept every hard drive I have ever owned for the past 24 years. I believe I must have
    at least a dozen. Always thought I would keep them for more drive storage space but then every couple of years newer
    bigger faster drives come out that dwarf the old units in capacity. So as long as I have them, I may as well put them to
    good use. What other components might I salvage from these? I heard the mention of magnets. Any other goodies?


    Not meaning to hijack the thread and Ok with being moved if this is not the correct place but on the subject of stepper motors,
    I purchased 4 motors on eBay @ $7.50 each and haven't been able to get them turning. And please, before I catch a barrage
    of flack concerning "you get what you pay for", I just thought is was a nice price that I could afford to sacrifice even if I
    couldn't get them going.

    They had no datasheet, no manufacturer name, and no listed voltage rating. There is an ID sticker on the side with the part number
    and deg/step value but thats about it. They appear to be in great condition and I was hoping someone here might have also purchased
    these or know of a way to get the voltage rating and wire sequence to use in programming.

    It is a 4 wire setup:

    Brown, Orange, Red, Yellow

    brown to red = open
    brown to yellow = open
    brown to orange = 14 ohms
    red to yellow = 14 ohms
    red to orange = open
    orange to yellow = open

    So, I can see the two circuits and I have had it connected to my PDB at one time at the L293 pins and could never correctly identify
    the sequencing. I attempted this with 5v, 9v, 12v external supply voltages each time going through the possible combinations of the
    4 wires and could never get more than a vibration out of the shaft. The motors are pictured below. I googled and yahoo'd them and
    the only thing that came up besides more people selling them was a picture mentioning their use in a syringe pump. Any help would
    be great

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    and so, the journey continues..........
    1984 x 1488 - 456K
    1984 x 1488 - 348K
    1984 x 1488 - 530K
  • Beau SchwabeBeau Schwabe Posts: 6,545
    edited 2010-02-11 04:17
    @David B,

    To several of your questions, I'm not sure, but I would guess that much has to do with the fact that most steppers (more motion precision) have less deg per step typically 1.8 Deg where the Hard drive motor (more speed precision) has 15 Deg per step.

    I haven't done any torque tests with the Hard drive motors yet, but when I energize one of the coils with a 3.7 li-poly, it has a respectable amount of hold. The motors are probably meant for 12V but I haven't pushed it above 3.7V during any of my testing.

    @eiplanner,

    No need to feel like you are hijacking the thread, I was just offering a service ... The subject of stepper motors comes up in the forum from time to time so no big deal.

    "I heard the mention of magnets. Any other goodies?" ... probably some good bearings in the read/write head but I haven't figured out how to get them out yet. Some of them have a clip, and others are moulded in plastic. The platters themselves are interesting, I have an idea for them but I'll save that surprise for later. smilewinkgrin.gif


    I would guess that your stepper motor is bipolar, meaning that to operate correctly you need to reverse the polarity to the coils. Since it has only two coils it's 4-phase and you almost have to reverse the polarity, otherwise it >will< just wiggle back and forth as you describe.

    The two coils:
    brown/orange and red/yellow

    There isn't much that can go wrong with a stepper, the fact that you are getting an omic reading is good.

    I would try this sequence:

    +       -
    brown   orange
    red     yellow
    orange  brown
    yellow  red
    
    



    To reverse the sequence, just reverse the polarity of one of the sequence pairs like this:

    +       -
    brown   orange
    yellow  red
    orange  brown
    red     yellow
    
    




    See if that doesn't do anything different... sometimes it helps to mark the shaft against the base with a Sharpie or something so you can see any net movement.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 2/11/2010 8:25:47 AM GMT
  • kwinnkwinn Posts: 8,697
    edited 2010-02-11 04:30
    Hard disk motors are not really stepper motors. All the units I have dismantled are permanent magnet brushless dc motors. The platters need to spin at a constant velocity for the data to be read so the "steps" produced by a stepper motor would not work.
  • eiplannereiplanner Posts: 112
    edited 2010-02-11 07:41
    Thanks Beau, I'll give it a shot tomorrow.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    and so, the journey continues..........
  • Beau SchwabeBeau Schwabe Posts: 6,545
    edited 2010-02-11 07:47
    kwinn,

    A stepper motor is a dc brushless synchronous motor is it not? Assuming you have enough kinetic momentum to carry it through, you can monitor the velocity of a stepper motor by not driving a particular step and reading the coil as an input device instead.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 2/11/2010 4:10:38 PM GMT
  • kwinnkwinn Posts: 8,697
    edited 2010-02-12 03:32
    Beau, you have a good point. The brushless dc motor is actually very similar to a stepper motor. It is the control circuitry and the mass of the rotor that differentiates the brushless dc motor from a stepper motor.

    Post Edited (kwinn) : 2/12/2010 8:48:53 PM GMT
  • DragonDragon Posts: 4
    edited 2010-02-12 21:13
    Hello all,

    ···· I am still a newbie, I am trying to build my own small cnc (larger cnc later) and I took a few printers apart and found these stepper motors, just thought I would share my headaches, maybe help someone elses headache be a little less. The printers where HPs and one Epson. The numbers I found on the motors are:

    PM55L-048-HPG9

    PM35L-048-HPD4

    and of course the one I am sending a picture of



    ···· I found that, I hook the common to the +V and then apply -V to leads· A-for and B-for, in that order the shaft turns forward. -V to leads A-rev and B-rev, in that order the shaft turns in reverse.

    I am guessing that instead of these being a regular 4coil stepper, they must be 2phase (if thats the right terminology).



    Can anyone tell me if I can make these 4coil steppers, if so, how?

    I have two old flat bed scanners I am working on next, trying to figure out the stepping sequence, they are also 5 wire.

    Anyway, hope this might help someone in the future. As far as these specific printer motors. I spent a week trying to figure out how to sequence the 4 coils for these. And accidentally figured out the above sequence for them.

    If anyone has any experiences with making a small cnc with Lpt printer port running TurboCNC and using steppers from scanners that wants to share, I would appreciate it greatly. I am thinking of useing the BS2 or the Prop to take the signals from the Lpt and deliver the signals out to the steppers.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dragon
    1280 x 960 - 297K
    1280 x 960 - 294K
    1280 x 960 - 309K
    1280 x 960 - 303K
  • DufferDuffer Posts: 374
    edited 2010-02-13 02:10
    Here is an excellent source for information on stepper motors and how to identify the poles and sequence.

    http://www.piclist.com/techref/io/stepper/wires.htm

    Duffer

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Any technology, sufficiently developed, is indistinguishable from magic.· A.C. Clark(RIP)
  • Beau SchwabeBeau Schwabe Posts: 6,545
    edited 2010-02-13 09:15
    PLEASE USE CAUTION:

    Here is a circuit that will spin-up the Hard drive motor at an extremely high rate of speed. Please us caution when attempting this.

    The video shows the circuit without an enable protection and no micro controller attached, it will keep climbing in speed.

    In the schematic I have included an "ENABLE" and a "TACH". The idea is for a processor to monitor the motor speed through the tach and adjust the enable appropriately.

    Note: You'll notice in the video, that you need to give the motor a little bit of a start. With two more MOSFET drives, a micro could initially "get it going", and the circuit I have provided can take it the remainder of the way.

    The initial idea with this is to create a "real" mechanical gyroscope using the hard drive motor and applying that to a balancing robot.

    Note:
    - The MOSFET I am using for this is a monster, it's way overkill but it's one of my favorites and I have several. They are rated for 250V 21Amp and have an RdsOn of 0.14 Ohms. The RdsOn is a little high, but for this demo it worked out fine.

    - Caution when interfacing the Tach, the output is 12V and should be placed through a voltage divider before detecting it with a micro controller.


    The idea of the schematic is for the Op-Amp to detect the Phase 'just' before the coil that needs to be energized. It does this by comparing the voltage differences between the two coil phases that are not being driven. To change the direction of the motor, simply reverse the order of the phases entering the Op-Amp. The Output of the Op-Amp provides the transistor drive as well as a tach that can be monitored. The 'Enable' is a safe way for a micro controller to throttle the top speed. The capacitor is there to hold the drive coil energized for just a little bit longer to sustain the detection from the previous Phase.


    Video demo here: (I apologize for my voice in the video... It's late and I'm trying not to make a great deal of noise, and I'm trying to fight a sore throat- yuck)
    http://www.youtube.com/watch?v=LwruLrhchcE

    Mosfet datasheet here:
    www.datasheetcatalog.org/datasheet/fairchild/IRFS654B.pdf


    Enjoy!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 2/13/2010 11:56:30 PM GMT
  • eiplannereiplanner Posts: 112
    edited 2010-02-13 17:06
    Is there any method to obtain a voltage rating for a stepper motor without a data sheet?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    and so, the journey continues..........
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-02-13 17:12
    How·would you·Adj the speed· or can this be done
    ·Thanks


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam
  • Beau SchwabeBeau Schwabe Posts: 6,545
    edited 2010-02-13 18:35
    sam_sam_sam,

    That's what the TACH and ENABLE are for.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-02-13 22:17
    Beau

    I have a question can you have the TACH go to an optic sensor like an 4N25 then·to the Basic Stamp I/O pin

    Or am I wrong in think that· this would work


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam
  • Peter KG6LSEPeter KG6LSE Posts: 1,383
    edited 2010-02-13 22:51
    I have tons of 15K HDs that would be awesome for this .. I wonder How fast I can get them to go ..



    Peter KG6LSE

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "Carpe Ducktum" "seize the tape!!"
    peterthethinker.com/tesla/Venom/Venom.html
    Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. —Tanenbaum, Andrew S.
    LOL
  • Beau SchwabeBeau Schwabe Posts: 6,545
    edited 2010-02-13 22:52
    sam_sam_sam,

    You could use an opto, or just use a voltage divider...

    for 3.3V, use a 100K and 33K resistor

    for 5V, use a 100K and 68K resistor

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Beau SchwabeBeau Schwabe Posts: 6,545
    edited 2010-02-13 23:01
    Peter KG6LSE,

    I was reading about 600Hz on the TACH before I decided to turn it off. In 3-Phase there are 4 steps per revolution per coil, so about 150 rps = .... 9000rpm and I felt it had plenty of headroom to go faster.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 2/14/2010 7:10:59 AM GMT
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-02-14 14:13
    Beau

    Thanks for all of info for the hard drive stepper motor and how to use them
    I am going to give this a try

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam
  • axeniasaxenias Posts: 1
    edited 2012-11-29 06:46
    PLEASE USE CAUTION:

    Here is a circuit that will spin-up the Hard drive motor at an extremely high rate of speed. Please us caution when attempting this.

    The video shows the circuit without an enable protection and no micro controller attached, it will keep climbing in speed.

    In the schematic I have included an "ENABLE" and a "TACH". The idea is for a processor to monitor the motor speed through the tach and adjust the enable appropriately.

    Note: You'll notice in the video, that you need to give the motor a little bit of a start. With two more MOSFET drives, a micro could initially "get it going", and the circuit I have provided can take it the remainder of the way.

    The initial idea with this is to create a "real" mechanical gyroscope using the hard drive motor and applying that to a balancing robot.

    Note:
    - The MOSFET I am using for this is a monster, it's way overkill but it's one of my favorites and I have several. They are rated for 250V 21Amp and have an RdsOn of 0.14 Ohms. The RdsOn is a little high, but for this demo it worked out fine.

    - Caution when interfacing the Tach, the output is 12V and should be placed through a voltage divider before detecting it with a micro controller.


    The idea of the schematic is for the Op-Amp to detect the Phase 'just' before the coil that needs to be energized. It does this by comparing the voltage differences between the two coil phases that are not being driven. To change the direction of the motor, simply reverse the order of the phases entering the Op-Amp. The Output of the Op-Amp provides the transistor drive as well as a tach that can be monitored. The 'Enable' is a safe way for a micro controller to throttle the top speed. The capacitor is there to hold the drive coil energized for just a little bit longer to sustain the detection from the previous Phase.


    Video demo here: (I apologize for my voice in the video... It's late and I'm trying not to make a great deal of noise, and I'm trying to fight a sore throat- yuck)
    http://www.youtube.com/watch?v=LwruLrhchcE

    Mosfet datasheet here:
    www.datasheetcatalog.org/datasheet/fairchild/IRFS654B.pdf


    Enjoy!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 2/13/2010 11:56:30 PM GMT


    Hi, i have order all requipments from my local store to make the circuit and i have some questions please.

    1)I ordered PLUS 2 more MOSFET drives wich i need more info were excactly to put them.
    2)Where can i find/put "
    a micro that could initially get it going".
    3)Can i put a dimer instead of TACH?

    All i want to do is to make a seagate hdd motor (3 wires) to run in stable high speed (5400 or more.)

    Please help me further to complete my task.

    Alex, Greece.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2012-11-29 18:49
    Wow. I am glad someone responded to this thread. I just won about ten pounds worth of these types of motors on EBay 2 weeks ago!!!!
  • ElectroNickElectroNick Posts: 1
    edited 2013-03-20 16:42
    PLEASE USE CAUTION:

    Here is a circuit that will spin-up the Hard drive motor at an extremely high rate of speed. Please us caution when attempting this.

    The video shows the circuit without an enable protection and no micro controller attached, it will keep climbing in speed.

    Beau, this circuit is awesome! I was just looking for something like a standalone spin up to unload the MCU from having to commutate the windings of an HDD BLDC - I am finding that the processor has absolutely no time to do anything else if youy're looking for fast RPMs.

    But I am having a heck of a hard time making it start. Once it's started, it's going like a rocket :) but to start it I have to expend as much effort as starting a diesel engine in the middle of a winter night - it does not seem to kick in as easily as on your video. I have to do everything very carefully in order - lower the voltage from power suply to exactly 6.8V, then give it the best spin I possibly can while going AGAINST the direction that seems the easiest (that was the hardest part to discover). The motor makes all kinds of strange noises that sounds like something is loose inside. But if I'm lucky, it catches on at exactly that voltage, them I can let it spin up a bit and after that I can go anywhere between 6V and 15V and it spins visibly easier and the weird noise from the motor stops. The circuit pretty much shuts down at less than 6V and I'm afraid to crank it up past 15V because it spins so fast, I'm afraid the platters will easily remove my head from my shoulders should the mount fail.

    Do you have any suggestions for making it start easier? I have to actually work on auto-starting it before I can really use it but just making it start in less than half an hour of significant effort would already be a great step forward.

    I would appreciate any input you can provide on this.

    Great circuit, BTW, ingenious!
  • frank freedmanfrank freedman Posts: 1,974
    edited 2013-03-20 21:33
    If you have more than one, start at twelve volts, though depending on where you got this it may be 24v. 24v is dirt common.
    eiplanner wrote: »
    Is there any method to obtain a voltage rating for a stepper motor without a data sheet?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    and so, the journey continues..........
  • skylightskylight Posts: 1,915
    edited 2013-03-21 03:18
    Using caution of course I wonder if the platter spinning at high speed would be useful as a filter gel cutter might have to serrate the edges of the platter?
  • Mark_TMark_T Posts: 1,981
    edited 2013-03-21 11:19
    skylight wrote: »
    Using caution of course I wonder if the platter spinning at high speed would be useful as a filter gel cutter might have to serrate the edges of the platter?

    Most platters these days are glass - be warned.
  • Thanks for all information, sir!
  • Beau is it possible to modify/adapt your circuit to work with engines which have 3 wires?
    Most of the newer hdd's have such engines.
    They have all coils connected (I am guessing).

    engine.jpg

  • Heater.Heater. Posts: 21,230
    Wow, I just noticed that Beau said:
    The initial idea with this is to create a "real" mechanical gyroscope using the hard drive motor and applying that to a balancing robot.
    Wonder what happened to that idea?

    I have been day dreaming about exactly that for ages.

Sign In or Register to comment.