Welcome! Log In Create A New Profile

Advanced

How to reverse stepper in Firmware ?? Please help

Posted by charlied43 
How to reverse stepper in Firmware ?? Please help
February 25, 2015 03:06AM
After building my entire Prusa in one day I realized that the Y stepper is installed the wrong way around,

Although all the mechanics and electronics work like they should the motor is going the wrong way when searching for the back (Y home) kill switch

Please help me to reverse the motor in the firmware because some of the acrylic was chipped during hte build and I hvae used hot glue to secure some rods which would be a disaster to remove now

Help would be much appreciated !
Re: How to reverse stepper in Firmware ?? Please help
February 25, 2015 07:51AM
You can do it in configuration.h:

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders

or just rotate your connector for the y-motor on your ramps 180 degrees.

Edited 1 time(s). Last edit at 02/25/2015 01:33PM by gforce1.
Re: How to reverse stepper in Firmware ?? Please help
March 02, 2015 12:48PM
Io ho un problema più grave: In fase di prova utilizzo un LCD full smart controller e mediante l'encoder faccio girare gli stepper avanti e indietro; purtroppo il motore dell'asse Y gira sempre in sola direzione, anche se faccio ruotare la manopola dell'encoder in senso orario e antiorario. Il FW installato è Marlin V1 nella scheda Ramps 1.3
Re: How to reverse stepper in Firmware ?? Please help
March 03, 2015 11:00AM
#define Y_ENABLE_ON turns the stepper on and off .
To change the direction change #define INVERT_Y_DIR between true and false
However be aware that the direction is the direction the head moves relative to the bed, not the direction the bed moves.
If it homes in the wrong direction change #define Y_HOME_DIR 1 or -1
Sorry, only registered users may post in this forum.

Click here to login