Step 30: Stepper Motor Electronics

A stepper motor driver can be purchased for around $15 , or one can be programmed on a microcontroller. The microcontroller option is cheaper, and allows us to add features that may not be available on a driver circuit. An ATtiny2313 is again chosen to drive the stepping sequence of the motor. Programming a step limit allows us to tell the motor how far it is required to turn before stopping. A general stepper motor driver was written in C for the ATtiny2313 and several input pins were used to determine various factors about how quickly, and how far the motor would turn. Limit switch inputs were also included in the code as a means of redundantly stopping the motor from turning past its desired bounds.

To provide the motor with enough power to turn a ULN2803 eight Darlington array with a common emitter was used to sink power through the motor terminals. Although only four of the eight Darlington pairs are required to drive the stepper motor a person can use the extra four, and the unused four digital I/O lines on the ATtiny2313, to drive a second motor at the same time for use on a future subsystem. The pinout of the ULN2803 Darlington transistor array can be seen above

The block diagram for this subsystem is shown above as well.

I like this
Wow!... You made a lot of "projects" inside one project!... tks for sharing it...
Something like this? - http://sparky3489.webs.com/pcinterfaceproject.htm <br> <br>Using a program called Team Viewer, I can access my system anywhere there's an internet connection.
man, it&acute;s like instructables.rar <br>lots of data, seems interesting, i&acute;ll process it slowly and post outcomes <br>thanks
man i lost my mind here!.....hard to follow you anyway....hahaha
lol.... when I read your post I took the &quot;ha ha ha&quot; as some kind of maniacal laughter and I thought: <br> <br>&quot;YES! I've finally broke someone with logic!&quot; <br> <br>Thanks for the post! made my day.
lol......I thank you....maybe some day will provide your help to make my own smart system
What model electric door strike did you use?
It was just some generic electronic strike I found on ebay for $30 a few years back. Ebay member ID I think was KAWALock. Here is one they have for sale now 7 or so years later: http://www.ebay.com/itm/Fail-Secure-NO-Electric-Strike-Lock-for-Wood-Metal-Door-/251065222487?pt=LH_DefaultDomain_0&amp;hash=item3a74a74557 <br>
What an absolute &quot;cracker&quot; of a circuit,congrats Dathomar, a very meticulously presented instuctable,superb.
Awesome job! I love how thorough you are on the details :D
Thanks! I tried to put in everything most people would need, but actually cut a lot from what I have so as to leave it general. I'd like to add more updates as time permits though.
Outstanding! This is just what I was looking for. BobbadOut is right: You are thorough!
Ditto squared!!

About This Instructable




More by dathomar:Automated Talking Skull Remote Home Automation 
Add instructable to: