Changes between Version 2 and Version 3 of accelerometer
- Timestamp:
- 01/18/2019 09:30:58 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
accelerometer
v2 v3 2 2 3 3 = Accelerometer and Magnetometer = 4 Many Ventana models come standard with an Accelerometer and Magnetometer on a single [http://cache.freescale.com/files/sensors/doc/data_sheet/FXOS8700CQ.pdf?pspll=1 FXOS8700CQR1 ]IC.4 Many Gateworks board families including ventana and newport come standard with either an Accelerometer, Magnetometer, or other inertial measurement unit (IMU) on a single IC. 5 5 6 Note that this device has a low power standby mode which it is in by default, so be sure to enable it if you want to read values from it (see examples below). Register 0x2a and 0x5b relate to this. 6 == Supported Devices == 7 The specific IMUs used on our boards are described by the following table: 7 8 8 References: 9 * [http://cache.freescale.com/files/sensors/doc/data_sheet/FXOS8700CQ.pdf?pspll=1 FXOS8700CQR1 Datasheet] 9 ||= '''Family''' =||= '''Board''' =||= '''Device''' =|| 10 ||= Newport =||= GW64XX =||= - =|| 11 ||= =||= GW63XX =||= LIS2DE12 =|| 12 ||= =||= GW62XX =||= LIS2DE12 =|| 13 ||= =||= GW61XX =||= - =|| 14 ||= Ventana =||= GW553X =||= LSM9DS1 =|| 15 ||= =||= GW54XX =||= FXOS8700 =|| 16 ||= =||= GW53XX =||= FXOS8700 =|| 17 ||= =||= GW522X =||= FXOS8700 =|| 18 ||= =||= GW520X =||= FXOS8700 =|| 19 ||= =||= GW51XX =||= - =|| 20 21 Individual device information: 22 23 ||= '''Device''' =||= '''Datasheet''' =||= '''Address''' =||= '''Notes''' =|| 24 ||= LIS2DE12 =||= [https://www.st.com/resource/en/datasheet/lis2de12.pdf link] =||= I2C bus 0, addr 0x19 =|| 3 axis || 25 ||= LSM9DS1 =||= [https://www.st.com/resource/en/datasheet/DM00103319.pdf link] =||= I2C bus 1, addr 0x6A & 0x1C =|| 9 axis || 26 ||= FXOS8700 =||= [http://cache.freescale.com/files/sensors/doc/data_sheet/FXOS8700CQ.pdf?pspll=1 link] =||= I2C bus 2, addr 0x1E =|| 6 axis, defaults to low power standby mode and must be enabled || 27 28 See examples below for more information. 10 29 11 30 == OS Support == … … 22 41 23 42 == Linux input device access == 24 The [https://www.kernel.org/doc/Documentation/input/input.txt Linux input device API] provides access to devices through a {{{/dev/input/event<n>}}} interface. The FXOS8700 issupported via a linux input driver on all of the Gateworks BSP's.43 The [https://www.kernel.org/doc/Documentation/input/input.txt Linux input device API] provides access to devices through a {{{/dev/input/event<n>}}} interface. Currently the above IMU's are supported via a linux input driver on all of the Gateworks BSP's. 25 44 26 45 The {{{/sys/class/input/input<n>/name}}} directories will show the device name responsible for the events within that directory which correspond to matching {{{/dev/input/event<n>}}} entries. … … 86 105 87 106 References: 88 * https://www.kernel.org/doc/Documentation/input/input.txt - Linux Input API89 * http://wiki.openmoko.org/wiki/Accelerometer_data_retrieval - Example applications in several languages include a simple C application107 * [https://www.kernel.org/doc/Documentation/input/input.txt Linux Input API] 108 * [http://wiki.openmoko.org/wiki/Accelerometer_data_retrieval Example applications in several languages include a simple C application] 90 109 91 110 92 == direct i2c access == 111 == Direct i2c Access == 112 This section provides examples for some typical methods of communicating with the IMUs on the i2c bus. The FXOS8700 information will be used but can be adjusted to match the address of the device present on your board. Refer to the linked datasheets to see more detailed register information. 113 93 114 The FXOS8700 device is on the third (0 based) i2c bus at a slave address of 0x1e. Therefore you can access it directly without the need of a driver if necessary by knowing the register set from the datasheet. 94 115