-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
I2C freeze. Custom NRF52 #199
Comments
See #176 |
Maybe I can help: I have an Adafruit Feather nRF52 and a MPU9250, so much the same condition. There are many points were your code or wiring could be wrong. I just show the one, that took me a while to figure out: a hanging I2C-bus with SDA low. My solution, well, my workaround is described here: esp8266/Arduino#1025 (comment) and here.
And yes, almost any pins are usable for I2C communication.
Hope it helps! |
Problem was somehow solved my selecting Generic NRF51 option from the board selection menu, even |
Glad it worked for you! |
Will give it a try as well. Thanks |
No problem. I just realised its a little outdated (but should still work), ill try and push the latest revision tomorrow. |
I have a custom nrf52 board and i need to get MPU6050 running. I have connected it using following pins:
#define PIN_WIRE_SDA (3u)
#define PIN_WIRE_SCL (21u)
Both pins have 4.7k resistors connected.
I have not yet implemented MPU6050 library, though i am trying to recognize the device using I2C scanner described here: https://playground.arduino.cc/Main/I2cScanner Code i am using is there.
Whenever sensor is disconnected terminal continues to show No I2C devices found. Which is right. But whenever i connect sensor to the pins it freezes after the scanning stage.
So, questions. Originally pins for SDA/SCL were 20/21 in variants.h. Can i actually change those?
Can you point me what am i doing wrong?
My skills arent very high, so could be i am doing something completely stupid.
The text was updated successfully, but these errors were encountered: