How TO give your RASPBERRY PI its own OLED STATUS DISPLAY | I2C OLED DISPLAY
Bloxy Labs Bloxy Labs
1.27K subscribers
5,366 views
105

 Published On Jan 21, 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: https://nl.aliexpress.com/item/100500...

Amazon: https://www.amazon.com/Teyleten-Robot...

Schema raspberry PI4B: https://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 https://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 https://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.🧡
https://www.buymeacoffee.com/bloxylabs

Follow us on X:
  / bloxy_labs  

Credits to Michael Klements to give us a perfect instruction. Check his website: https://www.the-diy-life.com/

show more

Share/Embed