question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gy91 mpu9255 and new ak8963

See original GitHub issue

Using 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:open
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
tuupolacommented, Feb 17, 2019

You mean this? Looks quite interesting board. Let me know how it goes.

1reaction
hortovanyicommented, Feb 21, 2019

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found