OLED display 128 × 64 (SSD1306) with TinkerPie
A sharp little screen for readings, menus and drawings.
| Type | Displays and lights |
|---|---|
| Connect to | SENSOR port · 0x3C |
| Gives | 8 lines of text, graphics |
| Simulator | Yes: a control appears under the simulated board |
How it works
The OLED screen has 128 × 64 tiny pixels that make their own light, so it looks sharp and bright with deep blacks. The SSD1306 chip on it receives text and drawings from the board over I2C (address 0x3C).
How to wire it
OLED and LCD go into a SENSOR port (I2C). The 4-digit display and LED strips use one or two signal pins.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
oled.showText('Hello', 0)
oled.showNumber(42, 1)
oled.bar(30, 100, 3)
// Arduino C++
oled::showText("Hello", 0)
oled::showNumber(42, 1)
oled::bar(30, 100, 3) Good to know
- About 8 lines of small text, or big numbers and simple graphics.
- Uses very little power.
- Avoid showing the same bright image for days, which can wear the pixels.
Projects with the OLED display 128 × 64 (SSD1306)
Weather station on OLEDA DHT11 measures temperature and humidity; an OLED screen shows them with a bar.Sensor projectsLight meterA BH1750 measures light in lux, shown big on an OLED screen with a bar.Sensor projects
Similar modules
More projects to try
Questions
Can I try the OLED display 128 × 64 (SSD1306) without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
OLED or LCD: which should I choose?
The OLED is smaller, sharper and can draw graphics. The 16 × 2 LCD is bigger and easy to read from a distance, but shows only characters.