How TO give your RASPBERRY PI its own OLED STATUS DISPLAY | I2C OLED DISPLAY

Поделиться
HTML-код
  • Опубликовано: 20 янв 2024
  • In this video we show you how to setup an I2C OLED status display running on Raspberry Pi OS Bullseye. You just need a small I2C OLED display for around 2 buck, some jumper cables and of course a Raspberry Pi with a Bullseye OS. And if the pins are not already soldered to the OLED display, you need some soldering skills. If you don't want to solder, just make sure you buy a display with the pins already attached. A status display is very handy to see the IP address and the cpu temperature without logging in to your Pi.
    I2C OLED display used:
    Aliexpress: nl.aliexpress.com/item/100500...
    Amazon: www.amazon.com/Teyleten-Robot...
    Schema raspberry PI4B: www.raspberrypi.com/documenta...
    Make sure that your Pi is off and the power is disconnected before plugging or unplugging jumpers from the GPIO pins.
    How to connect your I2C OLED display to your Raspberry Pi 4B:
    GND jumper into Pin 9
    VCC jumper into Pin 1, which is a 3.3V power pin.
    Plug SCL into Pin 5
    SDA into Pin 3
    Don’t get confused between the GPIO numbers and the Pin numbers, ignore the GPIO numbers on the diagram and just go by the SDA and SCL labels and the corresponding pin numbers.
    The following instruction works for Debian Bullseye
    Stept 1 Update Your Pi and Install The CircuitPython Library
    sudo apt-get update
    sudo apt-get full-upgrade
    sudo reboot
    sudo apt-get install python3-pip
    sudo pip3 install --upgrade setuptools
    Step 2 Install The CircuitPython Library:
    cd ~
    sudo pip3 install --upgrade adafruit-python-shell
    wget raw.githubusercontent.com/ada...
    sudo python3 raspi-blinka.py
    Step 3 Check That Your Display Can Be Seen:
    sudo i2cdetect -y 1
    If the table isn't showing correctly at this point then maybe your I2C communication isn’t turned on. You can do this through the configuration utility. You can enter the utility by using the following command:
    sudo raspi-config
    It is also possible that your wiring is not correct. If you get a table full of characters (all addresses shown) then you’ve probably made a wiring mistake as this happens if SDA is shorted to ground. Go back and re-check your connections to your Pi and display and re-check that you’ve got I2C communication enabled after a reboot.
    Step 4 Install The OLED Stats Display Script
    sudo pip3 install adafruit-circuitpython-ssd1306
    sudo apt-get install python3-pil
    sudo apt install git
    git clone github.com/mklements/OLED_Sta...
    cd OLED_Stats
    python3 stats.py
    Step 5 Automating The Script To Run On Start-up
    crontab -e
    Add the following line to the end of the file to run the script:
    @reboot cd /home/pi/OLED_Stats && python3 stats.py &
    If you liked the project, please consider buying us a cup of coffee.🧡
    www.buymeacoffee.com/bloxylabs
    Follow us on X:
    / bloxy_labs
    Credits to Michael Klements to give us a perfect instruction. Check his website: www.the-diy-life.com/
  • НаукаНаука

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

  • @ayan.debnath
    @ayan.debnath 5 месяцев назад +1

    Nice.
    Pls do the same with Home Assistant Setup.

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

      If we have the time we will give it a try ;)

  • @paradoxarv
    @paradoxarv 5 месяцев назад +2

    Is this method compatible with Pi5? I get the following error : externally-managed-environment

    • @BloxyLabs
      @BloxyLabs  5 месяцев назад +3

      At this moment we only got it to work on Bullseye OS. If we get it to work on Bookworm OS (which is mostly used on the PI5) we will do a video on that ;)

    •  4 месяца назад

      ⁠@@BloxyLabspls make a tutorial on raspberry pi 5 (bookworm os). Tks so much

  • @khangvohoang9948
    @khangvohoang9948 22 дня назад

    why I always have the "error: externally-managed-environment" how can I fix this ?

    • @BloxyLabs
      @BloxyLabs  21 день назад

      Do you use Bullseye OS or Bookworm OS on your Pi?