diymore 030526

Diymore 2.42 inch OLED Display Module (SSD1309) User Manual

Ro-ràdh

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

Figear 1: Aghaidh view of the Diymore 2.42 inch OLED Display Module with example display content.

Stiùiridhean rèiteachaidh

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.

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

Figear 2: Air ais 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.

Stiùireadh Obrachaidh

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 Leabharlann Adafruit_SSD1306 is widely used and compatible with this module. Install it via the Arduino IDE's Library Manager.

2. Tòiseachadh

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

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

Cumail suas

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

Fuasgladh thrioblaidean

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

Sònrachaidhean

FeartMion-fhiosrachadh
Fuasgladh128x64 piogsail
Driver ICSSD 1309
Meud sgrion trastain2.42 òirleach
Roghainnean eadar-aghaidh4-wire SPI (Default), I2C (requires modification), 8-bit interfaces
Unsupported InterfaceSPI 3-uèir
Meudan Tuairmseach (Pasgan)3.5 x 2.1 x 0.5 òirleach
Cuideam tuairmseach an nì0.634 unnsa
Modail Àireamh030526

Fiosrachadh Barantais

This Diymore OLED Display Module is covered by an Barantas 18 mìosan bho cheann-latha a’ cheannaich. Tha am barantas seo a’ còmhdach lochdan saothrachaidh agus a’ dèanamh cinnteach gu bheil an toradh ag obair mar a chaidh a mhìneachadh fo chleachdadh àbhaisteach. Feuch an glèidh thu dearbhadh do cheannach airson tagraidhean barantais.

Taic Luchd-cleachdaidh

For any questions, technical assistance, or support regarding your Diymore 2.42 inch OLED Display Module, please contact our customer support team. We offer Taic teachdaiche 24-uair to assist you with your inquiries.

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