LilyGO / TTGO-TS

TTGO-TS-V1.4 V1.2 V1.0
107 stars 31 forks source link

MPU9250 #1

Closed donesnowangel closed 5 years ago

donesnowangel commented 6 years ago

Hi, I'm trying to work with the MPU9250 onboard the board with 1.8 inch screen. Can you please give me some guidance as to how to use it? What pins it is on? Is it on I2C or SPI? I've tried using various sketches examples and libraries, but without any success. An i2c scanner says there are no devices and when I try to get an a WHO_AM_I, I get a 0xFF.

Thanks, Daniel

circuitsforfun commented 6 years ago

Same problem here, I have both the 1.4" and 1.8" screen version and can't get the MPU9250 to work. It would be great to see some example code provided or the schematic so I can see how it is connected.

donesnowangel commented 6 years ago

I actually got it to work. Apparently the IMU uses pins 19 and 18 for SDA and SCL. So if you use the standard Wire.h library, add Wire.begin(19,18);

Daniel

On Feb 18, 2018, at 04:58, Richard Wardlow notifications@github.com wrote:

Same problem here, I have both the 1.4" and 1.8" screen version and can't get the MPU9250 to work. It would be great to see some example code provided or the schematic so I can see how it is connected.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

circuitsforfun commented 6 years ago

Ahh yes, that did the trick... thank you!

BeatArnet commented 6 years ago

Hi, Could you please post an arduino example with the MPU9250. Thanks a lot.

LilyGO commented 5 years ago

https://github.com/LilyGO/TTGO-TS-V1.2/blob/master/MPU9/MPU9.ino

kotakomputer commented 5 years ago

TTGO V2.1_1.6 does not have PIN 18. Any recomended PIN? SOLVED: use PIN 21 (SDA) and 22 (SCL)