# 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.

- Type: Case study
- Targets: Protocol
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-08
- Original resource: <https://github.com/ufnalski/lego_spike_medium_motor_u545re>
- Primary source: <https://github.com/ufnalski/lego_spike_medium_motor_u545re/blob/b4daeacab40338e666315c0c0eef269e455a6fd2/README.md>
- Catalog page: <https://awesomerea.org/resources/lego-spike-medium-motor-u545re-case/>
- Record JSON: <https://awesomerea.org/resources/lego-spike-medium-motor-u545re-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/lego-spike-medium-motor-u545re-case/index.md)

## 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.

## Primary sources

1. <https://github.com/ufnalski/lego_spike_medium_motor_u545re/blob/b4daeacab40338e666315c0c0eef269e455a6fd2/README.md>

## More in Protocols

- [BLE Blood Pressure Monitor: analysing BC54 measurement packets](https://awesomerea.org/resources/ble-blood-pressure-bc54-case/index.md) · Case study
- [LD2410S: investigating radar buses and firmware](https://awesomerea.org/resources/ld2410s-reverse-engineering-case/index.md) · Case study
- [MiniToo Pixeldeck: Divoom display protocol and input research](https://awesomerea.org/resources/minitoo-pixeldeck-case/index.md) · Case study
- [fnb58-ble-logger: FNB58 Bluetooth measurement protocol](https://awesomerea.org/resources/fnb58-ble-logger-case/index.md) · Case study
- [KBM TG700 Control: Linux keyboard settings from USB protocol analysis](https://awesomerea.org/resources/kbm-tg700-control-case/index.md) · Case study
- [ssmouse: a client for the Rival 3 Wireless HID protocol](https://awesomerea.org/resources/ssmouse-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
