1. Introduction
This manual provides detailed instructions for the AITEWIN ROBOT 2.42 inch 128x64 OLED LCD Display Module. This module features a high-contrast OLED display with 128x64 pixel resolution and supports both SPI and I2C serial interfaces, making it suitable for various embedded projects including Arduino UNO R3 and C51 microcontrollers.

2. Specifications
| Feature | Description |
|---|---|
| Model Number | 2.4 2.42 inch oled module |
| Display Type | OLED |
| Display Mode | 128X64 |
| Resolution | 128*64 pixels |
| Interface | SPI / IIC (I2C) Serial Interface |
| Controller IC | SSD1309 |
| Origin | Mainland China |
| Customization | Yes |
| High-concerned chemical | None |
| Package Dimensions (approx.) | Length: 2 cm, Width: 2 cm, Height: 2 cm |
| Package Weight (approx.) | 0.06 kg |
3. Setup
3.1 Interface Selection
The module is available in two main interface types: I2C (IIC) and SPI. Ensure you have the correct module version for your project.
3.2 Pinout and Wiring
Connect the module to your microcontroller according to the pinout diagrams below. Ensure correct voltage supply and signal connections to prevent damage.
3.2.1 I2C Interface Pinout

| Pin | Description |
|---|---|
| GND | Ground |
| VDD | Power Supply (typically 3.3V - 5V) |
| SCL | Serial Clock Line (I2C Clock) |
| SDA | Serial Data Line (I2C Data) |
3.2.2 SPI Interface Pinout

| Pin | Description |
|---|---|
| GND | Ground |
| VCC | Power Supply (typically 3.3V - 5V) |
| SCLK | Serial Clock Line (SPI Clock) |
| SDA | Serial Data Line (SPI MOSI) |
| DC | Data/Command Selection |
| RES | Reset Pin |
| CS | Chip Select Pin |
3.3 Schematic Diagrams
For advanced users or troubleshooting, refer to the detailed schematic diagrams for each interface type.
3.3.1 I2C Interface Schematic

3.3.2 SPI Interface Schematic

3.4 Important Setup Note
If an ACK (Acknowledge) response is required and not received, please shorten the D2 connection on the module to fix this problem.
4. Operating Instructions
4.1 Power On and Initialization
- Ensure all connections are secure and correct.
- Apply power to your microcontroller and the OLED module (VDD/VCC).
- The display will remain blank until initialized by your microcontroller.
- Use appropriate software libraries to initialize the SSD1309 controller and send display data.
4.2 Software Libraries (for Arduino IDE)
For Arduino projects, common libraries that support SSD1309 OLED displays include:
- Adafruit SSD1306 Library: A widely used library for various OLED displays.
- U8g2 Library: A universal graphics library for embedded devices, offering extensive font and graphics capabilities.
Install these libraries via the Arduino IDE's Library Manager and refer to their examples for basic display operations.
5. Maintenance
- Handling: OLED displays are sensitive to static electricity. Always handle the module by its edges and use anti-static precautions.
- Cleaning: If necessary, gently clean the display surface with a soft, lint-free cloth. Avoid using abrasive materials or harsh chemicals.
- Storage: Store the module in its original anti-static packaging in a dry, dust-free environment when not in use. Avoid exposing it to direct sunlight or extreme temperatures.
6. Troubleshooting
- Display is blank or shows garbage:
- Check all wiring connections for continuity and correct pin assignment.
- Verify the power supply (VDD/VCC) voltage is within the specified range (e.g., 3.3V-5V).
- Ensure your software initialization code matches the module's interface (I2C address or SPI pins) and the SSD1309 controller.
- Confirm the module is receiving the reset signal correctly.
- No ACK response (I2C):
- As noted in the setup section, try shortening the D2 connection on the module.
- Verify the I2C address in your code matches the module's address (often 0x3C or 0x3D).
- Partial display or flickering:
- Check power supply stability; insufficient current can cause issues.
- Ensure data transfer rates are appropriate for the interface.
7. User Tips
- VDD Voltage: For the I2C interface version, the VDD voltage typically ranges from 3.3V to 5V. Always confirm compatibility with your microcontroller's logic levels.
- Arduino Libraries: When using Arduino, the Adafruit SSD1306 library or the U8g2 library are highly recommended for their ease of use and comprehensive features.
- Testing: Before integrating into a final project, test the module with basic example code to ensure it functions correctly.
8. Warranty and Support
For any technical support, warranty claims, or further inquiries, please contact the seller directly through the platform where the product was purchased. Provide your order details and a clear description of the issue for prompt assistance.