mirror of
https://github.com/eddyem/stm32samples.git
synced 2025-12-06 02:35:23 +03:00
514 B
514 B
Quadrature encoder
GPIO
UART
115200N1, not more than 100ms between data bytes in command. To turn ON human terminal (without timeout) send "####".
Protocol
All commands are in brackets: [ command line ].
'[' clears earlier input; '\n', '\r', ' ', '\t' are ignored. All messages are asynchronous!
Commands
[D] - get rotation direction [R] - reset [T] - get encoder position
When you rotate encoder you will see speed of its rotation in quaters of pulses per 10ms.