gy91 mpu9255 and new ak8963
See original GitHub issueUsing a gy-91 which contains a mpu9255 and a different model AK8963
Changed in AK8963.init
if 0x48 != self.whoami:
to
if self.whoami not in (0x48,0x5F):
in AK8963.magnetic (was getting the same y an z values, appears you can no longer read six bytes at a time but must read 2 bytes for each of hxl, hyl, hzl)
So changed
xyz = list(self._register_three_shorts(_HXL)
to
x = self._register_short(_HXL)
y = self._register_short(_HYL)
z = self._register_short(_HZL)
xyz=[x,y,z]
and in mpu6500.init
if 0x71 != self.whoami
to
if self.whoami not in (0x71,0x73)
Still working away trying to get this working …
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
No data from the magnetometer [MPU9250][AK8963] - Sensors
Hello everyone, I have a problem with firing the magnetometer in the Gy-91 [MPU9250][AK8963]. ... No data from magnetometer on MPU9255.
Read more >10-DoF IMU - GY-91 (MPU9250 + BMP280) - Maker Portal
This incredible small profile sensor houses an accelerometer and gyroscope in the MPU6050, a magnetometer in the AK8963, and altitude (barometric pressure, ...
Read more >MPU-9255-Datasheet.pdf
MPU-9255 is a multi-chip module (MCM) consisting of two dies integrated into a single QFN package. One die houses the 3-Axis gyroscope and...
Read more >MPU-9250 Hookup Guide - SparkFun Learn
The MPU-9250 is the latest 9-axis MEMS sensor from InvenSense®. ... a 3-axis gyroscope, a 3-axis accelerometer, and the AK8963, a 3-axis magnetometer....
Read more >OpenPlotter – Sensors_b – Telecommunications, Navigation ...
The GY-91 sensor board contains a BMP280 pressure/temperature IC ... Fig.1 GY-91 Sensor Module ... the second has a AK8963 magnetometer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You mean this? Looks quite interesting board. Let me know how it goes.
Getting better data using
i2c = I2C(scl=Pin(21), sda=Pin(22), freq=100000)
. There appears to be an issue with the default freq on an ESP32 communicating with the GY-91. Might be a timing issues?