Motors and Microcontrollers 101

posted Jun 29th 2009 12:58pm by
filed under: misc hacks

[Humberto] from NerdKits sends in the newest addition to their excellent collection of videos. This video goes over the basics of DC motor control with microcontrollers. They begin by showing nine experiments and observations that can be done by the average hacker with a multimeter, motor, LED, and jumperwire. Using the results from these they show how to model and calculate the properties of a motor. Lastly, it shows how to control a motor using PWM. They have supplemental text and demonstration code for an ATmega168 on their website.



7 Responses to Motors and Microcontrollers 101

  • beaker says:

    this is great stuff, keep up the good work.

  • Chris says:

    Their videos are always excellent, despite some basic topics they cover everything so clearly that it is great for explaining things.

  • Sammy says:

    Their vids are really good. it is only the basics but i still learn something when i watch them.

  • strider_mt2k says:

    awesome

    such good stuff here

  • MrX says:

    The flyback diode is really a good point.

    Though, I think I don’t need it if the
    micro-controller powers the motor using a smooth
    transition from the off state. Am I right?

  • svofski says:

    @mrx: you always need a flyback diode. a motor can come to a sudden stop, or imagine what happens when it’s not moving but someone turns the rotor.

  • Brett_cgb says:

    mrx – If you’re just turning the motor on, you don’t need the diode. However, the first time you turn it off could also be the last time because the switch is damaged. This means you might not be able to turn it on a second time. (Notice that I didn’t say anything about what’s doing the switching.)

    Very nicely done videos!

  • Leave a Reply

    XHTML: You can use these tags: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

    Send us your hacks










         




    Hacks

    Resources