Anyone have drivers for FXOS8700/FXAS21002 (Adafruit NXP precision IMU)?

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
svgroom
Posts: 1
Joined: Thu Mar 12, 2020 9:22 pm

Anyone have drivers for FXOS8700/FXAS21002 (Adafruit NXP precision IMU)?

Post by svgroom » Sat Aug 08, 2020 12:58 am

In some google searching I did not find a micropython driver for the FXOS8700 or FXAS21002. If anyone knows of one I would appreciate it if you could post it or send it to me or something.

Thanks

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Anyone have drivers for FXOS8700/FXAS21002 (Adafruit NXP precision IMU)?

Post by pythoncoder » Sat Aug 08, 2020 12:13 pm

I am not aware of one. You will find various IMU drivers at micropython-imu. If you need sensor fusion I recommend the BNo055 which performs it on-chip with great effectiveness.
Peter Hinch
Index to my micropython libraries.

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: Anyone have drivers for FXOS8700/FXAS21002 (Adafruit NXP precision IMU)?

Post by mattyt » Sun Aug 09, 2020 5:21 am

There are CircuitPython drivers for both the FXOS8700 and the FXAS21002. Both will be trivial to port to MicroPython - just change some references to the way I2C is handled. Let me know if you get stuck!

I'd also suggest a design change: just pass an I2C object to each of the drivers rather than create an I2C object.

Post Reply