1. Product Overview
The Estardyn 1.3" SH1107 OLED Display Module is a compact, high-contrast monochrome display suitable for various embedded projects, including those based on Arduino and ESP32 microcontrollers. It features a 128x64 pixel resolution and supports both SPI and I2C communication interfaces, offering flexibility in integration.
This module is designed for DIY enthusiasts and developers looking for a clear and efficient display solution for their projects.
2. Specifications
| Feature | Specification |
|---|---|
| Display Type | OLED |
| Model Number | SH1107 OLED Display Module |
| Screen Size | 1.3 inches |
| Resolution | 128x64 pixels |
| Communication Interface | SPI / I2C (selectable) |
| Display Mode | Monochrome |
| Brand | Estardyn |
| Origin | Mainland China |
| Package Weight | 0.005 kg |
| Package Dimensions (L x W x H) | 5 cm x 5 cm x 2 cm |
3. Setup and Connection
The SH1107 OLED module supports both I2C and SPI communication protocols. The interface can be selected using jumpers on the back of the module. Ensure the correct interface is selected before wiring.
3.1 Pinout
The module typically features the following pins:
- GND: Ground connection.
- VCC: Power supply (usually 3.3V or 5V, check module specifics).
- SCL: Serial Clock (for both I2C and SPI).
- SDA: Serial Data (for I2C) or MOSI (for SPI).
- RES (or RST): Reset pin (optional, sometimes tied to VCC or controlled by software).
- DC (or D/C): Data/Command pin (for SPI).
- CS: Chip Select pin (for SPI).
3.2 I2C Connection (Typical)
For I2C communication, connect the module to your microcontroller as follows:
- GND → Microcontroller GND
- VCC → Microcontroller 3.3V/5V
- SCL → Microcontroller SCL (A5 on Arduino Uno, GPIO22 on ESP32)
- SDA → Microcontroller SDA (A4 on Arduino Uno, GPIO21 on ESP32)
Ensure the I2C jumpers on the back of the module are correctly configured.
3.3 SPI Connection (Typical)
For SPI communication, connect the module to your microcontroller as follows:
- GND → Microcontroller GND
- VCC → Microcontroller 3.3V/5V
- SCL → Microcontroller SCK (D13 on Arduino Uno, GPIO18 on ESP32)
- SDA (MOSI) → Microcontroller MOSI (D11 on Arduino Uno, GPIO23 on ESP32)
- DC → Microcontroller Digital Pin (e.g., D9 on Arduino Uno, GPIO16 on ESP32)
- CS → Microcontroller Digital Pin (e.g., D10 on Arduino Uno, GPIO5 on ESP32)
- RES → Microcontroller Digital Pin (e.g., D8 on Arduino Uno, GPIO17 on ESP32)
Ensure the SPI jumpers on the back of the module are correctly configured.
4. Operating Instructions
To operate the OLED display, you will need to use a compatible library for your chosen microcontroller platform (e.g., Arduino, ESP32). For SH1107-based OLEDs, popular libraries include:
- Adafruit GFX Library: A core graphics library.
- Adafruit SH110X Library: A specific driver for SH1107 controllers.
- U8g2 Library: A universal graphics library for embedded devices, supporting a wide range of displays including SH1107.
Refer to the documentation of your chosen library for specific initialization and drawing functions. Basic steps typically involve:
- Include the necessary library files in your project.
- Initialize the display object with the correct communication protocol (I2C address or SPI pins).
- Call display functions to draw text, shapes, or bitmaps.
- Use a
display()orupdate()function to push the buffer content to the physical screen.
5. Maintenance
The Estardyn SH1107 OLED module is a robust electronic component, but proper handling and care will ensure its longevity:
- Avoid Static Discharge: Handle the module by its edges and use anti-static precautions when working with it.
- Protect from Moisture: Keep the module dry and away from liquids.
- Prevent Physical Damage: Avoid bending the PCB or applying pressure to the display surface.
- Clean Gently: If cleaning is necessary, use a soft, dry cloth. Do not use harsh chemicals.
- Power Supply: Ensure the power supply voltage is within the specified range to prevent damage.
6. Troubleshooting
If you encounter issues with your OLED display module, consider the following troubleshooting steps:
- No Display/Blank Screen:
- Verify all wiring connections (GND, VCC, SCL, SDA/MOSI, DC, CS, RES) are secure and correct.
- Check power supply voltage.
- Ensure the correct communication interface (I2C/SPI) is selected via jumpers.
- Confirm the I2C address (if using I2C) is correct for your module (common addresses are 0x3C or 0x3D).
- Check if the display initialization code in your program matches the SH1107 controller and chosen interface.
- Garbled/Incorrect Display:
- Ensure you are using the correct library for the SH1107 controller, not SSD1306 (which is a different controller).
- Verify the display resolution (128x64) is correctly set in your code.
- Check for timing issues in SPI communication, especially if using software SPI.
- Module Not Detected (I2C):
- Run an I2C scanner sketch on your microcontroller to detect connected devices and their addresses.
- Ensure pull-up resistors are present on SCL and SDA lines if not provided by the module or microcontroller.
7. User Tips
- Library Compatibility: When using Arduino or ESP32, ensure you download and use libraries specifically designed for the SH1107 controller, as SSD1306 libraries may not work correctly due to differences in memory addressing.
- Power Consumption: OLED displays are energy-efficient. Consider dimming the display or turning it off when not in use to further conserve power in battery-operated projects.
- Code Examples: Search online forums and GitHub for example code snippets for SH1107 OLEDs with your specific microcontroller (Arduino, ESP32) to quickly get started.
- Interface Selection: Double-check the physical jumper settings for I2C or SPI on the back of the module to match your wiring and code configuration.
8. Warranty and Support
For technical support, troubleshooting assistance, or warranty inquiries, please contact the manufacturer or your point of purchase. Keep your purchase receipt or order details handy for faster service.