Want our Arduino to talk to us on screen?
Then add a small digital screen to our Arduino in minutes.
With OLED display, our simple Arduino project suddenly feel like a real gadget.
It show clear text with no backlight, low power and with super cool look.
OLED display need only two data wires and give us bright output for any project.
In this Simple Arduino OLED Display Circuit we will learn how to connect it and print our first message.
Arduino Coding:
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
void setup() {
Wire.begin();
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(SSD1306_WHITE);
display.setCursor(0, 0);
display.println("HELLO");
display.display();
}
void loop() {
}Code Explanation:
- Wire library start I2C.
- Adafruit libraries help to draw text on OLED.
- display.begin start OLED with address 0x3C.
- clearDisplay clean screen first.
- setTextSize set font size.
- setTextColor set white color.
- setCursor set where text start on screen.
- println show the text on buffer.
- display.display push buffer to OLED screen.
Circuit Working:

Parts List:
| Item | Quantity |
|---|---|
| Arduino UNO | 1 |
| SSD1306 OLED 128×64 Display | 1 |
| USB Cable | 1 |
| Breadboard | 1 |
The OLED uses I2C communication.
Only SDA and SCL lines send data from Arduino to display.
Arduino sends commands like clear, draw text, set position.
OLED receives data and lights its pixels.
Power for display comes from 5V and GND.
When Arduino runs code, it prints the text and shows on OLED.
How to Build:
To build a Simple Arduino OLED Display Circuit follow the below steps for connections:
- Gather all the parts as shown in circuit diagram.
- OLED GND pin connect to Arduino GND
- OLED VCC pin connect to Arduino 5V
- OLED SCL pin connect to Arduino A5
- OLED SDA pin connect to Arduino A4
- These four wires complete the I2C display circuit.
- Make sure wires are tight and with no loose connection.
Conclusion:
Simple Arduino OLED Display Circuit is very easy project.
Only four wires and simple code.
Good for beginners to show text, numbers and sensor results.
Display is clear and with low power.
We can expand project later with sensors or menu screens.
References:
How to make “Hello World” on Oled 128×64 SPI
Leave a Reply