Skip to content

Instantly share code, notes, and snippets.

@erinzm
Last active March 14, 2016 16:02
Show Gist options
  • Save erinzm/bbe079379cffd2214e35 to your computer and use it in GitHub Desktop.
Save erinzm/bbe079379cffd2214e35 to your computer and use it in GitHub Desktop.
fast serial protocol for motor control
transmit to control
+----------+----------------+--------------------------------------------+
| motor id | motor position | motor flags (braking, locking, reset, etc) |
| 8 bits | 64 bits | 8 bits |
+----------+----------------+--------------------------------------------+
| |
\______________________________ 80 bits _________________________________/
maybe a status _on query_ (query might be pulling a line high and sending a motor id)
+--------------------+------------------+-----------------+
| motor status flags | current position | target position |
| 8 bits | 64 bits | 64 bits |
+--------------------+------------------+-----------------+
| |
\________________________ 136 bits _______________________/
STEP and DIR pins could also be provided for GRBL compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment