Welcome! Log In Create A New Profile

Advanced

Cannot reverse direction with 2M542 Driver

Posted by jaumebel 
Cannot reverse direction with 2M542 Driver
December 30, 2016 05:06AM
I'm building very large 3DPrinter (600x600x600) with Arduino Mega and 2M542 Drivers combined , with two motors NEMA 17 on X axis, two on Y, and 4 motors on Z axis.

Everything is going right but only in one direction, drivers doesn't change direction of steppers.

I've tryed some drivers 2n542, swap x, y and z positions, check wirings and the problem still persists.

Arduino works perfectly if I replace 2M542 Drivers by Pololus, that runs in both directions, on X and Y axis, obviously I will need more power on Z axis to run 4 motors.

Conections:

Driver Comes from:

Dir + -> 5V
Dir - -> Signal pin "DIR" from Ramps 1.4 for each axis
Step + -> 5V
Step - -> Signal pin "STEP" from Ramps 1.4for each axis
Enable+ -> Not Connected
Enable- -> Not Connected

Ground ->Ground
VCC -> 36 V 10 A
A+ -> Black
A- -> Green
B+ -> Red
B- -> Blue

I cannot find any information about this, nor on the manual of the driver 2m542, and I have no idea what to check.

Any suggestion please?
Re: Cannot reverse direction with 2M542 Driver
December 30, 2016 07:20AM
Try manually toggling the direction input on the driver. Tie it to 5V and send some pulses to the motors, then ground the direction input and try sending some pulses to move the motors. If it works, the problem isn't the driver.


Ultra MegaMax Dominator 3D printer: [drmrehorst.blogspot.com]
Re: Cannot reverse direction with 2M542 Driver
December 30, 2016 07:36AM
surely you need the enables connected or it will randomly change... (perhaps picking up the direction line)
Re: Cannot reverse direction with 2M542 Driver
December 30, 2016 03:37PM
Quote
Dust
surely you need the enables connected or it will randomly change... (perhaps picking up the direction line)

Wow! I didn't notice that. Why would anyone leave the enable lines open?


Ultra MegaMax Dominator 3D printer: [drmrehorst.blogspot.com]
Re: Cannot reverse direction with 2M542 Driver
December 31, 2016 03:11AM
Maybe you have a pullup resistor on DIR output?
It might be wrong that DIR+ pin is fixed on 5V.
I'd try to put DIR from Arduino to DIR+ and put DIR- to GND.
Re: Cannot reverse direction with 2M542 Driver
January 02, 2017 01:40PM
Yes. it's solved. It was a bad wiring.

Dir - / Step - / Ena - Are common Ground.

Dir + / Step + / Ena + Receive signals form arduino.

Everything is going right.

Thank you for your responses.

Jaume Bel
Sorry, only registered users may post in this forum.

Click here to login