Author Topic: Trying to make myself a simple stepper driver.  (Read 4080 times)

0 Members and 1 Guest are viewing this topic.

Offline RefrigeratorTopic starter

  • Super Contributor
  • ***
  • Posts: 1542
  • Country: lt
Trying to make myself a simple stepper driver.
« on: December 03, 2014, 09:30:11 pm »
Hi.
So i had a couple stepper motors laying around. I got them from a couple printers and i wanted to make a little discrete transistor stepper driver so i could hook my µcontroller to play around.
I tried doing something on LTspice but couldn't get it to work ( it did do something though ).
The motor i'm playing around with right now has four wires coming out of it but there is no common wire, it has a sticker on the side saying 7.5 deg/step and 7.0 ohms. I measured the wires and it seems like it does indeed have two coils with 7 ohms of resistance.
I want to make a simple circuit with about 3 transistors driving each wire, i want the wire be grounded unless there is about 3-5V on the input side of the driver transistor array/thing.
As i said i did try doing it on LTspice but i didn't get anything worth showing ( transistors dissipating terawatts, yeah... :-BROKE ).
I'd appreciate some if any help.  :)
I have a blog at http://brimmingideas.blogspot.com/ . Now less empty than ever before !
An expert of making MOSFETs explode.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: Trying to make myself a simple stepper driver.
« Reply #1 on: December 03, 2014, 09:58:33 pm »
4 wires => bipolar stepper
what you need is 2 H bridges to drive it.
 

Offline jlmoon

  • Supporter
  • ****
  • Posts: 609
  • Country: us
  • If you fail the first time, keep trying!
Re: Trying to make myself a simple stepper driver.
« Reply #2 on: December 03, 2014, 10:24:27 pm »
How about a STMicro L298 Hbridge in a chip.  They work great!


One of many examples on the web. 
http://www.pyroelectro.com/tutorials/l298_stepper/

Recharged Volt-Nut
 

Offline Kappes Buur

  • Regular Contributor
  • *
  • Posts: 137
  • Country: ca
Re: Trying to make myself a simple stepper driver.
« Reply #3 on: December 04, 2014, 07:38:54 am »
You could use something like this:
http://www.dipmicro.com/store/L298N-MOD

They are easily reverse-engineered, if need be.

Or also:
http://yourduino.com/sunshop2/index.php?l=product_detail&p=127

« Last Edit: December 04, 2014, 07:45:35 am by Kappes Buur »
 

Offline bance

  • Contributor
  • Posts: 32
  • Country: gb
Re: Trying to make myself a simple stepper driver.
« Reply #4 on: December 04, 2014, 09:12:44 am »
You could also try Roman Blacks Linnistepper[ it's open source!

http://www.piclist.com/techref/io/stepper/linistep/index.htm
 

Offline RefrigeratorTopic starter

  • Super Contributor
  • ***
  • Posts: 1542
  • Country: lt
Re: Trying to make myself a simple stepper driver.
« Reply #5 on: December 04, 2014, 02:45:47 pm »
Can I just remind people. The OP asked " i wanted to make a little discrete transistor stepper driver".

This Talking Electronics project might give you some ideas. http://www.talkingelectronics.com/projects/Stepper%20Motor%20Controller/StepperMotor.html
This Silicon Chip magazine 5/2002 project may also give you some more ideas. http://archive.siliconchip.com.au/cms/A_30593/article.html
This site seems to have adapted the above SC circuit and privides some explanation about building it if the schematic above is not enough.
I found this website has a number of kits and the site also links some magazine articles. http://www.ozitronics.com/motor.html
http://www.ozitronics.com/docs/k166_article.zip
Thanks.
As rob77 mentioned this is a bipolar stepper motor and it does not have a common wire. It would be much easier if it had a common wire, yet it doesn't so i'm kinda stuck with them right now.
I did succeed at improving my driver thingy design ( only 10 mega watts of heat to dissipate!  :palm: ).
I will order some of those super cheap stepper/driver board combos from eBay, those steppers have a common wire and the driver chip is nothing but a darlington array, they should be easy to set up.
« Last Edit: December 04, 2014, 02:48:14 pm by Refrigerator »
I have a blog at http://brimmingideas.blogspot.com/ . Now less empty than ever before !
An expert of making MOSFETs explode.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: Trying to make myself a simple stepper driver.
« Reply #6 on: December 04, 2014, 07:13:39 pm »
Can I just remind people. The OP asked " i wanted to make a little discrete transistor stepper driver".

This Talking Electronics project might give you some ideas. http://www.talkingelectronics.com/projects/Stepper%20Motor%20Controller/StepperMotor.html
This Silicon Chip magazine 5/2002 project may also give you some more ideas. http://archive.siliconchip.com.au/cms/A_30593/article.html
This site seems to have adapted the above SC circuit and privides some explanation about building it if the schematic above is not enough.
I found this website has a number of kits and the site also links some magazine articles. http://www.ozitronics.com/motor.html
http://www.ozitronics.com/docs/k166_article.zip
Thanks.
As rob77 mentioned this is a bipolar stepper motor and it does not have a common wire. It would be much easier if it had a common wire, yet it doesn't so i'm kinda stuck with them right now.
I did succeed at improving my driver thingy design ( only 10 mega watts of heat to dissipate!  :palm: ).
I will order some of those super cheap stepper/driver board combos from eBay, those steppers have a common wire and the driver chip is nothing but a darlington array, they should be easy to set up.

the darlington array drivers are usable only for unipolar steppers, you really need the two full H bridges for the bipolar motor (like the L298 is) or build yourself one (but it's a lot of components)
 

Offline jlmoon

  • Supporter
  • ****
  • Posts: 609
  • Country: us
  • If you fail the first time, keep trying!
Re: Trying to make myself a simple stepper driver.
« Reply #7 on: December 04, 2014, 08:03:36 pm »


the darlington array drivers are usable only for unipolar steppers, you really need the two full H bridges for the bipolar motor (like the L298 is) or build yourself one (but it's a lot of components)
[/quote]


That's what I was thinking.. lots of parts and more parts...
Recharged Volt-Nut
 

Offline RefrigeratorTopic starter

  • Super Contributor
  • ***
  • Posts: 1542
  • Country: lt
Re: Trying to make myself a simple stepper driver.
« Reply #8 on: December 04, 2014, 08:13:30 pm »
What i'm making is a H-bridge circuit that would have the wire grounded unless it receives a signal from the µcontroller, i got it to work but i can't get it to ground the wire.
I have a blog at http://brimmingideas.blogspot.com/ . Now less empty than ever before !
An expert of making MOSFETs explode.
 

Offline rob77

  • Super Contributor
  • ***
  • Posts: 2085
  • Country: sk
Re: Trying to make myself a simple stepper driver.
« Reply #9 on: December 04, 2014, 08:49:16 pm »
What i'm making is a H-bridge circuit that would have the wire grounded unless it receives a signal from the µcontroller, i got it to work but i can't get it to ground the wire.

what you mean by wire grounded ? a H bridge is a H bridge - it's needed to change the direction of the current through the coil. actually a bipolar stepper is making the steps by changing the direction of the current in the coils (unlike the unipolar - which is simply progressively turning on and off the current in the coils - and therefore you can drive it with a set of Darlington low side switches.).
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: Trying to make myself a simple stepper driver.
« Reply #10 on: December 04, 2014, 09:45:43 pm »
What i'm making is a H-bridge circuit that would have the wire grounded unless it receives a signal from the µcontroller, i got it to work but i can't get it to ground the wire.

So you have 4 wires coming out of the motor.  i.e. each end of two separate windings.
If you are saying that you will ground ALL FOUR  motor leads until you need to connect one to power, then that is essentially the definition of a pair of H-bridges.
If you think that you can hard-wire ANY of the four motor leads to ground, then you are mistaken.
Because it has only four wires, you MUST be able to connect ANY of them independently to either power or ground.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf