Optional Inputs and outputs #109
Replies: 3 comments
-
Extra LEDs are very easy to add via the I2C header. I have one design that brings out 8 LEDs + 8 GPIOs (LEDs + resistors) via an I2C daughter card. The LEDs can physically be anywhere (well, within say 2 M of wire). Then M6[2-5] commands could be used to turn the lights on or off (would need a bit of SW work). It is shown below. Works well with the hardware. There are power limitations to this approach so it needs an external power source if more than 8 LEDs would be on simultaneously or something like 12V is needed for an illuminated switch. Easy enough to do. Food for thought. |
Beta Was this translation helpful? Give feedback.
-
A check box is IMO more appropriate, like Flood and Mist. Not very difficult and Block delete should be added to the same control. I have been thinking about adding this for a long time (since I added Block delete support to the grblHAL core).
Yes, but that should be done on the controller side with a plugin. A plugin can subscribe to events in the core and control LEDs (or other outputs) from those. This should done by claiming ioport pins and calling functions via the HAL API to set/clear them. There is no need to use M-codes for that. BTW the M6[2-5] commands uses the very same same API... Writing such a plugin could be used as a case study for how add functionality to grblHAL? I would like somebody else than me (you?) to write such a plugin. I can provide help - it is not going to be much code. Nice if it could end up as a blog post for Phil? |
Beta Was this translation helpful? Give feedback.
-
FYI all optional control signals can now be bound to aux inputs with compile time options. I will add a config page to the Web Builder later. |
Beta Was this translation helpful? Give feedback.
-
Loving the grblhal and iosender. How difficult would it be to add the “$S” command single step/block mode as an input for physical button. I assume would correlate with the start & feedhold chain.
Also, is it possible to send status signals to an output on the breakout board? I am using Phil’s teenage 4.1 breakout board with a few available outputs. Would be nice to send signal to an LED either on the button or a light tree for status such as running/paused (feed hold)/ single block on, etc.
Beta Was this translation helpful? Give feedback.
All reactions