Skip to content

leelooauto/system_info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPI System Info

Originl project by SliderBOR on Thingaverse

system info Features

  • OLED info screen with IP address, host, CPU & Memory utilization
  • Button for OLED, reboot and shutdown
  • LED via GPIO
  • Power switch

system info Functions

  • 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.)

Material needed

  • 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

Links (examples only)

Python Script

  1. SSH to Pi
  2. Enable i2c and spi using raspi-config:
sudo raspi-config
  • Interfacing Options
    • SPI
    • I2C
  1. 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
  1. Check if the OLED is properly connected to I2C bus
sudo i2cdetect -y 1

You should see a device at address 3c

  1. Clone this repo >> git clone https://github.com/leelooauto/system_info.git
  2. cd system_info
  3. Make file executable
sudo chmod 755 system_info.py
  1. Check if script works
python3 system_info.py
  1. Autostart the script at boot
sudo nano /etc/rc.local
  1. Add the following line above 'exit 0'
sudo python3 /home/pi/system_info/system_info.py &

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages