Raspberry Pi Pico - SSD1306 OLED Micro Python Library and Setup

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ส.ค. 2024
  • How to install ssd1206/ssd1106 libraries on raspberry pi pico using thonny and coding text and images on to the oled display.
    ○○○ LINKS ○○○
    github img2bytearray ► github.com/nov...
    Microcenter RPi Pico ► micro.center/aax
    Raspberry Pi Pico ► pico.raspberry...
    jumper wires ► amzn.to/3bvVyUv
    ○○○ SHOP ○○○
    Novaspirit Shop ► teespring.com/...
    Amazon Store ► amzn.to/2AYs3dI
    ○○○ SUPPORT ○○○
    💗 Patreon ► goo.gl/xpgbzB
    ○○○ SOCIAL ○○○
    🎮 Twitch ► / novaspirit
    🎮 Pandemic Playground ► / @pandemicplayground
    ▶️ novaspirit tv ► goo.gl/uokXYr
    🎮 Novaspirit Gaming ► / @novaspiritgaming
    🐤 Twitter ► / novaspirittech
    👾 Discord chat ► / discord
    FB Group Novaspirit ► / novasspirittech
    ○○○ Send Me Stuff ○○○
    Don Hui
    PO BOX 765
    Farmingville, NY 11738
    ○○○ Music ○○○
    From Epidemic Sounds
    patreon @ / novaspirittech
    Tweet me: @ / novaspirittech
    facebook: @ / novaspirittech
    Instagram @ / novaspirittech
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission.

ความคิดเห็น • 102

  • @erikvincent5846
    @erikvincent5846 2 ปีที่แล้ว +6

    Same problem as another commenter stated.
    Traceback (most recent call last):
    File "", line 7, in
    File "/lib/ssd1306.py", line 110, in _init_
    File "/lib/ssd1306.py", line 36, in _init_
    File "/lib/ssd1306.py", line 71, in init_display
    File "/lib/ssd1306.py", line 115, in write_cmd
    OSError: [Errno 5] EIO

    • @ftw_Floris
      @ftw_Floris 6 หลายเดือนก่อน

      did you find a solution

    • @erikvincent5846
      @erikvincent5846 6 หลายเดือนก่อน

      @@ftw_Floris nope

    • @ftw_Floris
      @ftw_Floris 6 หลายเดือนก่อน

      @@erikvincent5846 i think i found a solutionn

    • @emilyemly-un9dr
      @emilyemly-un9dr 4 หลายเดือนก่อน

      @@ftw_Floris please post it

    • @ftw_Floris
      @ftw_Floris 4 หลายเดือนก่อน

      @@emilyemly-un9dr I will, I just didn’t have enough time to post

  • @timbiddulph
    @timbiddulph ปีที่แล้ว +1

    Best video I’ve seen on the 1306 and Pico, Subscribed!

  • @WispYart
    @WispYart 3 หลายเดือนก่อน

    Thank you for the tutorial! I was finally able to put my OLED together with Pico and print some stuff on the display!

  • @albrody8861
    @albrody8861 2 ปีที่แล้ว +1

    First time viewer. Your explanations are clear and easy to understand. Looking forward to following you.

  • @renzkyeastwood7520
    @renzkyeastwood7520 3 ปีที่แล้ว +9

    Great video! Could you show how to increase text size, or use another font? This would be nice.

    • @bretearwood7027
      @bretearwood7027 ปีที่แล้ว

      In the PIL module. ImageDraw and ImageFont control that. True image let's you use a downloaded font.

  • @auto117666
    @auto117666 3 ปีที่แล้ว +3

    Great video, as always. There is only so much time in the day so I feel sometimes I get to code vicariously through you. :)

  • @jyvben1520
    @jyvben1520 3 ปีที่แล้ว +1

    perfect timing, just got my 5x oled clock running using a tca9548a, may add some animation on oled 6

  • @johnhschuster
    @johnhschuster 3 ปีที่แล้ว

    Most excellent, this was my next project and you saved me quite a bit of time, I owe you a beer. Keep broadcasting!!

  • @davidlangevin893
    @davidlangevin893 ปีที่แล้ว

    Thank you very much! Very down to earth and easy to follow! It got me up and running easily. A very satisfied customer!

  • @kaylor87
    @kaylor87 ปีที่แล้ว

    Thank you so much man! I really appreciate how you explained all of the parameters and stuff that you were using. I'm just barely starting to learn microcontroller programming, and almost all of the other videos I've watched up to this point just tell you what code to enter without any explanation, which honestly isn't hardly helpful at all. I need to know WHY I am entering parameters where they are, and what they mean, or else I can't actually learn it lol. So thank you for doing that, wonderful video!

  • @brianyoon5086
    @brianyoon5086 2 ปีที่แล้ว +6

    hey, great video, but keep getting this error message,
    Traceback (most recent call last):
    File "", line 9, in
    File "/lib/ssd1306.py", line 110, in __init__
    File "/lib/ssd1306.py", line 36, in __init__
    File "/lib/ssd1306.py", line 71, in init_display
    File "/lib/ssd1306.py", line 115, in write_cmd
    OSError: [Errno 5] EIO
    any idea how to fix this?

    • @emeli-san761
      @emeli-san761 4 หลายเดือนก่อน

      did you solve it? i am turning crazy omg

  • @monacofranze4323
    @monacofranze4323 3 ปีที่แล้ว +1

    Thank you for your Video. It is easy to understand und very well made. I just startet with the Pico and bought a ssd1306 and a BME280, so i hope to be able to programme a small weather station with the Pico. This Video is one Step on the ladder to do so ;)

  • @ItsJGonzo
    @ItsJGonzo 2 ปีที่แล้ว

    Thank you! You inspire me to learn what you just did.

  • @rollandphaneuf2793
    @rollandphaneuf2793 2 ปีที่แล้ว

    I love this video with a lot of explanation. It work first time. I use this mighty 1" screen to identify my robots. Now they will have their own logo.

  • @sykoremag
    @sykoremag ปีที่แล้ว

    Thank you so much this is the only tutorial with full details

  • @Mark-tu1sv
    @Mark-tu1sv 2 ปีที่แล้ว

    really like your video, especially the Pi 4 in the car. I'm thinking to put one in too.

  • @gravestoner2488
    @gravestoner2488 3 ปีที่แล้ว

    Sweet! I have an oled i haven't used yet and my picos will be here any day now :D thanks

  • @TheRealFrankWizza
    @TheRealFrankWizza 3 ปีที่แล้ว

    Your tutorials are pretty good man. Quick and to the point.
    Do you know anything about ROS?

  • @shaytal100
    @shaytal100 3 ปีที่แล้ว +10

    "An oled lcd ..."

  • @n_tech3861
    @n_tech3861 3 ปีที่แล้ว +1

    That was such an amazing tutorial Thanks a lot🙌🙌🙌

  • @ravkhangurra7522
    @ravkhangurra7522 2 ปีที่แล้ว +1

    Great video, can you advise if this solution can be used with a raspberry pi 4?

  • @simoncowen4985
    @simoncowen4985 ปีที่แล้ว

    Thankyou really enjoyed following it. 🙂

  • @reyanshkhobragade5822
    @reyanshkhobragade5822 3 ปีที่แล้ว

    Wow this looks cool! Nice video 👍👍

  • @solracthegreat1002
    @solracthegreat1002 3 ปีที่แล้ว

    Many thanks can you show how you connected the pins from the PICO to the Display??

  • @gravestoner2488
    @gravestoner2488 3 ปีที่แล้ว

    Instead of buying a pack of precut wires, I just bought diff color rolls of solid 22ga wire. Probably much more cost efficient.

  • @AlexAmayaGuitar
    @AlexAmayaGuitar 3 ปีที่แล้ว +6

    Hi thanks for you video, I have errors :(
    Traceback (most recent call last):
    File "", line 10, in
    File "/lib/ssd1306.py", line 110, in __init__
    File "/lib/ssd1306.py", line 36, in __init__
    File "/lib/ssd1306.py", line 71, in init_display
    File "/lib/ssd1306.py", line 115, in write_cmd
    OSError: 5
    thanks for you reply!

    • @dubomatik
      @dubomatik 3 ปีที่แล้ว +1

      I have the same issue and can't find out why... :'(
      Did you solve this ?

    • @AlexAmayaGuitar
      @AlexAmayaGuitar 3 ปีที่แล้ว

      @@dubomatik no bro still same :(

    • @johncj75
      @johncj75 3 ปีที่แล้ว +1

      I got that error when I had forgot to connect ground from the pico to the oled.

    • @AlexAmayaGuitar
      @AlexAmayaGuitar 3 ปีที่แล้ว +1

      @@johncj75 Hey bro! Thanks, now works!! :)

    • @clintcret
      @clintcret 3 ปีที่แล้ว

      @@johncj75 still has error

  • @jin7jin531
    @jin7jin531 3 ปีที่แล้ว

    Awesome..keep it up Don 👍🏻

  • @torque6389
    @torque6389 ปีที่แล้ว

    Very helpful video, thank you!

  • @samratbose5849
    @samratbose5849 7 หลายเดือนก่อน

    Traceback (most recent call last):
    File "", line 12, in
    File "/lib/ssd1306.py", line 110, in __init__
    File "/lib/ssd1306.py", line 36, in __init__
    File "/lib/ssd1306.py", line 71, in init_display
    File "/lib/ssd1306.py", line 115, in write_cmd
    OSError: [Errno 5] EIO

    • @69x
      @69x 5 หลายเดือนก่อน

      did you fix this?

  • @larryplatzek9017
    @larryplatzek9017 9 หลายเดือนก่อน

    I think your video was great when you made it but I have trouble with the ssd1306 it does not install, any suggestions?

  • @richardturnnidge
    @richardturnnidge 3 ปีที่แล้ว

    I am trying to move a sprite type object over a background. Perhaps you could explain how to blit an image with a mask onto a background as I am struggling to find a way?

  • @bacardicomeon6972
    @bacardicomeon6972 3 ปีที่แล้ว +1

    using win10, and tried to run .. got this error :
    File "img2bytearray.py", line 7

    ^
    SyntaxError: invalid syntax

    • @Kimchi_Studios
      @Kimchi_Studios 3 ปีที่แล้ว

      I just figured it out for Windows 10!
      in the cmd type:
      1. cd followed by a space
      2. drag and drop the folder that img2bytearray.py is in to the cmd after the space. It will paste your path to it in quotes. Add a space after it.
      3. click on your image file and select properties and copy the path for that file and paste it exactly into the cmd followed by a space and the 64 64 after that for the height and width.
      4. If you get more errors it might be because you have multiple versions of python installed so I recommend uninstalling all of python and reinstalling it, pip, and pillow (google it, super easy and quick).
      So my full line of code with the drag and drop method looked like:
      1.
      cd "C:\Users\stupidComputerName\Documents\Raspberry Pi\img2bytearray-main"
      and then
      2.
      python3 img2bytearray.py "C:\Users\stupidComputerName\Documents\Raspberry Pi\img2bytearray-main\dogpic.jpg" 64 64
      Your paths will obviously be different.
      Hope it works for you!

  • @zFrank_
    @zFrank_ 4 หลายเดือนก่อน

    how can i install the ssd1306 library using vs code?

  • @auglau1
    @auglau1 4 หลายเดือนก่อน

    Great video
    How about hx711

  • @abymohanan9403
    @abymohanan9403 3 ปีที่แล้ว

    Thank you so much for this video

  • @delvorin1841
    @delvorin1841 3 ปีที่แล้ว

    Hey Don and fellow followers, I see a small project for you guys to try and solve. Reiterate the code for the image conversion to output as a txt file as to eliminate needing to copy and paste it.
    Ps good video, Don.

  • @ggandcompany1
    @ggandcompany1 3 ปีที่แล้ว

    Great Video!!! can you do the same example in circuitpython ? I have a project that I want to add a ssd1306 to, but I am have trouble... thank you!!!

  • @mondogeo7890
    @mondogeo7890 3 ปีที่แล้ว

    Well done! Thank you!

  • @alexnoskovarg3844
    @alexnoskovarg3844 2 ปีที่แล้ว

    Genio, me solucionaste problema

  • @rickroller0127
    @rickroller0127 8 หลายเดือนก่อน

    Is is possible to mirror the image?

  • @shashankshekharpandey4678
    @shashankshekharpandey4678 3 ปีที่แล้ว

    hey sir ,
    I have a doubt that how to change font size of the text.
    btw really nice and concise video
    Thank you!

  • @orkuncamar
    @orkuncamar 2 ปีที่แล้ว

    i like it. i loved the linux. Thank you ...

  • @ikorbln
    @ikorbln 3 ปีที่แล้ว +1

    i have a problem with thonny on windows. it cant write the code to the pico. everytime it say that it is write protected. i must save it first to my pc and copy it over to the pico. thats a little odd. but anyway, i like your python videos. they realy help a lot. i have a lot of fun with it.

    • @NovaspiritTech
      @NovaspiritTech  3 ปีที่แล้ว +1

      It's permission. Try running it in administration mode and see if you get the same write protect error. If not they check your permissions

    • @ikorbln
      @ikorbln 3 ปีที่แล้ว

      @@NovaspiritTech yes, also with admin-mode i cant save direkt on the pico. i will try it with a ubuntu notebook.....

    • @jyvben1520
      @jyvben1520 3 ปีที่แล้ว +1

      @@ikorbln thonny on ubuntu works fine, need to add $USER to dialout group + reboot or logout/in

    • @ikorbln
      @ikorbln 3 ปีที่แล้ว

      @@jyvben1520 ok, when i install the raspberry firmware, everything works fine. but when i install tha adafruit_circuitpython firmeware, then i have this issue with the write protect

  • @rhythm7865
    @rhythm7865 2 ปีที่แล้ว

    Great video can you show just the wires

  • @tubeDude48
    @tubeDude48 ปีที่แล้ว

    How about the image for the novaspirit. And what editor do you use to create the image.jpg

  • @BooksAndShitButNotLiterally
    @BooksAndShitButNotLiterally 2 ปีที่แล้ว

    This isn't working for me, the screen just displays noise instead of text :(

  • @xgqfrms
    @xgqfrms ปีที่แล้ว

    Why not automatically convert the image to a buffer in your code by importing the img2bytearray package? Copying and pasting manually is so inconvenient.

  • @grimnecksnapper3789
    @grimnecksnapper3789 3 ปีที่แล้ว

    So Cool. Awesome Video.

  • @brad32601
    @brad32601 ปีที่แล้ว

    How would you do images with CircuitPython?

  • @scottwilliams895
    @scottwilliams895 3 ปีที่แล้ว

    @Novaspirit Tech, Which track from Epidemic Sounds do you use for your theme music?

    • @scottwilliams895
      @scottwilliams895 3 ปีที่แล้ว

      I just noticed @Undecided with Matt Ferrell using the same
      (tho it took me a couple minutes to figure out which channel I Sub that I knew it from!)
      th-cam.com/video/VWwKqSzakYU/w-d-xo.html

  • @SoggyCashew
    @SoggyCashew 2 ปีที่แล้ว

    where is a online converter and what format am i converting to?

  • @warandv6614
    @warandv6614 3 ปีที่แล้ว

    is there a display that can receive input ?

  • @Kumodot
    @Kumodot 2 ปีที่แล้ว

    I got errors when installing ssd1306 from thommy. :(

  • @chirots
    @chirots 2 ปีที่แล้ว

    I have got a problem with PIL

  • @kingoftennis94
    @kingoftennis94 2 ปีที่แล้ว

    Oled lcd?

  • @tharunv1885
    @tharunv1885 3 ปีที่แล้ว

    How to display unicode characters

  • @tomjairusportea8969
    @tomjairusportea8969 3 ปีที่แล้ว

    The ssd1306 library cannot be install in Thonny

  • @skyquake._
    @skyquake._ 3 ปีที่แล้ว

    Can you please do an animate using while loop .❤️❤️ It's a great video. Sir

  • @softwareagence5662
    @softwareagence5662 2 ปีที่แล้ว

    Excellent

  • @dimitrijepavlovic2887
    @dimitrijepavlovic2887 3 ปีที่แล้ว

    Whats that linux distro

  • @inetfly3651
    @inetfly3651 2 ปีที่แล้ว

    hey don, thanks for your video.
    I can't install ssd1306.py , I got a error like "You may need to reconnect, Stop/Restart or hard-reset your device.Error ManagementError"
    Somebody konw what's wrong . Thanks for answer the question.

  • @user-xp3cb3zt9h
    @user-xp3cb3zt9h 7 หลายเดือนก่อน

    Do u teach or can u help with a project I have going, I am willing to pay for advice and guidance

  • @dawidmac2640
    @dawidmac2640 2 ปีที่แล้ว +2

    I have problem:
    Traceback (most recent call last):
    File "", line 7, in
    File "/lib/ssd1306.py", line 110, in __init__
    File "/lib/ssd1306.py", line 36, in __init__
    File "/lib/ssd1306.py", line 71, in init_display
    File "/lib/ssd1306.py", line 115, in write_cmd
    OSError: [Errno 5] EIO

    • @imadeityesterday
      @imadeityesterday ปีที่แล้ว +1

      Same here. Is there already a solution for this?

    • @mickeyquinn2000
      @mickeyquinn2000 ปีที่แล้ว +1

      @@imadeityesterdayI had the same and i ran thonny as admin on windows, worked fine!

  • @mattantonelli4273
    @mattantonelli4273 2 ปีที่แล้ว

    great but thonny is a nightmare

  • @Armand79th
    @Armand79th ปีที่แล้ว

    FYI, it's THonny.. as-in PyTHonny..

  • @harold_frost
    @harold_frost 3 ปีที่แล้ว

    Are you using Budgie Desktop?

  • @deadly_dave
    @deadly_dave 3 ปีที่แล้ว

    I'm looking for a little help from anyone willing to offer it.
    I'm working on my Pico with MicroPython.
    I have managed to blink a few LED's and make a POT dim and brighten anther LED.
    I then went onto try an OLED (0.91" SSD1306 OLED Display 128 * 32)
    I think I have it wired up correctly but that is not where my issue is.
    I went to 'tools' and 'Manage Packages' and searched for SSD1306 and tried to install the library but I get the following error msg. (It doesn't seem to matter which library I try too install I always get the same error)
    Installing to: C:\Users\\AppData\Local\Temp\tmpvzwv1kb7\
    micropip returned with error code 1
    Any help would be greatly appreciated.

  • @steffanjansenvanvuuren3257
    @steffanjansenvanvuuren3257 ปีที่แล้ว

    How does Python connect to the Raspberry Pi? Automatically or what?
    You just open and then Pi is connected, not even explaining how that happened?

  • @davidepacini377
    @davidepacini377 8 หลายเดือนก่อน

    non va lo achermo

  • @davidepacini377
    @davidepacini377 8 หลายเดือนก่อน

    ok

  • @cassio2999
    @cassio2999 2 ปีที่แล้ว

    zzzzzzzzzzzz

  • @ahoj113
    @ahoj113 3 ปีที่แล้ว +2

    I’m 69th like lol