CoPiino Runs Small I2C OLED Display
by tswaehn in Circuits > Raspberry Pi
1806 Views, 19 Favorites, 0 Comments
CoPiino Runs Small I2C OLED Display
There are projects where I want to attach a small display for quickly figuring out the current state. A pretty good example is my recent project "CoPiino Humidity Control".
It is brilliant to have a website showing all recent charts of temperature, humidity and so. but sometimes you really need a quick update when passing by the control unit. So a small display is a - must have :)
The scope of this tiny instructable is showing how to run an OLED display on the CoPiino.
Background
There are many displays out there. I did focus on price and easy connections.
The display I used came from ebay
- SSD 1306 128-64-OLED-Display (ebay $6)
- multiple libraries for Arduino exist
- many how-to pages
- only 4wires needed
Libraries which work out of the box with CoPiino can be found here
Here are two options for SSD1306 libraries
- GeekOnFire (simpler)
- Adafruit
Both ways are described in more detail.
GeekOnFire Lib (option 1)
Step 1: Open Browser and navigate to your CoPiino
Step 2: Create a new sketch "GOF I2C OLED"
Step 3: Upload the GeekOnFire library files to your current sketch
Step 4: edit sketch (use attached *.ino files)
Step 4: Compile and run!
=> done
Adafruit Demo (option 2)
Step 1: Open Browser and navigate to your CoPiino
Step 2: Create a new sketch "Adafruit I2C OLED"
Step 3: Upload the adafruit library files to your current sketch
Step 4: edit sketch (use attached *.ino files)
Step 4: Compile and run! => done
Downloads
Customize
As we have the library running together with some demo display data. We can start to modify the shown display data to meet our needs.