Maker Pro
Raspberry Pi

How to Use an OLED Display With Raspberry Pi Pico

October 11, 2022 by DiY Projects Lab

In this tutorial, we will learn about the Interfacing of SSD1306 OLED Display with Raspberry Pi Pico. In a majority of the projects, we need display units for printing text and sensor values. Nowadays, one of the most commonly used displays is the Oled display.

SSD1306 Oled display with Raspberry pi pico — In a majority of the projects, we need display units for printing text and sensor values. Nowadays, one of the most commonly used displays is the Oled display.

The one you can see on the screen is the SSD1306 I2C-supported Oled display Module which I am going to use with Raspberry Pi Pico

Thank You NextPCB:

This project is successfully completed because of the help and support from NextPCB. NextPCB is one of the most experienced PCB manufacturers in Global and has specialized in the PCB and assembly industry for over 15 years. Not only could NextPCB provide the most innovative printed circuit boards and assembly technologies in the highest quality standards, but the fastest delivery turnaround was also as fast as 24 hours.

Guys if you have a PCB project, please visit their website and get exciting discounts and coupons.

Getting Started Raspberry Pi Pico — Pinout, Specs — Beginner Guide

Hardware Required

  • 4pins 0.96" 128×64 OLED Display Module
  • Raspberry Pi Pico
  • Breadboard
  • Connecting Wires

OLED Display

The 0.96" 128x64 OLED display module is a compact, low-cost display module that is perfect for any project that requires a small display screen.

The module is very easy to use, with only four pins required to interface with a microcontroller. The display is clear and bright, and the module is extremely thin, making it ideal for use in portable applications.

OLED Display Features

OLED (organic light-emitting diode) displays are low-power consumption output devices able to show text and images by controlling every single pixel.

The most common size is 128×64 pixels (0.96 inches), but also the 128×32 pixels (0.91 inches) is available from e-shops.

Their screens are usually mono-colour or bi-colour. The mono-colour ones are made of blue or white pixels, while the bi-colour models usually have an upper part yellow and the lower one blue.

In this tutorial, I’m going to use the bi-colour model, but this uses also the mono-colour ones.

Circuit Diagram — SSD1306 OLED Display with Raspberry Pi Pico

Circuit Diagram — SSD1306 OLED Display with Raspberry Pi Pico

You can guide to the circuit connection of the Raspberry Pi Pico and OLED display module as shown below.

  • The SDA pin of the OLED Display Module is connected to the GPIO16(Pin21)
  • The SCL pin is connected to the GPIO17(Pin22).
  • The Vcc pin is connected to the 3.3v Pin of the Pico Board which is Pin36.
  • The Ground pin of the Display module is connected to the Ground pin of the Pico board which is Pin38

Installing the Library

I prefer Thonny IDE for programming. The programming here is divided into two main parts:



MicroPython SSD1306 I2C Library

This is because the OLED Display requires an SSD1306 Driver Code first. We have to write the code for the SSD1306 Driver first. After uploading the SSD1306 Code, we can then run the code.

Working demo of the OLED Display Raspberry Pi Pico

I hope you have managed to get this working and enjoy the result. You now have a tested starting point for your own projects.

Questions and comments welcome

Read Similar Articles:

Related Content


You May Also Like