Thursday, May 22, 2025

How to Test a 1.3" OLED Display with Arduino | HELLO WORLD!

OLED displays are a great way to bring interactivity and visual feedback to your electronics projects. In this tutorial, we’ll walk you through how to test a 1.3-inch OLED display using an Arduino Uno and the GyverOLED library — one of the simplest and fastest ways to get started with I²C OLED modules using the SSH1106 driver.

OED 1.3" with Arduino

๐Ÿ“ OLED 1.3" Specifications

Here’s a quick overview of the OLED 1.3"specifications:
OLED 1.3" specifications

Components Required

To get started, you will need the following components:
Components required for this tutorial

✅ Arduino UNO board
✅ OLED 1.3"
✅ Jumper Wires
✅ USB cable for Arduino

๐Ÿ› ️ Circuit Wiring

Here’s how to wire the components correctly:
Connection OLED 1.3"

The connection between OLED 1.3" and Arduino

Wiring diagram
✅ VCC (OLED) → 5V
✅ GND (OLED)→ GND
✅ SCL (OLED) → A5
✅ SDA (OLED) → A4

Install the GyverOLED Library

To make coding easy, we’ll use the GyverOLED library by AlexGyver. Open the Arduino IDE > Go to Sketch > Include Library > Manage Libraries > In the Library Manager, search for "GyverOLED" > Click Install.
This library is lightweight, fast, and supports SSH1106 out of the box.

Programming the Arduino

Here’s a simple sketch to display "HELLO WORLD" on OLED, or you can download the code HERE.
#include <GyverOLED.h>

GyverOLED oled;

void setup() {
  oled.init();  // Initialize the OLED
  oled.clear(); // Clear the display
  oled.setScale(2); // Set text size slightly smaller
  oled.setCursor(10, 2); // Set cursor position
  oled.print("HELLO WORLD"); // Display text
  oled.update(); // Refresh the display
}

void loop() {
  // Nothing needed in loop for a simple test
}
Open Arduino IDE and copy-paste the code

๐Ÿงช Test

Once the code is uploaded and your wiring is correct, you should see "HELLO WORLD". Displayed on the OLED in white or blue, depending on your module. If nothing shows up, double-check your I²C connections and OLED address.
"HELLO WORLD" blue display characters

๐Ÿ“Œ Conclusion

And that’s it! You’ve successfully tested your 1.3” OLED display using Arduino and the GyverOLED library. What you learned: OLED wiring via I2C, installing and using GyverOLED, and displaying text using Arduino.

๐ŸŽฅ Watch the Full Video Tutorial


๐Ÿ”” If you found this guide helpful, share it with fellow makers! For more tutorials, subscribe to our YouTube channel and follow us on social media. ๐Ÿš€

#arduino  #oled #helloworld #display #diyprojects

No comments:

Post a Comment