ESTOP: uCNC "pin" vs. pin on Arduino board vs. pin on CNC Shield V.3 - a documentation question #708
-
(re-)Starting my µCNC+UGS journey, I immediately stumble over a documentation problem with the "ESTOP pin" - please bear with me, I'm very happy about µCNC, but it's a little bit hard going for me at the moment: The uCNC documents talk about "pins" - e.g. this important text starts with
Now, there is no Emergency stop or Safety door pin on the Arduino; so there must be a mapping of those "uCNC names" to Arduino pins. Ok, there is the HAL mapping page (I had to learn that HAL is hardware abstraction layer - newbie, sorry!), which starts with
Unfortunately, there is no boardmap_grbl.h file there - neither in the master nor the 1.7.2 I'm using. So, using a CNC V.3 Shield, I open the file boardmap_uno_shield_v3.h ... which #includes boardmap_uno.h. There, I finally find a definition for the virtual ESTOP pin:
and, somewhere below (which I had first overlooked)
In the UNO diagram for AVR Customizing, I now find a pin "Port pin" called PC0 (and now I understand those PORT values of D, C or B ...). So, µCNC's ESTOP is A0 on the Arduino. Now, where is this on the CNC Shield V.3? Unfortunately, in Protoneer's schematic for the V.3 CNC Shield, the connector name is totally unreadable for me. Hm. But there is another diagram around, e.g. here - and this one says that A0 goes to the "Abort" pin on the shield. So my question is: Is it correct to interpret µCNC's "Short the ESTOP pin to ground" as "Connect Abort on the CNC Shield V.3 to ground"? By the way, it is unfortunate that there is also an E-STOP pin (note the hyphen) on the CNC Shield V.3, which has nothing to do with µCNC's virtual ESTOP pin - it is connected to Arduino's RST pin; and must "of course" not be grounded - which I, again of course, did at first - and nothing worked any more :-P Thanks a lot for any help and enlightenment! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
About UNO pins. One thing is the Arduino pin names. The other is the chip pin name. The Arduino pin A0 is the chip pin C0. If you don't have control pins hardwired you can disable them all along, or disable them individually simply by undefining them. |
Beta Was this translation helpful? Give feedback.
About UNO pins. One thing is the Arduino pin names. The other is the chip pin name.
Take a look at the UNO pinout
The Arduino pin A0 is the chip pin C0.
This is because uCNC was originally designed to be compiled independently of Arduino framework.
If you don't have control pins hardwired you can disable them all along, or disable them individually simply by undefining them.