Welcome! Log In Create A New Profile

Advanced

Sprinter - switching double axis motors

Posted by Arnold 
Sprinter - switching double axis motors
September 22, 2014 01:28AM
Hello everyone,
does anyone know how to change this in Sprinter ? I am playing with a little cnc and woud like to use different setup for axis. I need use double motors on Y not Z.

My reprap axis motors now:
X - 1
Y - 1
Z - 2
E - 1

I need:
X- 1
Y- 2
Z- 1
E- x

Edited 1 time(s). Last edit at 09/22/2014 01:29AM by Arnold.
Re: Sprinter - switching double axis motors
September 22, 2014 06:21AM
Sprinter isn't exactly a good choice for CNC. It doesn't even support a standards compliant G0. GRBL and Teacup are much better.

All these double-motor Z axes aren't wired in software, but in hardware. One can run two steppers with a single stepper driver by connecting them in parallel or in series.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Sprinter - switching double axis motors
September 22, 2014 06:49AM
or you could just edit pins.h and swap the Y and Z axis over in firmware
Re: Sprinter - switching double axis motors
September 22, 2014 07:44AM
Hmm, I think the easiest way is maybe swap it directly in G-code, I just swap Y Z, I can then use Z like Y with two motors.

pins.h is good idea, Ill look at it too. Is there any line for easy swap or it needs large edit ?
Re: Sprinter - switching double axis motors
September 24, 2014 05:00AM
6 line to find

step, direction and enable for Z and swap the numbers with those for Y. has to be in the correct board section for your hardware ramps, so type 33

so Line 455 onwards [github.com]
Re: Sprinter - switching double axis motors
October 13, 2014 04:59PM
Hi again,
so is it possible just connect 2 motors on one cabel and run them with one stepper without problem ? I looked at pins.h and there such a mess for me so I dont know what to change.
Re: Sprinter - switching double axis motors
October 13, 2014 05:19PM
Yes, theres nothing to stop you wiring two steppers on one connector.

Or, the mod you need to make in pins.h is pretty simple:
#define Y_STEP_PIN 60
#define Y_DIR_PIN 61
#define Y_ENABLE_PIN 56
#define Y_MIN_PIN 14
#define Y_MAX_PIN -1 //15
#define Z_STEP_PIN 46
#define Z_DIR_PIN 48
#define Z_ENABLE_PIN 62
#define Z_MIN_PIN 18
#define Z_MAX_PIN -1 //19
should become
#define Y_STEP_PIN 46
#define Y_DIR_PIN 48
#define Y_ENABLE_PIN 62
#define Y_MIN_PIN 14
#define Y_MAX_PIN -1 //15
#define Z_STEP_PIN 60
#define Z_DIR_PIN 61
#define Z_ENABLE_PIN 56
#define Z_MIN_PIN 18
#define Z_MAX_PIN -1 //19
Re: Sprinter - switching double axis motors
October 13, 2014 05:47PM
Thank you Andrew for quick replay, I was confused by huge list in pins.h so I missed the Ramps section. I will test it tomorrow. thanks again
Sorry, only registered users may post in this forum.

Click here to login