Appendix G Using the Accelerometer
A low-power three axes linear accelerometer is presented as an I2C* device at bus
address 0x18. The accelerometer provides data on the x, y, and z axes for the raw
and scaled values detailed below.
To use the accelerometer, load the accelerometer drivers. Use the following
commands:
modprobe intel_qrk_gip
modprobe gpio_sch
modprobe lis331dlh_intel_qrk
After the driver loading is completed, the accelerometer enables data points via the
industrial I/O kernel API directly read from the hardware. The accelerometer data is
available as follows:
- /sys/bus/iio/devices/iio:device0/in_accel_<axis>_raw
XX
Instantaneous raw acceleration value for axes x, y and z
- /sys/bus/iio/devices/iio:device0/in_accel_scale_available
XX
Scaling value for each of the axes x, y and z
- /sys/bus/iio/devices/iio:device0/in_accel_<axis>_scale
XX
Instantaneous scaled acceleration value for axes x, y and z
- /sys/bus/iio/devices/iio:device0/in_accel_<axis>_scale
XX
Scaling factor for axes x, y and z
- /sys/bus/iio/devices/iio:device0/events/in_accel_<axis>_thresh_rising_value
XX
Event threshold value for axes x, y and z. The range is [0, 127]
- /sys/bus/iio/devices/iio:device0/events/in_accel_<axis>_thresh_rising_en
XX
Threshold enable for axes x, y and z
Intel IoT Gateway Development Kit DK200 Series —Using the Accelerometer
Intel
®
IoT Gateway Development Kit DK200 Series
Getting Started Guide
April 2015
74
Order No.: 330295-004