The ECU for the Xiaomi was designed to fit in the gap between the
Xiaomi's controller and the head tube, inside the deck.
The ECU has connection points on three sides of its enclosure:
Indicators' outputs
To avoid possible damage to the cables from the battery cover, the LED
unit's connections are made on the bottom of the ECU, as shown bellow:
ECU's Top View
Top
Bottom
Battery input
Handlebar
Control input
Headlight and horn
outputs
Connector block