Raspberry Pi Vital Monitor via OLED

Hi guys.

I was recently working on my Linux machine and it started going slow. First thing that came to my mind was “looks like we are running out of RAM”. I opened up the CPU and RAM monitor to confirm my hypothesis. That's when the thought of making a vitals monitor for a headless Raspberry Pi first hit me and an idea was born.


Let's get started. raspberry pi vital monitor via oled

Step 2: Required Items

The following is a list of required items:

  • Raspberry Pi + WiFi dongle or Raspberry Pi 3
  • Raspberry Pi power supply
  • 16 GB microSD card
  • microSD card reader
  • 126×64 SPI OLED display
  • Female to female jumper wires

You will also need a laptop or a PC to setup and access the Raspberry Pi.

Step 3: Flash Raspbian to Your MicroSD Card

Description: First thing we need to do is flash Raspbian on a microSD card. So head to www.raspberrypi.org and download latest version of Raspbian and extract it from the zip file. Now insert an empty microSD card in the microSD card reader. Connect the microSD card reader to your laptop or PC. Bring up the etcher application and burn the extracted Raspbian image on your microSD card.

Step 4: Configure Raspbian for WiFi and SSH

Description: To configure WiFi, open up a terminal on a Linux machine and become root user, cd into Raspbian's root directory. If you are on a Windows machine, open up Raspbian's root directory as administrator. Modify file /etc/network/interfaces as shown in the first image, i.e. change lines for wlan0 to:

auto wlan0 
iface wlan0 inet dhcp 

This will allow your router to assign a random IP address to your Raspberry Pi, but we haven't specified SSID and password for your router, right. The /etc/wpa_supplicant/wpa_supplicant.conf file lets us do exactly that. Look at the second image.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev 

To enable SSH which we will use to securely access headless Raspberry Pi. Create an empty file called ‘ssh' in boot directory of Raspbian.

Finally, unmount microSD card from your machine and take it out from the card reader to put it in Raspberry Pi.

Step 5: Connect OLED to Raspberry Pi

Description: Connect SPI OLED display to your Raspberry Pi according to attached image.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top