Originl project by SliderBOR on Thingaverse
- OLED info screen with IP address, host, CPU & Memory utilization
- Button for OLED, reboot and shutdown
- LED via GPIO
- Power switch
- The OLED shows information about IP address, hostname and current utilization when you push the button
- When button held for longer than ~8 sec. and released the Raspberry Pi will perform a reboot
- When button held longer than ~12 sec. and released the Raspberry Pi will shutdown
- The OLED shows information about the current action
After the Raspberry Pi is shut down, it can be switched off (only the power indicator LED on the board will remain turned on by hardware design). All other electrical components on the board are turned off (SoC, RAM etc.)
- 3D print
- 2x M2.5 screws
- 2x M2.5 nuts
- 128x32 OLED 0,91" SSD1306 blue or white (link below)
- 1x Push button 6mm x 6mm x 7mm with cap (links below)
- 1x 3 mm LED
- 1x 10K resistor
- 1x 330 resistor
- 1x small piece of PCB 2,54mm hole pitch (link below)
- 11x jumper wires (link below)
- 1x Miniature slide switch (link below)
- 1x Pin header male (2 pins) (link below)
- Hot glue
- OLED:
- Push button:
- Push button cap:
- PCB:
- Jumper wire:
- Miniature slide switch:
- Pin header:
- SSH to Pi
- Enable i2c and spi using raspi-config:
sudo raspi-config
- Interfacing Options
- SPI
- I2C
- Install the adafruit libraries and other software requirements for the OLED script to work (maybe some of them are already installed)
sudo apt-get install python3-pip
sudo pip3 install adafruit-circuitpython-ssd1306
sudo apt-get install python3-pil
sudo apt-get install -y python3-smbus
sudo apt-get install -y i2c-tools
sudo pip3 install psutil
- Check if the OLED is properly connected to I2C bus
sudo i2cdetect -y 1
You should see a device at address 3c
- Clone this repo >> git clone https://github.com/leelooauto/system_info.git
- cd system_info
- Make file executable
sudo chmod 755 system_info.py
- Check if script works
python3 system_info.py
- Autostart the script at boot
sudo nano /etc/rc.local
- Add the following line above 'exit 0'
sudo python3 /home/pi/system_info/system_info.py &