Table of Contents

Zephyr Basic Data Logging

Zephyr Project @ VHS

Objective

Log data from all sensors on the board to csv file.

Steps

  1. Setup Build Environment
  2. Port sensor code to Zephyr
  3. Write/modify code for data logging to file
  4. Build code
  5. Flash code to board
  6. Test

Notes

HTS221: Capacitive digital sensor for relative humidity and temperature

I2C

LIS3MDL: High-performance 3-axis magnetometer

I2C

LSM6DSL: 3D accelerometer and 3D gyroscope

I2C

LPS22HB: 260-1260 hPa absolute digital output barometer

I2C

VL53L0X: Time-of-Flight and gesture-detection sensor

I2C

I2C

Table 3. I2C addresses for each module

Modules Description SAD[6:0] + R/W I2C write address I2C read address
HTS221 Capacitive digital sensor for relative humidity and temperature 1011111x 0xBE 0xBF
LIS3MDL 3-axis magnetometer 0011110x 0x3C 0x3D
LPS22HB MEMS nano pressure sensor 1011101x 0xBA 0xBB
LSM6DSL 3D accelerometer and 3D gyroscope 1101010x 0xD4 0xD5
VL53L0X Time-of-Flight ranging and gesture detection sensor 0101001x 0x52 0x53
M24SR64-Y Dynamic NFC/RFID tag IC 1010110x 0xAC 0xAD
STSAFE-A100 - 0100000x 0x40 0x41