I am using Ramps 1.4
X lower endstop pin is 3
Y lower endstop pin is 14
Z lower endstop pin is 18
I should use those values for
ROUTER_DOWN_LIMIT_SWITCH_X_INTERRUPT,ROUTER_DOWN_LIMIT_SWITCH_Y_INTERRUPT,ROUTER_DOWN_LIMIT_SWITCH_Z_INTERRUPT
?
The firmware calls getPinFromInterrupt function and maps the interrupts to
the pins in arduino. so I guess I can't use those values.
Ramps 1.4 easyCNC 0.2
Thanks,
Meir
--
"Errare humanum est, calculis ratio erroris mathematicus est "
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Meir,
to use the limit switch, you have to specify which interrupt is associate to the pin, for instance you can use the pin 3 because it is attached to the interrupt 1, so you have to add the below line into the config.h:
ROUTER_DOWN_LIMIT_SWITCH_X_INTERRUPT 1
Also the pin 18 is available because it is attached to the interrupt 5, so you have to add the line:
ROUTER_DOWN_LIMIT_SWITCH_Z_INTERRUPT 5
But the pin 14 has not any interrupt.
The limit switch are managed only with the interrupts, it means that you have to change the pin 14.
These are the pin available on arduino mega 2560:
- External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2).
I suggest you to use the pin 19 that is available in the endstop connections of RAMPS1.4, see here.
In my machine, I just used 3, 18, 19.
Bye
Francesco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using Ramps 1.4
X lower endstop pin is 3
Y lower endstop pin is 14
Z lower endstop pin is 18
I should use those values for
ROUTER_DOWN_LIMIT_SWITCH_X_INTERRUPT,ROUTER_DOWN_LIMIT_SWITCH_Y_INTERRUPT,ROUTER_DOWN_LIMIT_SWITCH_Z_INTERRUPT
?
The firmware calls getPinFromInterrupt function and maps the interrupts to
the pins in arduino. so I guess I can't use those values.
Ramps 1.4 easyCNC 0.2
Thanks,
Meir
--
"Errare humanum est, calculis ratio erroris mathematicus est "
Hi Meir,
to use the limit switch, you have to specify which interrupt is associate to the pin, for instance you can use the pin 3 because it is attached to the interrupt 1, so you have to add the below line into the config.h:
ROUTER_DOWN_LIMIT_SWITCH_X_INTERRUPT 1
Also the pin 18 is available because it is attached to the interrupt 5, so you have to add the line:
ROUTER_DOWN_LIMIT_SWITCH_Z_INTERRUPT 5
But the pin 14 has not any interrupt.
The limit switch are managed only with the interrupts, it means that you have to change the pin 14.
These are the pin available on arduino mega 2560:
- External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2).
I suggest you to use the pin 19 that is available in the endstop connections of RAMPS1.4, see here.
In my machine, I just used 3, 18, 19.
Bye
Francesco