Difference between revisions of "TS-7180 IMU"

From Technologic Systems Manuals
m
Line 11: Line 11:
  
 
The gyroscope, accelerometer, and temperature readings are available at: '''/sys/bus/iio/devices/iio:device1'''
 
The gyroscope, accelerometer, and temperature readings are available at: '''/sys/bus/iio/devices/iio:device1'''
 +
 +
The gyroscope measures angular velocity in three axes.  The raw values are available at:
 +
 +
'''/sys/bus/iio/devices/iio:device1/in_anglvel_x_raw'''
 +
 +
'''/sys/bus/iio/devices/iio:device1/in_anglvel_y_raw'''
 +
 +
'''/sys/bus/iio/devices/iio:device1/in_anglvel_z_raw'''
 +
 +
 +
The accelerometer measures acceleration along three axes.  The raw values are available at:
 +
 +
'''/sys/bus/iio/devices/iio:device1/in_accel_x_raw'''
 +
 +
'''/sys/bus/iio/devices/iio:device1/in_accel_y_raw'''
 +
 +
'''/sys/bus/iio/devices/iio:device1/in_accel_z_raw'''
 +
 +
  
 
The magnetometer readings are available at: '''/sys/bus/iio/devices/iio:device2'''
 
The magnetometer readings are available at: '''/sys/bus/iio/devices/iio:device2'''
  
'''TO BE COMPLETED'''
+
The magnetometer measures magnetic field strength in three axes.  The raw values are available at:
 +
 
 +
'''/sys/bus/iio/devices/iio:device1/in_magn_x_raw'''
 +
 
 +
'''/sys/bus/iio/devices/iio:device1/in_magn_y_raw'''
 +
 
 +
'''/sys/bus/iio/devices/iio:device1/in_magn_z_raw'''

Revision as of 11:19, 13 December 2018

The TS-7180 has an optional MPU-9250 motion-tracking device. This device provides:

  • 3-axis Gyroscope
  • 3-axis Accelerometer
  • 3-axis Magnetometer
  • Temperature sensor

The MPU-9250 is connected to the CPU via I2C. The device is actually two chips in one: The first contains the gyroscope, accelerometer, and temperature sensor. The second contains the magnetometer. Because there are two chips, there are two I2C chip addresses: 0x69, and 0x0C.

User interface to the device is done through the sys filesystem.

The gyroscope, accelerometer, and temperature readings are available at: /sys/bus/iio/devices/iio:device1

The gyroscope measures angular velocity in three axes. The raw values are available at:

/sys/bus/iio/devices/iio:device1/in_anglvel_x_raw

/sys/bus/iio/devices/iio:device1/in_anglvel_y_raw

/sys/bus/iio/devices/iio:device1/in_anglvel_z_raw


The accelerometer measures acceleration along three axes. The raw values are available at:

/sys/bus/iio/devices/iio:device1/in_accel_x_raw

/sys/bus/iio/devices/iio:device1/in_accel_y_raw

/sys/bus/iio/devices/iio:device1/in_accel_z_raw


The magnetometer readings are available at: /sys/bus/iio/devices/iio:device2

The magnetometer measures magnetic field strength in three axes. The raw values are available at:

/sys/bus/iio/devices/iio:device1/in_magn_x_raw

/sys/bus/iio/devices/iio:device1/in_magn_y_raw

/sys/bus/iio/devices/iio:device1/in_magn_z_raw