hacks:boards:rtos:zephyr:datalogging
This is an old revision of the document!
Table of Contents
Zephyr Basic Data Logging
Objective
Log data from all sensors on the board to csv file.
Steps
- Setup Build Environment
- Port sensor code to Zephyr
- Write/modify code for data logging to file
- Build code
- Flash code to board
- Test
Notes
HTS221: Capacitive digital sensor for relative humidity and temperature
- Temperature (SENSOR_CHAN_TEMP, C)
- Humidity (SENSOR_CHAN_HUMIDITY, mili-percent)
I2C
- Read=10111111 (BFh)
- Write=10111110 (BEh)
LIS3MDL: High-performance 3-axis magnetometer
- Magnetometer (SENSOR_CHAN_MAGN_X, SENSOR_CHAN_MAGN_Y, SENSOR_CHAN_MAGN_Z, SENSOR_CHAN_MAGN_XYZ)
I2C
- Read= 00111101 (3Dh)
- Write=00111100 (3Ch)
LSM6DSL: 3D accelerometer and 3D gyroscope
- accelerometer (SENSOR_CHAN_ACCEL_X, SENSOR_CHAN_ACCEL_Y, SENSOR_CHAN_ACCEL_Z, SENSOR_CHAN_ACCEL_XYZ)
- gyroscope (SENSOR_CHAN_GYRO_X, SENSOR_CHAN_GYRO_Y, SENSOR_CHAN_GYRO_Z, SENSOR_CHAN_GYRO_XYZ)
- temperature (SENSOR_CHAN_TEMP - C)
I2C
- Read= 11010101 (D5h)
- Write=11010100 (D4h)
LPS22HB: 260-1260 hPa absolute digital output barometer
- pressure(SENSOR_CHAN_PRESS - kPA)
- temperature(SENSOR_CHAN_TEMP - C)
I2C
- Read= 10111011 (BBh)
- Write=10111010 (BAh)
VL53L0X: Time-of-Flight and gesture-detection sensor
- Needs to be implemented
I2C
- Read=01010011(53h)
- Write=01010010(52h)
hacks/boards/rtos/zephyr/datalogging.1508812036.txt.gz · Last modified: 2017/10/24 02:27 by jdmc