This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ssd1306 i2c not working with nrf51822

Hi, i am using oled ssd1306 i2c with nrf51822. I am using peripheral mode and SDK v10.0. i choose this sdk version because of length i want to sent at one go that is 1024. I have connected oled to pin 18 and pin 20 for SDA and SCL respectively.

I took twi_sensor code for reference and i merged oled code in that. first i tried led blinking and it working without problem. But oled is not at all working.

I checked on logic analyser, i found nrf chip is not communicating over i2c. i didn't see any signal changes on those pins. i have attached logic analyser screen shot. image description

i have updated code on github. github.com/.../olednrf51

Parents
  • Hi,

    I interpret "pin 18 and pin 20 for SDA and SCL respectively." as

    • SDA -> pin 18
    • SCL -> pin 20

    In your code on github you have it the other way around. Am I misunderstanding?

    If this isn't the issue I suggest that you double, triple, and quadruple check your wiring, make sure that the SSD is powered on, and make some code like this to check whether the SSD is responding at all.

Reply
  • Hi,

    I interpret "pin 18 and pin 20 for SDA and SCL respectively." as

    • SDA -> pin 18
    • SCL -> pin 20

    In your code on github you have it the other way around. Am I misunderstanding?

    If this isn't the issue I suggest that you double, triple, and quadruple check your wiring, make sure that the SSD is powered on, and make some code like this to check whether the SSD is responding at all.

Children
Related