1. Танилцуулга
This manual provides detailed instructions for the setup, operation, and integration of the DIYmall 0.96-inch I2C OLED Display Module, featuring the SSD1306 driver. This compact display is ideal for various microcontroller projects, including those involving Arduino, ESP32, and Raspberry Pi.
Үүнд юу багтсан:
- 1 x DIYmall 0.96" White OLED Module

Зураг 1: Урд view of the DIYmall 0.96" White OLED Display Module.
2. Техникийн үзүүлэлтүүд
| Онцлог | Дэлгэрэнгүй |
|---|---|
| Дэлгэцийн хэмжээ | 0.96 инч |
| Дэлгэцийн төрөл | OLED (Organic Light Emitting Diode) |
| Шийдвэр | 128x64 пиксел |
| Driver IC | SSD1306 |
| Интерфэйс | I2C (Inter-Integrated Circuit) / IIC Serial |
| Үйл ажиллагааны ботьtage | 3.3V - 5V |
| Өнгө | Цагаан |
| Суурилуулах төрөл | Самбар самбар |
| Холбогч төрөл | Цоорхойгоор |
| Бүтээгдэхүүний хэмжээс | 0.96"W x 0.96"H (approx. 24.4mm x 24.4mm) |
| Загварын дугаар | 0.96 taiwan oled screen |
| UPC | 702795761066, 702795765828 |

Figure 2: Technical drawing with dimensions of the OLED module.
3. Тохиргоо ба суурилуулалт
This section guides you through connecting the OLED module to common microcontrollers and preparing your development environment.
3.1 Pinout and I2C Address
The module typically features four pins: VCC, GND, SCL, and SDA. The default I2C address for this module is 0x3C. Some modules may have jumpers to change the address to 0x3D.

Figure 3: Back of the OLED module, highlighting the I2C address configuration.
3.2 Wiring with Arduino
To connect the 0.96" OLED module to an Arduino board, follow these connections:
- VCC to Arduino 5V (or 3.3V, depending on your Arduino model and module compatibility)
- GND to Arduino GND
- SCL to Arduino A5 (for Uno/Nano) or D21 (for Mega)
- SDA to Arduino A4 (for Uno/Nano) or D20 (for Mega)

Зураг 4: Жишээ ньample wiring of the OLED module with an Arduino board. Note the I2C address change to 0x3C in the code.
3.3 Wiring with NodeMCU (ESP8266)
For NodeMCU (ESP8266) boards, use the following connections:
- VCC to NodeMCU 3V3
- GND to NodeMCU GND
- SCL to NodeMCU D1
- SDA to NodeMCU D2

Зураг 5: Жишээ ньample wiring of the OLED module with a NodeMCU ESP8266 board.
4. Ашиглалтын заавар
To operate the OLED display, you will need to install specific libraries in your Arduino IDE and upload exampкод.
4.1 Library Installation
Install the following libraries in your Arduino IDE via the Library Manager (Sketch > Include Library > Manage Libraries...):
- Adafruit SSD1306
- Adafruit GFX номын сан
- RTClib (if using a Real-Time Clock module)
4.2 Жишээ ньample Code and Usage
After wiring and installing libraries, you can upload example sketches to test the display. Ensure the I2C address in your code matches the module's address (typically 0x3C).
For detailed instructions on connecting the ESP32 with a DS3231 clock module and the OLED, refer to the official DIYmall video below:
Video 1: Tutorial on connecting ESP32 with DS3231 clock module and OLED display, provided by DIYmall.
5. Алдаа засах
- Display is blank after power-up: The OLED display will appear blank until it is correctly initialized by your microcontroller and code. Ensure your code is uploaded and running, and the I2C address in the code matches the module's address (0x3C or 0x3D).
- Incorrect display output: Double-check your wiring connections for SDA, SCL, VCC, and GND. Verify that the correct libraries are installed and included in your sketch.
- Compilation errors: Ensure you have the latest versions of the Adafruit SSD1306 and Adafruit GFX libraries. Some older library versions or Arduino IDE versions might require minor code adjustments (e.g., adding `const` to `PROGMEM` definitions).
- I2C communication issues: Use an I2C scanner sketch to confirm the module's address. Ensure no other I2C devices are conflicting on the bus.
- Эрчим хүчний асуудал: While the module supports 3.3V-5V, ensure your power supply is stable and provides sufficient current.
6. Засвар үйлчилгээ
The DIYmall 0.96" OLED Display Module is a robust electronic component. Follow these guidelines for optimal performance and longevity:
- Харьцуулах: Handle the module by its edges to avoid touching the display surface or delicate components.
- Хадгалах: Store in a dry, anti-static environment, away from direct sunlight and extreme temperatures.
- Цэвэрлэгээ: If necessary, gently clean the display surface with a soft, lint-free cloth. Avoid abrasive materials or harsh chemicals.
- Эрчим хүчний хангамж: Заасан эзэлхүүний доторх тогтвортой цахилгаан хангамжийг үргэлж ашиглаарайtage хүрээ (3.3V-5V).
7. Баталгаат хугацаа ба дэмжлэг
For warranty information, technical support, or further assistance, please refer to the official DIYmall store or contact their customer service directly. Product support resources, including additional tutorials and code examples, may be available on the DIYmall webсайт.





