Raspberry Pi Pico Tutorial - SSD1306 I2C OLED DISPLAY

preview_player
Показать описание
Welcome to the - Learn how to use the Raspberry Pi Pico Tutorial Series:

This tutorial we look at the SSD1306 I2C OLED display and how to connect it to the Raspberry Pi Pico.

This OLED display is a mono-color, 0.96-inch display with 128×64 pixels which is great to use in projects. In this tutorial we cover how to write basic text, display an image or simple animation on the display.

Check out my channel for other videos on the Raspberry Pi Pico, as I will regularly upload tutorials and projects related to the Raspberry Pi Pico.

If you found this tutorial helpful, subscribe to the channel and leave a comment and welcome to the NerdCave.

Code:

Software:

If you are new to the Raspberry Pi Pico I have made a Getting started video:
Рекомендации по теме
Комментарии
Автор

A tiny mistake in the schematic of the ground wire that is in wrong rail.

NerdCaveYT
Автор

Thank you for the tutorial. I'll need to look for documentation of other methods supported, but this is a wonderful foundation to begin with.

MarcLuscher
Автор

Excellent, in-depth but brief, tutorial.

jasonsammons
Автор

Thank you for the very clear tutorial. I have had so much help from this and other tutorials that you have authored. I have one question, however. Is there an easy way to increase the font size on the SSD1306?

patrickpearson
Автор

Really awesome video. Easy to follow and execute. Thanks heaps

TheNicoanthony
Автор

If I understand correctly framebuf is no longer avaiable "ImportError" do you know how to correct code to run it now?

Soph
Автор

When complete the temp file and run it it shows me a error code

zaynliampolidano
Автор

Great Tutorial again! I´ve learned so much from you so far.
Is it possible tu run the animation only one time, not in a loop?

abba
Автор

Can i do it for normal photo like of any pic ??

mangocafee
Автор

Great video, I have been struggling to get this Oled to work. I always get static noise and rapidly scrolling text on the first top lines? I2C scan works fine and I get the correct address back (0x3C).
I also soldered the wires to make sure I get good connections but problem stays :-( any thoughts?

Note: I run below small code on Pico with v1.19 because I don't have the temp sensor, also Pico with v1.20 gives me a bunch of errors when running the code:

from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
import framebuf
import time

WIDTH = 128
HEIGHT = 64

i2c = I2C(0, scl = Pin(17), sda = Pin(16),

display = SSD1306_I2C(128, 64, i2c)

# display.invert(1)
#display.contrast(100)

while True:
display.text('Text 1...', 0, 0)
display.text('Text 2...' , 0, 14)
display.show()
display.fill(0)

bartvdg
Автор

Why did you eliminated the transcripts options?

pedrocabrera
Автор

It doesn't work differently than ESP32 if you take the USB power and reconnect it. Do I have to keep uploading it every time I do it? How does it work on batteries?

ceosealemon
Автор

Is there a way to do this with Arduino? Thanks for the info my friend.

vvorldnewsmedia
Автор

my temperature is displaying too low do u know a fix

larsboevee
Автор

Are you able to collaborate? I have a project I’m working on an I’m a newbie

newtuber
Автор

Hello thanks for the tutorial. I got the first part with temperature correct. The last animation tutorial gave me an error. Could you tell me what I have done wrong?
MicroPython v1.19.1 on 2022-06-18; Raspberry Pi Pico with RP2040

Type "help()" for more information.
>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "<stdin>", line 15, in <module>
OSError: [Errno 2] ENOENT
>>>

alexfernandesportrai
Автор

Theres an error i keep on getting. Any know on how to fix? Ill paste the whole message below

Traceback (most recent call last):
File "<stdin>", line 11, in <module>
File "ssd1306.py", line 117, in __init__
File "ssd1306.py", line 36, in __init__
File "ssd1306.py", line 73, in init_display
File "ssd1306.py", line 122, in write_cmd
OSError: [Errno 5] EIO

Banana-kowe
Автор

bad tutorial does not show how to even code

ineraangs
Автор

the library doesnt save. i tried to do everything to the point where i even bough a new pico and used another usb cable. but still this error popped up:


Could not write next block after having written 0 bytes to /ssd1306.py
PROBLEM IN THONNY'S BACK-END: Exception while handling 'write_file' (OSError: [WinError Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "<stdin>", line 4, in __W

OSError: 28

See Thonny's backend.log for more info.
You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again.


Process ended with exit code 1.

pls help somoewne

jjaosopica
Автор

the links are correct the code is correct but i am getting error like this. Sometimes it gives an error saying no module named 'ssd1306', can you help me?

♦Traceback (most recent call last):
File "<stdin>", line 9, in <module>
File "ssd1306.py", line 116, in __init__
File "ssd1306.py", line 35, in __init__
File "ssd1306.py", line 72, in init_display
File "ssd1306.py", line 121, in write_cmd
OSError: [Errno 5] EIO

muhammedeminkose