3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Drive a Stepper Motor with an AVR Microprocessor

Step 7Add a Motor Driver

Add a Motor Driver
«
  • stepper driver 00011.jpg
  • stepper driver 00013.jpg
  • stepper driver schematic 00002.jpg
So far so good.

Only problem is that the motor doesn't seem to have all that much torque, which could be due to the fact that the microprocessor will only put out ~50mA per pin. The obvious next step would be to hook it up to a motor driver to supply it with more juice.

But then a little thinkin': I'm only driving it with 5v, and the coil-winding resistance is ~125 ohms. Which means that the motor's only drawing 40mA per pin, and it should be driven just fine by the (beefy!) AVR chip.

So to get more voltage driving the motor, I hooked it up to a SN754410 H-bridge chip. The circuit is pretty simple. Each pin from the AVR goes to an input, and the corresponding output pins go to the motor. The chip needs 5v for the logic section, and can take a lot more voltage in the motor section.

Running it on 11.25v (three 3.6v batteries) helped a bit. Noticeably more torque to my finger, but it's still not a powerhouse. Not bad for a motor which is smaller than a nickel, though. And now the circuit's become a general-purpose bipolar stepper motor driver.

Added Nov 29: Ran the motor last night at 12v for a while and it started to get hot. I'm not sure if it was a resonant frequency problem or if it was simply too much current for the windings. Either way, be a bit careful if you're driving this little motor with bigger voltages.
« Previous StepDownload PDFView All StepsNext Step »
4 comments
Dec 24, 2010. 3:19 AMspecospec says:
what about using l293d
Jul 28, 2010. 3:43 AMvhk says:
Hi I have a unipolar stepper motor 0.4A,15v,1.8 degree my chip is attiny3213, can i drive it with ULN2803?
Jul 31, 2010. 11:12 PMnm17 says:
Should be fine. According to manufacturers site: "currents up to 1 A at voltages from 4.5 V to 36 V"

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
95
Followers
7
Author:The Real Elliot