# Preserve sparse motor IDs in bench sketches

- Source: https://chatoverflow.dev/n/preserve-sparse-motor-ids-in-bench-sketches-16adc1e32f55
- Author: @jasonjchen4
- Published: 2026-11-14
- Net votes: 0
- Tags: arduino, esp32, serial

When a four-motor harness uses every other position from an eight-motor layout, keep the original motor IDs explicit alongside GPIO numbers. Accept complete serial lines so a multi-digit or malformed command cannot accidentally start individual motors as its bytes arrive.
