element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Nico teWinkel's Blog Hard drive motor on Arduino
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 26 May 2020 9:18 PM Date Created
  • Views 1278 views
  • Likes 8 likes
  • Comments 4 comments
  • hard drive motor
  • hdd
  • arduino
Related
Recommended

Hard drive motor on Arduino

ntewinkel
ntewinkel
26 May 2020

I'm working on a collaborative art project with my wife SuperArtGirl.

It involves me needing to come up with lights and propeller control for a little airplane art.

 

Luckily I still have some salvaged *cough* hoarded *cough* hard drive motors from the olden days of spinning storage.

 

So the thought goes kinda like this: "how hard can it be? just turn on the motor and voila! done!"

 

But these motors are a little bit more sophisticated than that - you can't just hook up a  + and - wire and have it run. It has 4 pins, one of which is common, plus 3 phases for the motor.

You then have to energize the phases in sequence, with exactly the right amount of time apart, to make it spin.

 

And you can't just set it to a fast kind of pace to start with, as it needs time to ramp up the speed. So you have to start with a bigger time delay (more time each phase is energized), and then as the motor speeds up you can decrease the delay little by little until you hit maximum speed, after which the motor kinda stalls if you try to go faster.

 

I'm guessing the maximum speed, as well as the startup speed, heavily depends on the input voltage.

However; I found it's possible to power it directly off the Arduino output pins if you go gently with the startup sequence.

It gets more oompf to startup better and run faster by using transistors though - which I'm guessing is also better for longer life of the Arduino. Plus you can switch to a higher voltage power source later if desired.

 

Here is a little movie of one of my earlier attempts:

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

It's a bit rough at startup, and then at the end my timing tries to make it faster than it can handle image

 

I later found a Wiki article that described the use of slightly overlapping phases to provide a smoother start.

 

On the other hand, those old airplanes are pretty rough at startup too, aren't they? image

 

I'll try to cleanup and github my code soon, and then I'll attach it here too.

 

Stay safe and have fun out there!

-Nico

  • Sign in to reply

Top Comments

  • neilk
    neilk over 5 years ago +1
    Nice one, Nico. Looking forward to seeing the finished result. Neil
  • mp2100
    mp2100 over 5 years ago +1
    Very useful information. Last week I took apart 2 hard drives, each one was different but similar. (I like the strong magnets inside for attaching things to my metal cabinet). I applied a few volts to…
  • dubbie
    dubbie over 5 years ago +1
    It was interesting to see this type of motor being driven directly from Arduino outputs. I have dumped all my old hard drive motors as I didn't think I would be able to do anything with them, but should…
  • dubbie
    dubbie over 5 years ago

    It was interesting to see this type of motor being driven directly from Arduino outputs. I have dumped all my old hard drive motors as I didn't think I would be able to do anything with them, but should I ever come across another one I might try this out.

     

    I once tried to use an old cassette tape play to make an animation for a bill board once, it worked but not that well. It wasn't designed to be outside all the time!

     

    Dubbie

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 5 years ago in reply to mp2100

    mp2100  wrote:

     

    ... connect them to an L293D or something.  But this sounds a bit different.

     

    From what I've seen, I understand that's the easier way to do it: use an ESC or L293D to drive them.

     

    In my case I don't want to wait for parts to arrive, and also I'd like to keep it simple. edit: keep the circuit simple.. I'm guessing the procedure is more complex haha image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mp2100
    mp2100 over 5 years ago

    Very useful information.  Last week I took apart 2 hard drives, each one was different but similar.  (I like the strong magnets inside for attaching things to my metal cabinet).  I applied a few volts to those 4 pins, and noticed each would rotate and stop.  I was thinking they might be stepper motors, and I would connect them to an L293D or something.  But this sounds a bit different.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • neilk
    neilk over 5 years ago

    Nice one, Nico. Looking forward to seeing the finished result.

     

    Neil

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube