Measuring and Controlling Motor Speed With a Microcontroller

3,358

12

2

Posted in TechnologyMicrocontrollers

Introduction: Measuring and Controlling Motor Speed With a Microcontroller

About: I enjoy making things - both hardware and software. I run a small company that does consultancy, and also makes the Morphyre Music Visualiser (http://www.morphyre.com) and the Espruino JavaScript interpreter...

Sometimes it's really useful to accurately control the speed of a motor. Usually it's quite difficult, requiring a powerful transistor to switch power for the motor, and a photochopper to measure the speed. However, the fans you find in newer PCs (the ones with 4 wires) have control electronics and a position sensor built in! You could easily cut off the fan blades and use the motors for whatever you want!

In this video, I'll show you how to use an STM32F3DISCOVERY board running the Espruino JavaScript interpreter to control the fan speed in real-time!

Share

    Recommendations

    • Woodworking Contest

      Woodworking Contest
    • Make it Move Contest

      Make it Move Contest
    • Microcontroller Contest

      Microcontroller Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    2 Comments

    I agree with waldosan!

    that's so awesome, i think i learned more about code in the 16 minutes of watching you write code than i have in my entire life...