Author Topic: Stepper driver connections  (Read 9498 times)

Offline raynerd

  • Madmodder Committee
  • Hero Member
  • *****
  • Posts: 2893
  • Country: gb
    • Raynerds Projects - Raynerd.co.uk
Stepper driver connections
« on: October 13, 2013, 03:33:38 AM »
Hi guys, hoping someone can help.

I'm running a stepper motor on an expensive driver from an arduino by connected a pulse line to the step input and a direction line to the dir input and tying the common to the arduino ground- simples and it works!!  Rather than waste an expensive 4.2a driver to run a 1a none essential project, I purchased a cheaper tb6560 driver without looking properly!!

http://forum.hobbycomponents.com/viewtopic.php?f=39&t=1371#p2687

The input lines I believe are based on a pc breakout! I can't get my head around it... The inputs are
Cw+
Cw-
CLK+
CLK -
En+
En-

I'm not sure how to connect it despite some form of an example in the link above! I just have two wires, dir and pulse...where do I stick um' ??  :doh:

Any help appreciated!

Offline awemawson

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8967
  • Country: gb
  • East Sussex, UK
Re: Stepper driver connections
« Reply #1 on: October 13, 2013, 04:04:05 AM »
Presumably CLK is the 'Step', 'CW' is Clockwise so direction, and 'EN' is enable. But why a + and a - version of each? I doubt that they are balanced signals so >>maybe<< the - versions are the common rail ie ground. Alternatively they could all be opto-isolated and the + - refer to the anode and cathode of the input LED of the isolator?

I would carefully trace the signals back from the green connector block - I bet they go to the ics next to it. Google the chip, download the data sheet, identify the pin they go to and you'll have your answer  :thumbup:

Andrew Mawson
East Sussex

Offline John Rudd

  • Hero Member
  • *****
  • Posts: 2525
  • Country: gb
Re: Stepper driver connections
« Reply #2 on: October 13, 2013, 04:18:44 AM »
Chris,
 If you look at the example, the -ve connections are all communed up........
This gives Step, Direction and Enable as the three inputs with a common shared with them giving four wires in total....
As you only have step and direction, the enable needs pulling high, so connect to a 5v supply via 10k resistor (you could wire it via a switch to stop the stepper)
eccentric millionaire financed by 'er indoors
Location:  Backworth Newcastle

Skype: chippiejnr

Offline Bluechip

  • Madmodder Committee
  • Hero Member
  • *****
  • Posts: 1513
  • Country: england
  • Derbyshire UK
Re: Stepper driver connections
« Reply #3 on: October 13, 2013, 04:19:24 AM »
There are opto-couplers on pic2, bottom right. Little black dogsnobbers above the red DIL-switches.
 
One, the DIL-6, is a 4n35 ...  :thumbup:
 
http://www.farnell.com/datasheets/1693303.pdf
 
The DIL-4 below it is almost certainly another, can't read what type it is .
 
Dave BC
 
 
I have a few modest talents. Knowing what I'm doing isn't one of them.

Offline raynerd

  • Madmodder Committee
  • Hero Member
  • *****
  • Posts: 2893
  • Country: gb
    • Raynerds Projects - Raynerd.co.uk
Re: Stepper driver connections
« Reply #4 on: October 13, 2013, 04:36:24 AM »
Cheers guys!!!

So just to clarify:

CLK to my step pulse line
CK to my dir line
En+ to +5v from arduino

All the three opposite -ve pins join to a common ground between arduino grd and 12v motor supply gnd.

May as well double check before I make it go pop!

Thanks again.  :mmr:

Offline John Rudd

  • Hero Member
  • *****
  • Posts: 2525
  • Country: gb
Re: Stepper driver connections
« Reply #5 on: October 13, 2013, 04:38:45 AM »
Chris,
Yes that is correct.....Don't let the magic smoke out.... :zap:
eccentric millionaire financed by 'er indoors
Location:  Backworth Newcastle

Skype: chippiejnr

Offline awemawson

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8967
  • Country: gb
  • East Sussex, UK
Re: Stepper driver connections
« Reply #6 on: October 13, 2013, 05:40:52 AM »
You're welcome - let us know how you get on.  :zap:
Andrew Mawson
East Sussex

Offline Noitoen

  • Full Member
  • ***
  • Posts: 143
  • Country: pt
Re: Stepper driver connections
« Reply #7 on: October 18, 2013, 03:35:37 PM »
Those +/- signals are differential signals more immune to noise. You can use ttl to rs485 converters to adapt the signal such as http://www.ti.com/lit/ds/slls101d/slls101d.pdf This is a transceiver chip and you can use the transmit side to convert the single line to double. There are more chips for this in the market. Industrial encoders use the same system.

Hope this helps  :beer:

Offline Dawai

  • Full Member
  • ***
  • Posts: 124
  • Country: us
Re: Stepper driver connections
« Reply #8 on: December 25, 2013, 09:58:58 AM »
Very neat, you do understand "THOSE connections are for the polarity" of the signal you are supplying? probably opto isolated LED-transistor inside it, so you can use a positive signal and a negative on the other side, or a positive pwr and a negative (sinking) Signal on the other side. Think of a opto-diode as a one way switch, power flows through in one direction only, and "if you have a negative (sinking) signal, or a Positive (sourcing signal) it will work with either by routing the proper "other pwr" to the other terminal.

I want one too.. my problems.. well.. the arduino "reprap" code I downloaded has a 1ms signal length, a "geckodrive" from www.geckodrive.com has a desire for a 6ms signal.. so.. I was going to go in and alter the wavelength in the arduino code.. but the new "look ahead software" is so complicated I need a school sized chalkboard to keep track of what goes where,when and how.

I want to see this project work, as I am hard on your heels with one of my own.
I ran the 3d printer drives (geckos from my cnc mill) with the 2amp motors in Mach3 just the other day (pc based).. I have had more trouble with the WINDOWS on the cnc than the cnc.. even with the dog pulling cables out the side.. (+300 wires going to shop automation)

THIS arduino has been a new interesting journey for me.  It kicks the basic stamps butt that turned me off on micro-controllers for sure.

I do not mind sharing anything I have figured out.
I Hung a 24 foot Ibeam this morning in the ceiling by myself, programmed a Arduino this afternoon for a solar project, Helped a buddy out with a electrical motor connection issue on the phone, then cut up a chicken for Hotwings. I'd say it has been a "blessed day" for myself and all those around me.