LSM6DSOX 6-Axis IMU (U1)¶
Overview¶
U1 is an ST LSM6DSOXTR (LCSC C481766) — a 6-axis MEMS inertial measurement unit combining a 3-axis accelerometer and 3-axis gyroscope on the same die, plus an on-chip "machine learning core" that the firmware does not currently use. The chip provides the XREG-010's motion, vibration, and orientation information.
Marine alternator regulators have historically not included motion sensing.
- Measure heel, pitch, and yaw rate: live attitude, slam and capsize counters, the motion-sickness and anchorage-comfort estimates, and the sea-state axis the boat-performance reference learns against. This is what the part does today; see IMU Analytics.
- Gate charging decisions on heel or pitch (a hard heel angle suggests a working sail, which is a useful signal for power-management strategy). Not implemented: heel and pitch are telemetry and analytics inputs only; no charging or protection path reads them.
- Detect engine vibration to confirm the engine is running, independent of the alternator stator pulse train. Not implemented: "engine is spinning" is determined from the tach signal alone (
engineSpinning()). - Detect installation-time orientation to know which axis is "vertical" for future tilt-based features. (Today the mounting orientation is entered by the user in Vessel Info; the firmware validates that the mount reads plausibly against gravity.)
- Identify specific failures by vibration signature (bearing wear, belt slap, mounting looseness) over time using the on-chip MLC. Not implemented: the MLC is unused.
Why the LSM6DSOX specifically¶
| Driver | Why this part |
|---|---|
| Combined accel + gyro | A single I²C address picks up everything we need; avoids a second part. |
| 3.3 V single-supply | No level shifters or analog supply needed. |
| Industrial temperature range (−40 °C to +85 °C) | Survives engine-room ambient. |
| Pin-compatible with LSM6DSO, second source if supply ends | If the OX variant goes EOL, the older DSO fits the same footprint. |
| On-chip ML core | Not used today; reserved for future vibration-classification features. |
| Low quiescent (≈ 0.55 mA in normal mode) | Acceptable on a continuous-on monitor. |
Pin Configuration¶
| Pin | Name | Net | Notes |
|---|---|---|---|
| 1 | SDO/SA0 | GND | I²C address bit 0 = 0 → 7-bit address 0x6A |
| 2 | SDX | GND | Auxiliary SPI interface — tied off, unused |
| 3 | SCX | GND | Auxiliary SPI interface — tied off, unused |
| 4 | INT1 | (unconnected) | Interrupt output — reserved for future use |
| 5 | VDDIO | 3V3 | I/O supply |
| 6, 7 | GND | GND | Ground |
| 8 | VDD | 3V3 | Core supply |
| 9 | INT2 | (unconnected) | Interrupt output — reserved for future use |
| 10 | OCS_AUX | (unconnected) | Aux interface chip select — unused (must be floating per datasheet) |
| 11 | SDO_AUX | (unconnected) | Aux interface data — unused |
| 12 | CS | 3V3 | Tied high — selects I²C mode (low would select SPI) |
| 13 | SCL | I2C_SCL | Shared I²C clock |
| 14 | SDA | I2C_SDA | Shared I²C data |
I²C Bus Membership¶
The LSM6DSOX (address 0x6A) shares the main 400 kHz I²C bus with the INA228 battery monitor (0x40), the ADS1115 analog converter (0x48), and the BMP388 pressure/temperature sensor (0x76). The bus membership table and the shared pull-up rationale (R92 / R93) are in the BMP388 doc.
The bus runs at 400 kHz fast mode in firmware. The LSM6DSOX supports up to 1 MHz (I²C Fast-mode Plus), but moving from 400 kHz to 1 MHz would require characterizing the bus rise time with all four devices loaded and is not worth the firmware refactor for the IMU's data rate.
Do not raise the bus clock. 400 kHz is in-spec Fast-mode for every device on the bus. An out-of-spec experiment at a higher clock ended with the ADS1115 being declared disconnected (the
adsI2CErrorCounterror count passed its limit), and theWire.setClock(400000)call ininitializeHardware()carries a comment saying not to try it again.
Power & Decoupling¶
VDD (pin 8) and VDDIO (pin 5) are both supplied from the 3.3 V rail. Decoupling is standard: 100 nF × 2 on the supply pins, placed within 2 mm of the package. The chip's internal LDOs regulate the analog and digital sub-rails, so no external analog supply is needed.
Address Selection¶
SDO/SA0 (pin 1) is grounded → 7-bit I²C address = 0x6A.
Tying pin 1 to VDDIO instead gives 0x6B. Both addresses are reserved for the LSM6DSOX family by ST.
SPI Mode (Unused)¶
CS (pin 12) is tied to 3V3 to force I²C mode. If the firmware ever needs SPI for higher data-rate gyro sampling (e.g., 6 kHz ODR), CS could be re-routed to an ESP32 GPIO and the bus reorganized. That requires a board respin and is not planned.
Interrupt Outputs¶
INT1 (pin 4) and INT2 (pin 9) are routed as bare pads in the netlist but not connected. They would normally be used for:
- INT1: data-ready, wake-on-motion, double-tap, free-fall, tilt
- INT2: same set, programmable to different events
The firmware reads the sensor's FIFO on a 10 ms polling schedule (drainIMUFifo; accelerometer at 104 Hz and ±2 g, gyroscope at 52 Hz and ±2000 dps) rather than using the interrupt lines, which is adequate for the current feature set. Sub-millisecond wake-on-motion (e.g., crash detection) would need INT1 routed to an ESP32 GPIO.
Auxiliary SPI Interface¶
SDX (pin 2), SCX (pin 3), OCS_AUX (pin 10), and SDO_AUX (pin 11) are the LSM6DSOX's optional secondary SPI interface for daisy-chaining external sensors (a magnetometer, typically). All four are tied off as the datasheet recommends when unused: SDX and SCX to GND, OCS_AUX and SDO_AUX left floating.
Layout Considerations¶
- The LSM6DSOX should be mounted to the PCB itself, not on a flex pigtail. Mechanical compliance between the IMU and the structure being measured (the regulator → enclosure → bulkhead → engine bed) is what the sensor measures; any additional compliance attenuates the signal.
- The regulator's mounting orientation is chosen by the user in Setup → Vessel Info (four choices,
imuMountOrientation); the firmware remaps the sensor axes to the boat frame from that setting and checks the result against gravity (imuInstallCode). - The chip is sensitive to thermal gradients. Avoid placing high-dissipation devices (the LMR36510, the TPS48000 power MOSFETs) within 5 mm of the package. The V9 layout places U1 in a low-dissipation corner of the board.
Specifications Summary¶
| Parameter | Value | Source |
|---|---|---|
| Accelerometer range | ±2 / ±4 / ±8 / ±16 g (selectable) | datasheet |
| Accelerometer noise | 60 µg/√Hz | datasheet |
| Accelerometer ODR | 12.5 Hz – 6.66 kHz | datasheet |
| Gyroscope range | ±125 / ±250 / ±500 / ±1000 / ±2000 dps | datasheet |
| Gyroscope noise | 4 mdps/√Hz | datasheet |
| Gyroscope ODR | 12.5 Hz – 6.66 kHz | datasheet |
| Operating voltage | 1.71 V – 3.6 V | datasheet |
| Supply current (combined accel + gyro, normal mode) | ~0.55 mA at 3.3 V | datasheet |
| Operating temperature | −40 °C to +85 °C | datasheet |
| Package | 14-lead LGA, 2.5 × 3 × 0.86 mm | datasheet |
See Also¶
- BMP388 / BMP390 Sensor: shares the I²C bus
- INA228 Battery Monitor: also shares the I²C bus
- ESP32-S3 Controller: I²C master pins (GPIO9 SDA / GPIO10 SCL)