harvard-microrobotics / dpss

All of the important code for the Custom DPSS laser
MIT License
0 stars 0 forks source link

Enable jogging a specific amount (similar to GCODE command G0) #4

Open cbteeple opened 3 years ago

cbteeple commented 3 years ago

In order to enable cuts of parts larger than the galvo's field of view, we can cut in quadrants. this requires precise motions in x and y.

Options:

  1. Enable a GCODE-style interface where you can send commands via serial to move specific distances in X and Y.
  2. Add a "Jog distance" mode where user sets the jog distance and jog buttons are used to move there.
cbteeple commented 3 years ago

It turns out interpreting serial commands from the computer is very annoying since things must be read one character at a time, and strings can only be 6 characters long.

cbteeple commented 3 years ago

Gcode-style interface is not feasible

This may not be possible to do easily. The control board can only communicate through an auxiliary serial port, so we'd have to write a program on the computer side to send commands. Not worth it.

Possible new solution

We could do a "jog-snapping-mode" using a physical toggle switch on the box (there's one extra) and the jog buttons. The switch could be used to toggle between continuous jogging (normal mode) and "snapping mode" where jogging rounds to the nearest whole millimeter (or something like that).