Input pin discussion #140
Replies: 3 comments 13 replies
-
Hi @phil-barrett , Sorry for my late reply, but yes, you‘re right, in GRBL it seems, that only the assigned pins could be used and the possibility to map them as desired are not very good. With my old machine, I had a look at the Software „EstlCAM“. It‘s based on the Arduino and has an other core GRBL, and so in the software it was possible to map the Pins to the function you want. Also it was possible to set two inputs for two different probe types. That was the reason, I asked for two different input pins for the probing. It would be a nice to have also different inputs for min and max endstops, but I really don‘t know if this would be necessary. I‘m interested how this discussion will go any further. |
Beta Was this translation helpful? Give feedback.
-
I just posted a comment over on #130 about limit switch inputs. I think 2 for each axis would be nice (min/max). Also, I mentioned somewhere else about the use of I/O expander chips to increase the number of GPIO pins using the I2C bus. There's lot's of those available. |
Beta Was this translation helpful? Give feedback.
-
Hello Phil, A thought on a new breakout board and input pins. I would love to see an input for $tpw (it'd be so nice just to push a button and the machine does the probing.) secondly - i have 4 closed loop drivers, which each has an alarm state (essentially then i crash my machine) - and they are currently all wired to e-stop, so everything stops when that happens. I thought about either having a separate alarm input for each driver - or having a general "motor fault" input. Best |
Beta Was this translation helpful? Give feedback.
-
I think this is a discussion topic until it gains a bit more form and becomes a feature request.
As I think about new breakout boards to design, I would really like to know how many inputs to plan for in order to reach the broadest possible user base.
@terjeio and @einencool have been talking about the door pin in issues.
I think this is an important discussion to have. I have been looking at professional controllers and a lot of them have a set of general inputs that can be configured how ever you want. Grbl went a different route and defined specific pins for specific functions. Perhaps it was short term thinking but that made it easy for the hobbyists to know how to hook it up. But the flexibility of having a bunch of input pins that can be assigned to any available function is very desirable. In some ways we are already there with the ability to specify pin assignments in a map file.
My question is what inputs are needed?
Currently, we have in the grbl/gnea fixed function way of thinking:
on my 5 axis board there are 10 inputs - 5 Axis limits plus door, estop, hold, start and probe
There is code for limit min and max pins and I believe a home pin per axis though I think that is mostly unused. In the Grbl world, I have only seen two designs out of hundreds that use min and max and none that have a separate home pin. What is the use case for Min and Max? I believe the drivers know which direction triggered a limit so the switches/sensors can share a single pin per axis. I saw the autosquaring case for a limit for each of the ganged motors but I still don't quite understand the need for a separate home input for the axis.
I have seen requests for multiple probe inputs.
Are there others?
In addition, there are quad encoder, spindle sync and other pins. Given that these may need to be reasonably high speed, they probably require different interface circuitry and careful assignment to processor pins.
Beta Was this translation helpful? Give feedback.
All reactions