Raspberry Pi Pico Tutorial - SSD1306 I2C OLED DISPLAY

  Рет қаралды 30,496

NerdCave

NerdCave

Күн бұрын

Пікірлер: 59
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
A tiny mistake in the schematic of the ground wire that is in wrong rail.
@jakesllama
@jakesllama 2 жыл бұрын
Yes just to elaborate for any other users. be sure to connect the red (positive) wire to the top power rail on the breadboard. as shown on the breadboard section. kzbin.info/www/bejne/iqSce4uYgtuZirM
@tubeDude48
@tubeDude48 Жыл бұрын
Just to clarify, it's the black wire on the left-side; move UP 1 pin. At 1:20 it's correct.
@jasonsammons9
@jasonsammons9 2 жыл бұрын
Excellent, in-depth but brief, tutorial.
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
Glad it was helpful!
@TheNicoanthony
@TheNicoanthony 6 ай бұрын
Really awesome video. Easy to follow and execute. Thanks heaps
@NerdCaveYT
@NerdCaveYT 6 ай бұрын
Glad it helped!
@Kris-cd9qs
@Kris-cd9qs Жыл бұрын
Thank you again! Very usefull links👍
@NerdCaveYT
@NerdCaveYT Жыл бұрын
Glad you like them!
@lorisrobots
@lorisrobots Жыл бұрын
Excellent Video.
@NerdCaveYT
@NerdCaveYT Жыл бұрын
Thank you very much!
@MacaroonL
@MacaroonL 2 жыл бұрын
Thank you!!! This was super helpful!
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
Glad it was helpful!
@rosskleinmann2626
@rosskleinmann2626 Жыл бұрын
Very cool, Thank you!
@NerdCaveYT
@NerdCaveYT Жыл бұрын
Glad you liked it!
@armand9910
@armand9910 2 жыл бұрын
Nice video, thank you.
@abba2938
@abba2938 9 ай бұрын
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?
@NerdCaveYT
@NerdCaveYT 9 ай бұрын
Yes you can! just make a function for it, then you can call that function where you need it to be displayed
@abba2938
@abba2938 9 ай бұрын
Thank you i´ll try it! @@NerdCaveYT
@funix7edits
@funix7edits 2 жыл бұрын
Very Useful!
@bartvdg
@bartvdg Жыл бұрын
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), freq=100000) 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)
@NerdCaveYT
@NerdCaveYT Жыл бұрын
sorry for the late reply what errors do you get?
@ceosealemon
@ceosealemon Жыл бұрын
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?
@NerdCaveYT
@NerdCaveYT Жыл бұрын
on the raspberry pi pico you upload it to main.py I assume the esp32 will have a boot.py so you don't have to keep uploading it and also a V-in for battery power supply. I am planning on covering the esp32 later this year
@vvorldnewsmedia
@vvorldnewsmedia 11 ай бұрын
Is there a way to do this with Arduino? Thanks for the info my friend.
@NerdCaveYT
@NerdCaveYT 11 ай бұрын
Yes you should be able to should be easy using the Adafruit GFX library, I remember seeing a tutorial on it
@Banana-ko8we
@Banana-ko8we Жыл бұрын
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 "", line 11, in 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
@NerdCaveYT
@NerdCaveYT Жыл бұрын
It seems to be a connection error you SSD1306 is the pinout the same as the one I used in the video I know there are different modules
@joseyoverbigz
@joseyoverbigz Жыл бұрын
Thank u
@NerdCaveYT
@NerdCaveYT Жыл бұрын
No problem, glad it was useful
@lionelroma7912
@lionelroma7912 2 жыл бұрын
Merci !!! 👍
@mangocafee
@mangocafee 8 ай бұрын
Can i do it for normal photo like of any pic ??
@NerdCaveYT
@NerdCaveYT 8 ай бұрын
well you can, but the quality would not be super great, I think in video there is one of Elon musk, but due to the limited resolution it will be almost a silhouette
@mangocafee
@mangocafee 8 ай бұрын
@@NerdCaveYT ohh okay
@RepeatVR
@RepeatVR Ай бұрын
diddnt work got the error Traceback (most recent call last): File "", line 9, in File "/lib/ssd1306.py", line 118, in __init__ File "/lib/ssd1306.py", line 37, in __init__ File "/lib/ssd1306.py", line 74, in init_display File "/lib/ssd1306.py", line 123, in write_cmd OSError: [Errno 5] EIO
@pedrocabrera9041
@pedrocabrera9041 Жыл бұрын
Why did you eliminated the transcripts options?
@NerdCaveYT
@NerdCaveYT Жыл бұрын
I have not removed the transcript option from video, it might be KZbin UI or browser causing it not to be seen.
@benjaminkaah3884
@benjaminkaah3884 Жыл бұрын
How do i run the code?
@NerdCaveYT
@NerdCaveYT Жыл бұрын
I am unsure in context of what, you mean the IDE used in the video?
@benjaminkaah3884
@benjaminkaah3884 Жыл бұрын
yes @@NerdCaveYT
@alexfernandesportrai
@alexfernandesportrai 2 жыл бұрын
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 "", line 15, in OSError: [Errno 2] ENOENT >>>
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
What is line 15 it is giving the error
@alexfernandesportrai
@alexfernandesportrai 2 жыл бұрын
@@NerdCaveYT with open('/minecraft/image%s.pbm' % n, 'rb') as f: #open folder and image
@alexfernandesportrai
@alexfernandesportrai 2 жыл бұрын
@@NerdCaveYT thanks for the response. I got it working. I think it was something to do with the image numbering, also had to change some settings in EZgif. But it works!
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
@@alexfernandesportrai I think there are other methods as well I just used one I found on a blog, but some people wrote programs go to do it
@coolsink1002
@coolsink1002 2 жыл бұрын
Same ):
@newtuber7414
@newtuber7414 10 ай бұрын
Are you able to collaborate? I have a project I’m working on an I’m a newbie
@NerdCaveYT
@NerdCaveYT 10 ай бұрын
Collaborate on what project?
@ccc5226
@ccc5226 Ай бұрын
how many frames per second ?
@NerdCaveYT
@NerdCaveYT Ай бұрын
No idea, then not test it in that detail
@larsboevee9085
@larsboevee9085 2 жыл бұрын
my temperature is displaying too low do u know a fix
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
Is all the calculation correct as shown the factor that you need to multiply with
@jjaosopica
@jjaosopica 2 ай бұрын
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 "", line 1, in File "", line 4, in __W OSError: 28 ] __W(b'# MicroPython SSD1306 OLED driver, I2C and SPI interfaces from micropython import const import framebuf # register definitions SET_CONTRAST = const(0x81) SET_ENTIRE_ON = const(0xA4) SET_NORM_INV = const(0xA6) SET_DISP = const(0xAE) SET_MEM_ADDR = const(0x20) SET_COL_ADDR = const(0x21) SET_PAGE_ADDR = const(0x22) SET_DISP_START_LINE = const(0x40) SET_SEG_REMAP = const(0xA0) SET_MUX_RATIO = const(0xA8) SET_IREF_SELECT = const(0xAD) SET_COM_OUT_DIR = const(0xC0) SET_DISP_OFFSET = const(0xD3) SET_COM_PIN_CFG = const(0xDA) SET_DISP_CLK_DIV = const(0xD5) SET_PRECHARGE = const(0xD9) SET_VCOM_DESEL = const(0xDB) SET_CHARGE_PUMP = const(0x8D) # Subclassing FrameBuffer provides support for graphics primitives # docs.micropython.org/en/latest/pyboard/library/framebuf.html class SSD1306(framebuf.FrameBuffer): def __init__(self, width, height, external_vcc): self.width = width self.height = height self.external_vcc = external_vcc self.pages = '): ''). 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
@NerdCaveYT
@NerdCaveYT 2 ай бұрын
How did you try to save the library, you just copy the code library code from github and paste it in a new file and save it to the pico as ssd1306.py and then in another file you will have from ssd1306 import SSD1306_I2C and this will import the library
@ineraangs3769
@ineraangs3769 Жыл бұрын
bad tutorial does not show how to even code
@NerdCaveYT
@NerdCaveYT Жыл бұрын
did you even watch the video? You are more then welcome making a better video and I can share it to the community :) Have a nice day
@muhammedeminkose4775
@muhammedeminkose4775 2 жыл бұрын
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 "", line 9, in 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
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
you are only getting the error sometimes right, usually a bad connection has given me this error before
Raspberry Pi Pico Tutorial - Rotary Encoder
4:22
NerdCave
Рет қаралды 9 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 215 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,6 МЛН
PoE+ NVMe beats Raspberry Pi to the punch
15:31
Jeff Geerling
Рет қаралды 275 М.
Beginners Guide to I2C on the Raspberry Pi Pico (BNO055 IMU Example)
16:57
Learn Embedded Systems
Рет қаралды 77 М.
STM32 + OLED = Display Anything
18:01
Nick Electronics
Рет қаралды 23 М.
Raspberry Pi Pico
16:16
ExplainingComputers
Рет қаралды 316 М.
3 Easy @raspberrypi Pico Projects that ANYONE can tackle!
19:21
Print 'N Play
Рет қаралды 140 М.
This is how you destroy Raspberry Pi
9:10
Jeff Geerling
Рет қаралды 500 М.
Raspberry Pi Pico - SSD1306 OLED Micro Python Library and Setup
12:59
Novaspirit Tech
Рет қаралды 73 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 215 МЛН