Skip to content

calstar/Sensors-Test-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ESP32 Sensor Bring-Up Suite

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

Wiring (ESP32 VSPI defaults)

  • 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)

Build & Flash

pio run -e adxl372 --target upload
pio run -e ism330dhcx --target upload
pio run -e lps28dfw --target upload

Serial monitor at 115200:

pio device monitor -e adxl372   # or ism330dhcx, lps28dfw

Runtime menus (hotkeys)

  • 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.

Notes

  • 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.

About

For the Accelerometer, IMU and barometer test.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages