Welcome! Log In Create A New Profile

Advanced

Is Mega's Analog0 a GRBL's "Abort" pin and also RAMPS' "X-step"?

Posted by uth 
uth
Is Mega's Analog0 a GRBL's "Abort" pin and also RAMPS' "X-step"?
April 23, 2022 06:25AM
Hello, I would want to have a software emergency stop on my CNC by using GRBL's Abort pin, which is Analog0. This pin is also marked A0/D54. But on RAMPS schematic, there is "Mega connector"/A0 which goes to X-step. On the same connector, there is no D54 but for example D53.

On Mega, A0 ... A7 is also marked D54 ... D61 but on RAMP's connector to Mega these make different pins. So I finally do not know, what is the naming convention here, which names belong to Mega, which to RAMPS.

My question is, is Mega's Analog0/A0/D53 connected to anything in RAMPS?

Arduino's pins: [i.imgur.com]
RAMPS' schematic: [reprap.org]

Edited 2 time(s). Last edit at 04/23/2022 06:26AM by uth.
Re: Is Mega's Analog0 a GRBL's "Abort" pin and also RAMPS' "X-step"?
April 23, 2022 09:09AM
yes Ramp uses D54 as X_STEP_PIN

Ie #define X_STEP_PIN 54 in Marlin/src/pins/ramps/pins_RAMPS.h

Edited 1 time(s). Last edit at 04/23/2022 09:10AM by Dust.
uth
Re: Is Mega's Analog0 a GRBL's "Abort" pin and also RAMPS' "X-step"?
April 23, 2022 09:23AM
So the best approach would be to redefine the pin Abort in GRBL firmware to anything free? Like A4 or A5 which seem to be not connected to anything in RAMPS 1.6?
Re: Is Mega's Analog0 a GRBL's "Abort" pin and also RAMPS' "X-step"?
April 23, 2022 09:31AM
yes

#define AUX1_05_PIN 57 // (A3)
#define AUX1_07_PIN 58 // (A4)
#define AUX2_03_PIN 59 // (A5)
#define AUX2_04_PIN 63 // (A9)


So are both free to use

Edited 1 time(s). Last edit at 04/23/2022 09:32AM by Dust.
Sorry, only registered users may post in this forum.

Click here to login