|
Post by lglasmacher on Nov 8, 2018 16:20:21 GMT
Hello, I have a Problem connecting my ShieldBuddy TC275 with a MPU 6050 Accelormeter via I2C. The test sketch is very simple and so is the wiring. I have a 5k Pull Up to 5V on SDA and SCL. I use the normal Wire Library. #include <Wire.h> // Zur I 2 C kommunkikation #define SwWire Wire void setup() { SwWire.begin(); // I2C Kommunikation beginnt } void loop() { SwWire.beginTransmission(0x68); SwWire.write(0xAA); SwWire.write(0xFF); SwWire.endTransmission(true); delay(10); } With an Elegoo UNO R3 it works nice with the Shieldbuddy it has two differnt Lows (only ACK seems to be 0V) and the beginTransmission(Adress of the MPU6050) is called twice. After a while I2C hangs up. See attached Picture. Any Idea what I should do? Thank you very much Lukas
|
|
|
Post by andi66 on Mar 14, 2019 8:00:38 GMT
Hello, I have the same problem. Have you already solved it? I can not keep up with it. I would be very happy about an answer.
Greetings Andreas
|
|
wiken
New Member
Posts: 45
|
Post by wiken on Mar 19, 2019 10:34:08 GMT
I had a problem with SwWire I swapped the pins from: SoftwareWire AWire(20, 21, 1, 1); /* Pullups, don't use clock stretch */ to: SoftwareWire AWire(21, 20, 1, 1); /* Pullups, don't use clock stretch */ That solved my problem with hanging ACK. \Wiken
|
|