I’ve got buttons hooked up to hold/start/reset but I’ve got an extra button. I notice that you’ve made it easy to re-assign pins that aren’t being used. Thoughts on the best/easiest way to make a button feed the y-axis +1cm each time it’s pressed (or something like that)?
Thanks!
评论 (4)
#2 – MRedmon 于 2018-09-23
Ah. Thank you for your input. That’s probably a bit beyond me
One other quick question about buttons… you note that pull up resistors are required for the reset/hold/start buttons. Is that accurate? I only ask because there are a couple resistors already in place for each one and the there appears to be no similar requirement for the limit switch inputs. The 5v supply for the sd card appears to have been fixed since some of your instructions were written so I didn’t know if the pull up resistors also were added…
Thanks!
#3 – bdring 于 2018-09-23
If you have my board, the pull up resistors are in place. That note is more for people use Grbl_ESP32 without my hardware.
#4 – MRedmon 于 2018-09-23
Awesome!
#1 – bdring 于 2018-09-22
I think that could be done. It is not something I would want to do to the master code. though. If you want to try it yourself, here is where I would start…
There are several “clients” that are allowed send commands to the system. These are things like the serial port, Bluetooth, SD card, etc. I would add another client for buttons.
Look at protocol.cpp around line 100 to see what is going on.
A good command to move like that is a jog command like $J=G91 G21 F100 Y10. Jogs will only work in Jog and Idle mode, which is probably a good thing for your implementation.