Case study
LEGO SPIKE medium motor: reconstructing its UART handshake
An STM32U545RE project reconstructs the LEGO SPIKE medium motor's UART startup exchange from observations of the original hub. It reproduces the handshake and heartbeat so the motor sends speed, single-turn position and accumulated angle frames at 115200 baud.
- Targets
- Protocol
- Category
- Independent reconstruction cases
- Relationship
- Independent reconstruction project
- Sources reviewed
- Evidence class
- C2 code & docs, no demo or download
- Stars
- 3
- Last commit
- 2026-03-28
- Language
- C
- License (GitHub)
- MIT
GitHub data as of 2026-11-10
Evidence
- Observed
- Code, documentation and a demo observed; no download method found.
- Checked
- 2026-11-08
Requirements & limits
- Prerequisites: LEGO SPIKE or MINDSTORMS Robot Inventor medium motor and an STM32U545RE board.
- Prerequisites: Generate the STM32 HAL drivers from the included .ioc file with MyST.
- Limits: Speed and proportional position control loops remain future work.
- License: MIT license.
Cite
BibTeX
@misc{lego-spike-medium-motor-u545re-case,
title = {{LEGO SPIKE medium motor: reconstructing its UART handshake}},
howpublished = {\url{https://github.com/ufnalski/lego_spike_medium_motor_u545re}},
url = {https://github.com/ufnalski/lego_spike_medium_motor_u545re},
urldate = {2026-11-06},
note = {Awesome REA entry: \url{https://awesomerea.org/resources/lego-spike-medium-motor-u545re-case/}}
}Plain text
LEGO SPIKE medium motor: reconstructing its UART handshake. https://github.com/ufnalski/lego_spike_medium_motor_u545re (accessed 2026-11-06). Awesome REA entry: https://awesomerea.org/resources/lego-spike-medium-motor-u545re-case/
Useful? Star Awesome REA on GitHub2.4k
About this entry
The description was reviewed against primary sources.
Primary sources
- README.md GitHub · ufnalski/lego_spike_medium_motor_u545re · Revision b4daeac
More in Protocols
- BLE Blood Pressure Monitor: analysing BC54 measurement packets · Case study
- LD2410S: investigating radar buses and firmware · Case study
- MiniToo Pixeldeck: Divoom display protocol and input research · Case study
- fnb58-ble-logger: FNB58 Bluetooth measurement protocol · Case study
- KBM TG700 Control: Linux keyboard settings from USB protocol analysis · Case study
- ssmouse: a client for the Rival 3 Wireless HID protocol · Case study