SSD1306 OLED I2C Display on Raspberry Pi 5 with Linux User Space C Driver and Raspberry Pi OS

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 15

  • @mohsinjessa8951
    @mohsinjessa8951 2 месяца назад +2

    Thanks for this video. Helped me get the SSD1306 connected and tested to RPi5. However, towards the end of the video you mention about Python examples with RPi5 using GPIO. I could not find any videos for that - did I miss it?

    • @LeonAnavi
      @LeonAnavi  2 месяца назад +1

      Glad the video helps. No, I don't have video with Python3 for the OLED. I should probably do some tutorials with Python.
      Btw earlier today someone opened a GitHub issue with question about the Python example (I am not sure if you opened it or someone else). I provided some ideas how to install Python3 luma.oled library. Here is the link: github.com/AnaviTechnology/anavi-examples/issues/11

    • @mohsinjessa8951
      @mohsinjessa8951 2 месяца назад

      @@LeonAnavi Yes, python examples would be good. But I see access to gpio has been changed with RPi5. Still trying to figure out which library to use in python for Rpi5 gpio.

  • @francoislepron2301
    @francoislepron2301 8 месяцев назад +1

    Awesome. Is there bigger size and higher resolution for this kind of display and is there touch screen as well ? Thank you.

    • @LeonAnavi
      @LeonAnavi  8 месяцев назад

      No, particularly the SSD1306 supports max resolution of 128x64px. There are other similar controllers that support bigger sizes and resolutions. For a reference please have a look at the list of controllers from this popular Arduino library: github.com/olikraus/u8g2?tab=readme-ov-file
      There are similar displays with touchscreen from brands like Winstar (they will require different and additional drivers to work).

  • @enthucheyyum9776
    @enthucheyyum9776 5 месяцев назад

    hi sir I tried this with Rpi 4 model B here the problem I am facing During the initialization it going to else if (ssd1306_oled_load_resolution() != 0)
    {
    printf("please do init oled module with correction resolution first!
    ");
    return 1;
    } always return this can you help me?
    Thank YOU

    • @LeonAnavi
      @LeonAnavi  5 месяцев назад

      Initialize the mini OLED display with resolution 128x64px using ssd1306_linux:
      ./ssd1306_bin -n 1 -I 128x64

  • @Dirtbikesaresick
    @Dirtbikesaresick 6 месяцев назад

    Hey I’ve got the pi five and everything has worked but I would like to make it display stats and I just. Don’t understand the link in the reply is there any chance you could make a video or explain in detail what exactly I need to do and how (thanks)

    • @LeonAnavi
      @LeonAnavi  6 месяцев назад

      What kind of stats do you want to show on the display? Do you have the same SSD1306 I2C mini display? Have you tried ssd1306_linux from GitHub as shown in this video to interact with the display?

  •  8 месяцев назад

    Thanks for your videos! Beyond text strings like on video, can we display some of Rasp Pi stats, ex: ip address, cpu temp ...? jusst a question

    • @LeonAnavi
      @LeonAnavi  8 месяцев назад +2

      Yes, absolutely. Actually, with ANAVI Info uHAT add-on board and the sensors included in the kit like HTU21D you can do exactly this. As alternative to the C driver shown in this video, there is even a Python 3 demo script to show the IP address: github.com/AnaviTechnology/anavi-examples/blob/master/peripherals/OLED-SSD1306/python/OLED-SSD1306.py

  • @paradoxarv
    @paradoxarv 8 месяцев назад

    What did you do to resolve the no oled attached to /dev/i2c-1 error? Thank you!

    • @LeonAnavi
      @LeonAnavi  7 месяцев назад +1

      Open a terminal and execute command "i2cdetect -y 1" to check if the OLED display is detected as an I2C device as shown in 2:35. If not double check the hardware wiring and make sure I2C is enabled through raspi-config.

  • @airjason13
    @airjason13 6 месяцев назад

    Good stuff