-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response from magnetometer #123
Comments
0x01 is not a valid entry, please see the data sheet.
|
Thank you for your fast respond. 0x01 was my panic attempt to try something new :) I tried implementing the code, but it didn’t change anything. It seems like there is no node with addr 0x0C on the bus. Kind regards |
If you set bypass by writing 0x02 to the INT_CFG register this should allow
discovery of the AK8963C by an I2C scanner.
Why don't you try a known good Arduino sketch?
https://github.com/kriswiner/MPU-9250/blob/master/MPU9250_MS5637_AHRS_t3.ino
…On Wed, Mar 8, 2017 at 9:21 AM, Martin Skriver ***@***.***> wrote:
Thank you for your fast respond. 0x01 was my panic attempt to try
something new :) I tried implementing the code, but it didn’t change
anything. It seems like there is no node with addr 0x0C on the bus.
Do you think it can it be a hardware problem? It is just strange since
there is no problem getting data from node addr 0x68.
Kind regards
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#123 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGY1qoFeXaVKY2s8yHjgZVleELdedBMGks5rjuOfgaJpZM4MW6rV>
.
|
Thanks Kris |
The schematic looks OK except I would not connect the pad to anything and
would have no copper on any layer beneath the package. I doubt this is
causing the problem with the mag unless the pad is bridging one of the pins.
…On Fri, Mar 10, 2017 at 5:07 AM, Martin Skriver ***@***.***> wrote:
Still no response fra AK8963C.
I attached the MPU9250 part of the diagram that we used in the DroneID. I
have seen diagrams of the sensor where pin 1 is open. We added 3 V to the
pin. Is that correct?
[image: image]
<https://cloud.githubusercontent.com/assets/3857288/23796288/78d003c6-059a-11e7-8bd4-a20e217b0983.png>
Kind regards
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#123 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGY1qvQbEFqYyJI-mWP0svILD_go1PBzks5rkUsCgaJpZM4MW6rV>
.
|
I had a problem with the I2C but it is working now. |
hello ! i have a very similar problem to what you had an my I2C doesn't connect to 0x0C address to get data can you help me out and tell me what did you do to solve this please! |
English please...
…On Mon, Feb 14, 2022 at 2:51 AM Ethemke ***@***.***> wrote:
I2C ile ilgili bir sorunum vardı ama şimdi çalışıyor. Çok teşekkür ederim,
sana bir bira borcum var ;)
Merhaba ! sahip olduğunuza çok benzer bir sorunum var, I2C'm veri almak
için 0x0C adresine bağlanmıyor, bana yardım edebilir ve bunu çözmek için ne
yaptığınızı söyleyebilir misiniz lütfen!
+1
—
Reply to this email directly, view it on GitHub
<#123 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTDLKXAR75UK4WAS757TPTU3DKBZANCNFSM4DC3VLKQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I'm using a Raspberry Pi with a MPU9250, and I'm having similar problem. Everything works fine (if I add in python a try/except block) except for the magnetometer. Im running the command i2cdetect -y 1 to scan the addresses. The 0x68 of the accel/gyro is appearing, but the 0x0c is not showing up. Could someone help me? I know this is not talking about python, but... |
You have to enable I2C pass through to allow the magnetometer to be
addressed by the host MCU.
…On Wed, May 25, 2022 at 8:55 AM locissigtech ***@***.***> wrote:
I'm using a Raspberry Pi with a MPU9250, and I'm having similar problem.
Everything works fine (if I add in python a try/except block) except for
the magnetometer. Im running the command i2cdetect -y 1 to scan the
addresses. The 0x68 of the accel/gyro is appearing, but the 0x0c is not
showing up. Could someone help me? I know this is not talking about python,
but...
—
Reply to this email directly, view it on GitHub
<#123 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTDLKVVQG37CKMZCYTRUM3VLZENVANCNFSM4DC3VLKQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi Kris
I’m working on a open source tracking device “DroneID”, for trafic management of drones in Denmark DroneID_report. I have som trouble with a MPU-9250 sensor. I’ve tried to implement your solution, but went back to basics just to get started. The problem is that I don’t get any response from the magnetometer. There is no problem getting data from the other sensors in the chip, but when i get to the last line of the code below, I get an error.
Inspired by lucidarme
bool error = false;
// Set accelerometers low pass filter at 5Hz
data_test = 0x06;
error |= i2c_write(0x68,29,1,&data_test);
// Set gyroscope low pass filter at 5Hz
error |= i2c_write(0x68,26,1,&data_test);
// Configure gyroscope range
data_test = 0x10;
error |= i2c_write(0x68,27,1,&data_test);
// Configure accelerometers range
data_test = 0x08;
error |= i2c_write(0x68,28,1,&data_test);
// Set by pass mode for the magnetometers
data_test = 0x02;
error |= i2c_write(0x68,0x37,1,&data_test);
// Request continuous magnetometer measurements in 16 bits
data_test = 0x01
error |= i2c_write(0x0C,0x0A,1,&data_test);
Do you have any idea of what could be wrong?
Kind regards
Martin Skriver
The text was updated successfully, but these errors were encountered: