-
void Init_MPU6050()
{
I2CWrite_MPU6050(I2C_ADDR,PWR_MGMT_1, 0x00); //
I2CWrite_MPU6050(I2C_ADDR,SMPLRT_DIV, 0x00); //1khz
//I2CWrite_MPU6050(I2C_ADDR,SMPLRT_DIV, 0x0…
-
hi ! i used your study about MPU9250 and that was very useful. thank you in advance.
when i run the code : byte d = readByte(AK8963_ADDRESS, AK8963_WHO_AM_I); // Read WHO_AM_I register for AK89…
-
Who can help me to solve the issue?
I can not find AK8963.
I use i2c.scan() get
i2c.scan()
[60, 104, 118]
Can not find AK8963.
I use the AK8963.py and it give error like this:
Traceback (most …
-
Hi kriswiner, I've been reading posts about mpu9250, and I made this code to configure it and the ak:
#defineMPU9250_AD 0x68
#define MAG_AD 0x0C
#define WHO_AM_I_AK8963 0x00 // should return 0…
-
I calibrated the AK8963 magnetometer.
Then I rotated the AK8963 the 360 degrees. Here is X-Y view.
![1111](https://cloud.githubusercontent.com/assets/7097788/23089498/6fc46b62-f53e-11e6-8dd2-176…
ghost updated
7 years ago
-
Hardware: RPi 4B 4GB
OS: Bullseye
DC: v5.0.dev3
MPU: mpu9250 on Robo HAT MM1 at hex address 0x69
IMU configuration in myconfig.py:
```
# IMU for imu model
HAVE_IMU = True
IMU_SENSOR = 'mpu92…
TCIII updated
2 months ago
-
Hey mate,
there seams to be an error in the .cpp file?
mag_scale MPU9250::get_mag_scale()
{
return((__read_byte(AK8963_ADDRESS, AK8963_CNTL)>>4)&0x01);
}
it says that the returned value i…
-
Hello, thank you for replying me the e-mail.
I have read your mail about the mag calibration and came to here to see the code.
I finally understood the procedure of mag calibration!
But I have two mo…
-
The return value of AK8963_whoami is not correct. What might be the problem? By the way, I use chip gy91 which contain MPU9250 and another aux iic chip.
mttbx updated
3 years ago
-
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 getti…