diymore 030526

Diymore 2.42 inch OLED Display Module (SSD1309) User Manual

Introduction

This manual provides instructions for the Diymore 2.42 inch OLED Display Module, model 030526. This module features a 128x64 pixel resolution and is driven by an SSD1309 IC. It supports both SPI and I2C serial communication interfaces, making it suitable for various electronic projects, including those with Arduino development boards.

Diymore 2.42 inch OLED Display Module showing 'DIY MORE' logo and menu options

Figure 1 : Face avant view of the Diymore 2.42 inch OLED Display Module with example display content.

Instructions d'installation

The Diymore 2.42 inch OLED module offers flexible connectivity options. It is factory-set for SPI communication but can be configured for I2C. Ensure all connections are secure before applying power.

1. Pinout Overview

The module features a row of pins for connection. Refer to the image below for pin identification.

Dos view of the Diymore 2.42 inch OLED Display Module showing pin labels and component layout

Figure 2 : Retour view of the OLED module with pin labels (CS, DC, RES, SDA, SCL, VCC, GND) and resistor locations (R3, R4, R5).

2. SPI Communication Setup (Factory Setting)

The module is configured for 4-wire SPI communication by default. Connect the module to your microcontroller (e.g., Arduino Nano) as follows:

This configuration utilizes hardware SPI on some Arduino boards, but the example above uses specific digital pins for a software SPI or bit-banged approach, which is common for compatibility.

3. I2C Communication Setup

To enable I2C communication, a hardware modification is required:

  1. Resistor R4 to R3: Carefully move the resistor from position R4 to position R3 on the back of the module.
  2. Solder R5: Solder a 0 ohm resistor (or bridge the pads with solder) at position R5.

After modification, connect the module to your microcontroller as follows:

Note that the module's pins are labeled for I2C (SDA, SCL) even when factory-set for SPI. This can cause initial confusion, but the resistor modification correctly enables I2C functionality.

Mode d'emploi

Once the module is correctly wired, you can begin programming your microcontroller to display content. The SSD1309 driver IC is largely compatible with libraries designed for the SSD1306.

1. Software Libraries

For Arduino projects, the Bibliothèque Adafruit_SSD1306 is widely used and compatible with this module. Install it via the Arduino IDE's Library Manager.

2. Initialisation

After including the library, initialize the display object in your code, specifying the resolution (128, 64) and the communication interface (SPI or I2C) along with the corresponding pins. For example, for SPI:

#include <Adafruit_SSD1306.h>

#define OLED_MOSI 9
#define OLED_CLK 10
#define OLED_DC 11
#define OLED_CS 12
#define OLED_RESET 13

Adafruit_SSD1306 display(128, 64, OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

For I2C, after the hardware modification, the initialization might look like this:

#include <Adafruit_SSD1306.h>

#define OLED_RESET 4 // Or connect to your board's reset pin

Adafruit_SSD1306 display(128, 64, &Wire, OLED_RESET); // Using default I2C pins (SDA, SCL)

Refer to the library's examples for detailed usage, including drawing text, shapes, and bitmaps.

Diymore 2.42 inch OLED Display Module with a blank, unlit screen

Figure 3 : Face avant view of the OLED module with a blank screen, indicating it is powered off or not initialized.

Entretien

To ensure the longevity and optimal performance of your OLED display module, follow these maintenance guidelines:

Dépannage

If you encounter issues with your Diymore OLED display module, consider the following troubleshooting steps:

Caractéristiques

FonctionnalitéDétail
Résolution128 x 64 pixels
IC DriverSSD1309
Taille de l'écran en diagonale2.42 pouces
Options d'interface4-wire SPI (Default), I2C (requires modification), 8-bit interfaces
Unsupported InterfaceSPI à 3 fils
Dimensions approximatives (emballage)3.5 x 2.1 x 0.5 pouces
Poids approximatif de l'article0.634 onces
Numéro de modèle030526

Informations sur la garantie

This Diymore OLED Display Module is covered by an Garantie de 18 mois À compter de la date d'achat, cette garantie couvre les défauts de fabrication et assure le bon fonctionnement du produit dans des conditions normales d'utilisation. Veuillez conserver votre preuve d'achat pour toute réclamation au titre de la garantie.

Assistance clientèle

For any questions, technical assistance, or support regarding your Diymore 2.42 inch OLED Display Module, please contact our customer support team. We offer Assistance clientèle 24h/XNUMX to assist you with your inquiries.

For contact information, please refer to the seller's page on Amazon or the official Diymore website.