The OLED 128x64 I2C Monochrome Display is a compact and efficient display module that features a resolution of 128x64 pixels. Utilizing I2C communication, this display allows for easy integration with various microcontrollers, including popular platforms like Arduino. Its low power consumption makes it ideal for battery-operated devices and low-power applications. The display is well-suited for showing text, simple graphics, and user interfaces in embedded systems.
Specification | Value |
---|---|
Display Type | OLED |
Resolution | 128 x 64 pixels |
Interface | I2C |
Operating Voltage | 3.3V - 5V |
Current Consumption | ~20 mA (max) |
Dimensions | 27.0 x 27.0 mm |
Weight | ~10 g |
Pin Name | Pin Number | Description |
---|---|---|
VDD | 1 | Power supply (3.3V - 5V) |
GND | 2 | Ground connection |
SCL | 3 | I2C Clock line |
SDA | 4 | I2C Data line |
Wiring the Display:
Library Installation:
Adafruit_SSD1306
and Adafruit_GFX
libraries via the Library Manager.Sample Code: Below is a simple example code to initialize the OLED display and display "Hello, World!".
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// Define display dimensions
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
// Create display object
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
void setup() {
// Initialize the display
display.begin(SSD1306_I2C_ADDRESS, 0x3C);
display.clearDisplay(); // Clear the buffer
display.setTextSize(1); // Set text size
display.setTextColor(SSD1306_WHITE); // Set text color
display.setCursor(0, 0); // Set cursor position
display.println("Hello, World!"); // Print text
display.display(); // Display the buffer
}
void loop() {
// Nothing to do here
}
Display Not Turning On:
Garbage Characters Displayed:
Flickering Display:
By following this documentation, users can effectively integrate and utilize the OLED 128x64 I2C Monochrome Display in their projects, ensuring a smooth and successful experience.