kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.03k stars 471 forks source link

MPU9250 not detected #293

Open OmerKhan13 opened 6 years ago

OmerKhan13 commented 6 years ago

Hi! I can't get my arduino to detect my MPU9250. I added 2 4.7k resistors on the SDA and SCL whilst to VCC(3.4 v) . I've tried almost everything but I cant get it to be detected. the I2C scanner can't detect it on the addresses. Occasionally, I get the first line of all the codes and a seemingly endless "Scanning...." I used the basicAHRS code but was blank on the serial monitor (with the display lines). I tried using 5V on it too because It had a voltage regulator on it(not for sda and scl). I tried running without the pull up resistors and vcc and without vcc aswell but nothing seems to work. I even tried running it on my mega board instead of the uno but that didn't work. I get 2.6 volts on the SDA and SCL without the pull ups and Vcc's and 3.5 with them. I've tried connecting INT aswell but that didn't work either. I am a noob at this. 3.3V - Vcc GND - GND SCL - SCL or A5 SDA - SDA or A4 NCS - None INT - None or specified pin Any help would be appreciated!

kriswiner commented 6 years ago

Which MPU9250 breakout and which MCU?

On Sat, Jun 30, 2018 at 7:49 AM, OmerKhan13 notifications@github.com wrote:

Hi! I can't get my arduino to detect my MPU9250. I added 2 4.7k resistors on the SDA and SCL whilst to VCC(3.4 v) . I've tried almost everything but I cant get it to be detected. the I2C scanner can't detect it on the addresses. Occasionally, I get the first line of all the codes and a seemingly endless "Scanning...." I used the basicAHRS code but didn't get anything on the serial monitor. I tried using 5V on it too because It had a voltage regulator on it(not for sda and scl). I tried running without the pull up resistors and vcc and without vcc aswell but nothing seems to work. Any help would be appreciated!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/293, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qldBmLB6SFMfH-K9V_g9e3Z6plfNks5uB4_2gaJpZM4U9_w7 .

OmerKhan13 commented 6 years ago

Hi Kris, It's a GY-9250(that's what it says on the sensor) 0279b966f349149cc036066938ee51e1 image 350x262

And here is how I connected It EXCEPT the CS and SD0 i2c-3v3-sensor-connect

Thanks for the reply! But I'd really appreciate it If we sort this out.

kriswiner commented 6 years ago

Did you pull nCS up to enable I2C?

On Sun, Jul 1, 2018 at 12:38 AM, OmerKhan13 notifications@github.com wrote:

Hi Kris, It's a MPU-92.65(that's what it says on the sensor) [image: 0279b966f349149cc036066938ee51e1 image 350x262] https://user-images.githubusercontent.com/40719239/42132142-2fbcc3ae-7ce0-11e8-9775-ec62a1b91ccf.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/293#issuecomment-401590054, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qjcluqMpRDq1ozYxrXF395xbEk8Wks5uCHx8gaJpZM4U9_w7 .

OmerKhan13 commented 6 years ago

Hi Kris, I didn't do It I guess.

EDIT: I tried it and it still didn't get detected on the I2C scanner.

kriswiner commented 6 years ago

Yes.

On Tue, Jul 3, 2018 at 7:50 AM, OmerKhan13 notifications@github.com wrote:

Hi Kris, I didn't do It I guess. Excuse my question but do I connect it to 3.3V?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/293#issuecomment-402184696, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qtazMUcDKLbhYOvttLwda9x445N9ks5uC4S1gaJpZM4U9_w7 .