fra589 / grbl-Mega-5X

5/6 Axis version of Grbl, the open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/fra589/grbl-Mega-5X/wiki
Other
341 stars 159 forks source link

emergency button #347

Closed ariefadha closed 9 months ago

ariefadha commented 10 months ago

sorry for a silly question. Is there any recommendations for wiring emergency stop button?

Is reset pin and power supply cutoff is a good idea? or hold feed pins?

fra589 commented 10 months ago

Hi @ariefadha,

Yes, you are right! The reset pin (pin A9 by default in grbl-Mega-5X) is the normal way to connect an emergency stop button. In addition on my own machine, the button also cutoff steppers motors and spindle power. The Arduino board stay powered, so I can continue to send commands to query it.

@++; Gauthier

ariefadha commented 10 months ago

Hi @ariefadha,

Yes, you are right! The reset pin (pin A9 by default in grbl-Mega-5X) is the normal way to connect an emergency stop button. In addition on my own machine, the button also cutoff steppers motors and spindle power. The Arduino board stay powered, so I can continue to send commands to query it.

@++; Gauthier

thanks for confirming. there is some cons doing this setup. 1st we need extra long main power wire from back to front where emergency button placed. 2nd reset can't detect when wire is failure. unlike limit switch that can be logic-invert when wire is broken the limit will go high by resistor pullup inside atmega. but I guess this setup is the best that I can have

fra589 commented 10 months ago

Hi @ariefadha,

You can also use a relay to control the main power supply and thus there is no need of extra long main power wire from back to front...

@++; Gauthier.

ariefadha commented 9 months ago

Hi @ariefadha,

You can also use a relay to control the main power supply and thus there is no need of extra long main power wire from back to front...

@++; Gauthier.

yeah thats cross in my mind too, so main dc power can keep short. thanks mate 👍