Home/Hardware/GX5s/Expansion
Expansion

Harness and expansion

Power, ignition sense, an interrupt line, CAN, UART and I2C on a Molex Micro-Fit harness, for your own sensors and devices.

The 2x6 Micro-Fit harness connector, with the signal groups it brings out: power and ignition sense, interrupt, CAN, UART and I2C Molex Micro-Fit 3.0 · 2x6 9–36 V + ignition CAN 2.0B Interrupt / wake UART ⇄ MQTT I2C bus

The GX5s brings its external signals out on a Molex 2x6 Micro-Fit 3.0 connector, so you can wire in your own sensors and devices.

Signals on the harness

  • Power: 9–36 V input, and a 5 V rail.
  • Voltage detection: ignition (ACC) sense.
  • Interrupt: an MCU interrupt / wake input (3.3 V).
  • CAN 2.0B: CAN-High and CAN-Low. See CAN bus.
  • UART: RX and TX (3.3 V).
  • I2C: shared with the on-board bus.

The pin-by-pin table is in the board specification in the gx5s repository.

External UART

  • Line based and device-agnostic, 9600 baud by default.
  • Every line received is published over MQTT to device/<id>/<location>/ext.
  • The command {"ext":"text"} sends a line out.
  • The line gx5 ping is answered with gx5 pong <id>, so you can check the wiring without a broker.

External I2C

The harness I2C pins are the board's own I2C bus. At power-on the firmware scans the bus and logs every address that answers. There are no drivers for particular external sensors yet: the firmware is open source, so you can add your own.

Source: firmware decisions (ADR 0001) in the gx5s repository.