The SSD1351 is a low-power OLED display driver manufactured by Waveshare, with the part ID "1.5inch RGB OLED Module." It supports a resolution of 128x128 pixels and offers vibrant colors and high contrast, making it ideal for small display applications. The module communicates via SPI or I2C interfaces, making it compatible with a wide range of microcontrollers and embedded systems.
The SSD1351 module is designed for high-performance, low-power operation. Below are its key technical details:
Parameter | Value |
---|---|
Manufacturer | Waveshare |
Part ID | 1.5inch RGB OLED Module |
Resolution | 128x128 pixels |
Display Type | OLED (Organic Light Emitting Diode) |
Interface | SPI / I2C |
Operating Voltage | 3.3V / 5V |
Power Consumption | Low power |
Pixel Color Depth | 16-bit (65,536 colors) |
Viewing Angle | >160° |
Operating Temperature | -40°C to 70°C |
Dimensions | 1.5 inches diagonal |
The SSD1351 module has a 7-pin interface for SPI communication. Below is the pinout:
Pin Number | Pin Name | Description |
---|---|---|
1 | GND | Ground pin |
2 | VCC | Power supply (3.3V or 5V) |
3 | SCL | Serial Clock Line (SPI clock input) |
4 | SDA | Serial Data Line (SPI data input) |
5 | RES | Reset pin (active low) |
6 | DC | Data/Command control pin |
7 | CS | Chip Select (active low) |
The SSD1351 module is straightforward to use in embedded systems. Below are the steps and considerations for integrating it into your project.
VCC
pin to a 3.3V or 5V power source and the GND
pin to ground.SCL
, SDA
, RES
, DC
, and CS
pins to the corresponding SPI pins on your microcontroller.Below is an example of how to connect and program the SSD1351 module with an Arduino UNO using the SPI interface.
SSD1351 Pin | Arduino UNO Pin |
---|---|
GND | GND |
VCC | 5V |
SCL | D13 (SCK) |
SDA | D11 (MOSI) |
RES | D8 |
DC | D9 |
CS | D10 |
#include <Adafruit_GFX.h> // Include Adafruit GFX library for graphics
#include <Adafruit_SSD1351.h> // Include Adafruit SSD1351 library for the display
// Define pin connections
#define OLED_CS 10 // Chip Select pin
#define OLED_DC 9 // Data/Command pin
#define OLED_RST 8 // Reset pin
// Create an instance of the SSD1351 display
Adafruit_SSD1351 display = Adafruit_SSD1351(128, 128, &SPI, OLED_CS, OLED_DC, OLED_RST);
void setup() {
// Initialize the display
display.begin();
// Clear the display with a black background
display.fillScreen(SSD1351_BLACK);
// Display a message
display.setTextColor(SSD1351_WHITE);
display.setTextSize(1);
display.setCursor(0, 0);
display.println("Hello, SSD1351!");
}
void loop() {
// Add your code here to update the display
}
RES
pin to ensure proper initialization.Display Not Turning On
Flickering or Artifacts on the Display
No Response from the Display
Partial or Distorted Graphics
DC
pin is connected to the correct microcontroller pin.Q: Can I use the SSD1351 with a 5V microcontroller?
A: Yes, the module supports both 3.3V and 5V logic levels, making it compatible with 5V microcontrollers like Arduino UNO.
Q: Does the SSD1351 support I2C communication?
A: While the SSD1351 driver supports I2C, the Waveshare 1.5inch RGB OLED Module is typically configured for SPI communication.
Q: How do I display images on the SSD1351?
A: Use a graphics library like Adafruit GFX to load and render bitmap images onto the display.
Q: What is the maximum refresh rate of the SSD1351?
A: The refresh rate depends on the SPI clock speed and the microcontroller's processing power. Typically, it is sufficient for smooth animations.
By following this documentation, you can successfully integrate and use the SSD1351 module in your projects!