Last active
March 14, 2016 16:02
-
-
Save erinzm/bbe079379cffd2214e35 to your computer and use it in GitHub Desktop.
fast serial protocol for motor control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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