Changes between Version 2 and Version 3 of accelerometer


Ignore:
Timestamp:
01/18/2019 09:30:58 PM (6 years ago)
Author:
Bobby Jones
Comment:

Generalized page for all IMUs, included tables for board/device info

Legend:

Unmodified
Added
Removed
Modified
  • accelerometer

    v2 v3  
    22
    33= 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.
     4Many Gateworks board families including ventana and newport come standard with either an Accelerometer, Magnetometer, or other inertial measurement unit (IMU) on a single IC.
    55
    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 ==
     7The specific IMUs used on our boards are described by the following table:
    78
    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
     21Individual 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
     28See examples below for more information.
    1029
    1130== OS Support ==
     
    2241
    2342== 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 is supported via a linux input driver on all of the Gateworks BSP's.
     43The ​[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.
    2544
    2645The {{{/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.
     
    86105
    87106References:
    88  * ​https://www.kernel.org/doc/Documentation/input/input.txt - Linux Input API
    89  * http://wiki.openmoko.org/wiki/Accelerometer_data_retrieval - Example applications in several languages include a simple C application
     107 * ​[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]
    90109
    91110
    92 == direct i2c access ==
     111== Direct i2c Access ==
     112This 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
    93114The 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.
    94115