Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Maltaeron on January 30, 2008, 06:23:31 PM

Title: DIY Stepper Controller
Post by: Maltaeron on January 30, 2008, 06:23:31 PM
I have some steppers that I salvaged from an Epson printer that I want to use. Both steppers have 4 leads with 8 coils and a permanent magnet inside them. The last thing I want to do is buy some expensive controllers, is there some easier way to do this?

As far as my understanding goes, the only reason the steppers can't be directly connected to a microcontroller (atMega168 for me) is that the microcontroller can't support enough current.

Following this reasoning, could I use something like a MOSFET (4 for each stepper) to drive the steppers?
Title: Re: DIY Stepper Controller
Post by: airman00 on January 30, 2008, 06:35:14 PM
I have some steppers that I salvaged from an Epson printer that I want to use. Both steppers have 4 leads with 8 coils and a permanent magnet inside them. The last thing I want to do is buy some expensive controllers, is there some easier way to do this?

As far as my understanding goes, the only reason the steppers can't be directly connected to a microcontroller (atMega168 for me) is that the microcontroller can't support enough current.

Following this reasoning, could I use something like a MOSFET (4 for each stepper) to drive the steppers?

yes you could use MOSFETs, and your idea with the microcontroller is correct also
Title: Re: DIY Stepper Controller
Post by: Maltaeron on January 30, 2008, 07:11:22 PM
So that would work with my steppers?  :o  :)

That would be nice, also does anyone know what type of MOSFET I should buy? Just so I have an idea of what to look for from digikey...

Thanks  ;)
Title: Re: DIY Stepper Controller
Post by: Ro-Bot-X on January 31, 2008, 12:48:42 AM
I have some steppers that I salvaged from an Epson printer that I want to use. Both steppers have 4 leads with 8 coils and a permanent magnet inside them. The last thing I want to do is buy some expensive controllers, is there some easier way to do this?

The steppers have just 4 leads? Or 4 leads plus ground? How do you know there are 8 coils?

Steppers are bipolar, that means 2 coils and 4 leads, and unipolar, that means 4 coils and 5 or 6 leads. As far as I remember the Epson printer has bipolar steppers rated at about 3 amps. I'll check latter at work.
Title: Re: DIY Stepper Controller
Post by: Maltaeron on January 31, 2008, 07:55:11 AM
I opened it up.  ;D Only 4 leads, each lead connects to two coils opposite of each other. Maybe I'm talking about the coils the wrong way, but inside they are just bundles of wire round up together... The permanent magnet is the part that rotates. It is my guess that if I energize one lead, the magnet/gear will align with that leads two coils, without a ground. I sequentially switch the energized lead to take each step forward...
Title: Re: DIY Stepper Controller
Post by: paulstreats on January 31, 2008, 08:00:57 AM
correct
Title: Re: DIY Stepper Controller
Post by: JonHylands on January 31, 2008, 08:01:20 AM
Go to Google, and type in:

bipolar stepper control

and you'll get a zillion pages that tell you what to do. Here's one:

http://www.solarbotics.net/library/pieces/parts_mech_steppers.html (http://www.solarbotics.net/library/pieces/parts_mech_steppers.html)

- Jon
Title: Re: DIY Stepper Controller
Post by: Admin on February 04, 2008, 10:29:33 PM
Quote
does anyone know what type of MOSFET I should buy?
PWM optimized rail-to-rail MOSFET