M5Stack puts UART module discovery on the Chain Captain’s display

Image: King of Pwnt · CC0 1.0
M5Stack’s Chain Captain is a programmable controller that detects modules attached to its Chain port and lists them on a 240 × 240 display. The display lets a developer check which nodes the controller has found before running the application that reads the sensors or drives the indicators.
Each module has an input and output connector and forwards packets to the next node. The controller therefore uses a single UART to reach multiple peripherals rather than assigning a separate port to each. M5Stack’s Arduino examples initialise the chain at 115,200 baud, discover the nodes and then use commands addressed to individual modules. One application could read a sensor at one point in the chain and change an indicator at another using that same serial link.
An ESP32-S3R8 with 16 MB of flash runs the board. The BMI270 inertial sensor, microphone, speaker and infrared interface sit alongside two Grove ports and a 15-pin expansion header, which can connect hardware outside the Chain range. On its 800 mAh battery, the controller can power down the display separately from other peripherals and use the real-time clock or an external input to wake from deep sleep. The company lists the controller in its online store and publishes hardware and programming documentation.
An ESP32 development board and OLED display on a breadboard beside a USB power meter.



