PlatformIO projects to exercise three sensors with an ESP32 DevKit (Arduino framework):
- ADXL372 (±200 g accelerometer) –
env:adxl372 - ISM330DHCX (6‑DoF IMU) –
env:ism330dhcx - LPS28DFW (barometer) –
env:lps28dfw
- SCK 18, MOSI 23, MISO 19, CS 5 (change per file if needed).
- Power: 3V3, GND.
- Optional interrupts:
- ADXL372: INT1=GPIO4, INT2=GPIO15
- ISM330DHCX: INT1=GPIO4, INT2=GPIO15
- LPS28DFW: none required (uses polling/FIFO)
pio run -e adxl372 --target upload
pio run -e ism330dhcx --target upload
pio run -e lps28dfw --target uploadSerial monitor at 115200:
pio device monitor -e adxl372 # or ism330dhcx, lps28dfw- ADXL372: live stream, FIFO stream/trigger, HPF toggle, ODR/BW cycle, unit toggle (g↔m/s²), CSV/human toggle, 200‑sample bias calibration, self‑test, activity/inactivity demo.
- ISM330DHCX: live stream of accel/gyro/temp + pitch/roll, CSV/human toggle, accel & gyro FS cycle, ODR cycle, FIFO dump, 256‑sample bias calibration, self‑test pulse.
- LPS28DFW: live pressure/temp (optional altitude), CSV/human toggle, ODR cycle, low‑noise toggle, smoothing filter toggle, set sea‑level reference from current pressure, FIFO stream on/off + dump.
- Bias calibrations assume the board is stationary during capture.
- Live print rate is ~100 Hz for motion sensors; sensor ODR can be higher.
- Altitude uses the standard barometric formula; set sea‑level ref (
s) for best accuracy.