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 8The End

So what did I learn? Driving a stepper motor with an AVR (and an H-bridge chip) is pretty easy, even in the "fancy" half-stepping mode.

Not sure what I'll do with the little stepper motors just yet, though. Any suggestions?
« Previous StepDownload PDFView All StepsNext Step »
8 comments
May 7, 2011. 12:06 PMuberdum05 says:
An idea for the stepper motor, use two of them in a small robot as the drive motors to do fancy precision moves :)
Mar 17, 2009. 3:47 AMTobiasPl says:
I really like this tutorial! Very easy to follow, but I have a questions left: Lets say the sequence is BLUE BLACK RED YELLOW and RED is set to 5V, all others to 0V. Now I turn off the current and later on, I turn it on again but the IC now again starts with BLUE at 5V instead of RED. What will happen?
Mar 16, 2008. 3:44 PMTurboTronix says:
I want to use this setup to open and close a valve (for water current)...
May 10, 2008. 10:37 PMHerodotus says:
I went to the hardware today (Sydney, Australia) to get a solenoid garden watering valve to use on my yacht. All seemed to be either mains power or 24 volt DC - no 12 volt available. Anypne know where I can get a 12 volt DC one please?
Mar 20, 2008. 7:38 AMTurboTronix says:
It is for a school project. I changed it a little though. Now all I need is to use your setup but with some sort of a switch that will allow me to choose the spinning direction. I tried adding a simple ON/OFF switch to one of the ATTINY2313 chip without success. I ordered the H-bridge and should be getting it shortly. Do you know by any chance how should your code look with an input?
Mar 17, 2008. 1:48 PMTurboTronix says:
ya i guess you are right... A selenoid would be a better idea. I saw an electrical one so basically it would be a simple ON/OFF switch rather then spin.

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