Reading Accelerometer & Gyroscope sensors on im8qxp-mek (REV C1)

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Accelerometer & Gyroscope sensors on im8qxp-mek (REV C1)

98 Views
carlo_p
Contributor II

Hi,

How can I read Accelerometer & Gyroscope sensors on im8qxp-mek (REV C1)?

I've built the full-image with yocto. I see a lot of i2c devices, should I use one of them to read sensors values? If yes, which one?

 

Tags (3)
0 Kudos
1 Reply

87 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello carlo_p,

 

You can use the Lpi2c, is the one available to used, the menu configuration is: Select Device Drivers > I2C support > I2C Hardware Bus support > IMX Low Power I2C interface

and the driver is at:

drivers/i2c/busses/imx-lpi2c.c

The LPI2C device driver can use the standard SMBus interface to read and write the registers of the device connected to the LPI2C
bus. For more information, see include/linux/i2c.h.

Note:The LPI2C driver does not support the slave mode.

 

Regards

 

0 Kudos