Interfacing OLED SSD1306 with nRF52832 on Zephyr

Subject: Query: Interfacing OLED SSD1306 with nRF52832 on Zephyr

Dear Zephyr Dev Zone Community,

I hope this message finds you well. I am currently working on a project that involves interfacing an OLED SSD1306 display with an nRF52832 microcontroller using the Zephyr RTOS. I have encountered some challenges during the integration process and would greatly appreciate your assistance in resolving them.

Specifically, I am facing issues with initializing and communicating with the OLED SSD1306 display through the nRF52832 microcontroller. Despite following the documentation and examples available, I have been unable to achieve successful communication and display output.

Here are some key details about my setup and the issues I'm encountering:

  1. Hardware Setup:

    • OLED SSD1306 display (specify model/version if applicable)
    • nRF52832 microcontroller development board
    • Connections made using (I2C/SPI) interface
    • Power supply and wiring configurations
  2. Software Environment:

    • Zephyr RTOS version: [Specify version]
    • Development environment/tools used: [Specify IDE, SDK, etc.]
    • Relevant code snippets/configuration files: [Provide snippets of initialization code, device tree configuration, etc.]
  3. Issues Encountered:

    • Initialization problems: Difficulty initializing the OLED display driver.
    • Communication errors: Unable to establish communication between the microcontroller and the OLED display.
    • Display output: No output or incorrect display output observed on the OLED screen.

I would greatly appreciate any guidance, tips, or insights you can provide to help me overcome these challenges and successfully interface the OLED SSD1306 display with the nRF52832 microcontroller on the Zephyr RTOS.

Thank you very much for your time and assistance. I look forward to your valuable input and suggestions.

Best regards, Aman

  • Hello, 

    What version of the nRF Connect SDK are you using? 

    Here are some key details about my setup and the issues I'm encountering:

    The information provided does not include what version you are using. 

    , I am facing issues with initializing and communicating with the OLED SSD1306 display through the nRF52832 microcontroller.

    How are you building the project for the nRF52832 and OLED display? Is this custom HW or are you using our nRF52832 Development Kit? How are you connecting the device? Have you ensured that you are using the correct GPIO? 

    As mentioned in  Inquiry about Interfacing Grove LCD (White Blue) with NRF52832 did you test with the Zephyr Display driver sample?

    Kind regards,
    Øyvind

  • i am using sdk version 2.4.2 and displaying data as well but problem is that data is just coming in the half of the size of  text/char that i have written to be printed

  • Have you seen our blog post Printing to an I2C OLED display using nRF Connect SDK? Here it states, for the overlay file:

    For nRF52832: Use compatible = "nordic,nrf-twi"; instead of compatible = "nordic,nrf-twim"; also remove the line zephyr,concat-buf-size = <4096>;

  • yes, i have already change all the things

  • Please provide more details on your setup, i.e. how you have connected, the overlay files etc. And please provide an image or similar to the fault. This way I can try to reproduce on my side.

1 2 3 4 5