Integrating IMU as Android native IMU
Posted: Wed Aug 14, 2019 4:44 pm
Hello All,
I want to add an IMU (accelerometer, gyroscope, magnetometer) to a NEO4 with Android 8, and it needs to look "native" because it needs to work with any APP.
I'm not comfortable with linux code but I can read some C and Java and took a look at FA's Android 8 source for the NEO4 and there seems to be code for some IMU chips (from Ivensense and others):
https://gitlab.com/friendlyelec/rk3399-android-8.1/blob/master/hardware/rockchip/sensor/mpu_vr/libsensors/software/core/driver/include/linux/mpu.h
Can I connect one of the chips mentioned in this file to one of NEO4's I2C buses and will it automatically be used by the Android sensor API? Is there something else I need to do? To which of the I2C buses should I connect it (I2C1 is being used by the camera)?
If someone has any info or pointers to info I'll be much appreciated.
Thank you and best regards
I want to add an IMU (accelerometer, gyroscope, magnetometer) to a NEO4 with Android 8, and it needs to look "native" because it needs to work with any APP.
I'm not comfortable with linux code but I can read some C and Java and took a look at FA's Android 8 source for the NEO4 and there seems to be code for some IMU chips (from Ivensense and others):
https://gitlab.com/friendlyelec/rk3399-android-8.1/blob/master/hardware/rockchip/sensor/mpu_vr/libsensors/software/core/driver/include/linux/mpu.h
Can I connect one of the chips mentioned in this file to one of NEO4's I2C buses and will it automatically be used by the Android sensor API? Is there something else I need to do? To which of the I2C buses should I connect it (I2C1 is being used by the camera)?
If someone has any info or pointers to info I'll be much appreciated.
Thank you and best regards