1. Introduction
This manual provides detailed instructions for the setup, operation, and maintenance of the Estardyn 0.96 inch OLED Display Module with Matrix Keys. This module integrates a 0.96-inch OLED display with either a 4-key or 16-key matrix keypad, designed for various embedded projects and applications requiring compact display and input capabilities.
2. Specifications
| Feature | Description |
|---|---|
| Display Type | OLED |
| Display Size | 0.96 inches |
| Resolution | 128x64 pixels |
| IC Chip | SSD1315 |
| Interface | IIC (I2C) |
| Keypad Options | 4-key or 16-key matrix |
| Operating Voltage (VCC) | 2.2V - 5.5V |
| SCL (Clock) High Level | 2.2V - 5.5V |
| SDA (Data) High Level | 2.2V - 5.5V |
| Origin | Mainland China |
3. Setup Instructions
This section details how to connect and initialize your OLED display module with matrix keys.
3.1 Pin Description
The module features standard IIC communication pins and dedicated pins for the matrix keypad. Refer to the following pinout for connection:
- VCC: Power supply input (2.2V - 5.5V)
- GND: Ground connection
- SCL: IIC Clock line (connect to microcontroller's SCL pin)
- SDA: IIC Data line (connect to microcontroller's SDA pin)
- Keypad Pins (K1-K4 for 4-key, R1-R4, C1-C4 for 16-key): Connect to digital input pins on your microcontroller.
3.2 Wiring Diagrams
Below are example wiring diagrams for connecting the OLED module to common microcontrollers like Arduino and STM32. Ensure your microcontroller's IIC pins are correctly identified and connected to the module's SCL and SDA pins.
For Arduino (e.g., Mega328p):
- OLED VCC to Arduino 5V (or 3.3V if compatible)
- OLED GND to Arduino GND
- OLED SCL to Arduino A5 (or SCL pin)
- OLED SDA to Arduino A4 (or SDA pin)
- Keypad pins to available digital I/O pins as per your code.
For STM32F103C8T6:
- OLED VCC to STM32 VCC (3.3V)
- OLED GND to STM32 GND
- OLED SCL to STM32 PB6 (or I2C1_SCL)
- OLED SDA to STM32 PB7 (or I2C1_SDA)
- Keypad pins to available digital I/O pins (e.g., A0, A1, A2, A3 for rows and A4, A5, C0, C1 for columns).
3.3 Software Setup (General)
To operate the OLED display and read keypad inputs, you will need appropriate libraries for your chosen microcontroller platform. For Arduino, common libraries include:
- Adafruit SSD1306 Library: For controlling the OLED display.
- Adafruit GFX Library: Graphics library required by SSD1306.
- Keypad Library: For easily interfacing with matrix keypads.
Consult the documentation for your specific microcontroller and development environment for detailed library installation and usage instructions.
4. Operating Instructions
Once the module is wired and the necessary libraries are installed, you can begin programming its functionality.
4.1 Display Operation
The OLED display is controlled via the IIC interface. Basic operations include:
- Initialization: Call the display's begin function (e.g.,
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);for Adafruit library). - Clearing the Display: Use
display.clearDisplay(); - Text Display: Set text size, color, and cursor position, then print text (e.g.,
display.setTextSize(1); display.setTextColor(SSD1306_WHITE); display.setCursor(0,0); display.println("Hello World!");). - Graphics: Draw pixels, lines, circles, rectangles using GFX library functions.
- Updating Display: After drawing, call
display.display();to show changes on the screen.
4.2 Keypad Operation
The matrix keypad requires scanning rows and columns to detect key presses. The Keypad library simplifies this process:
- Define Keymap: Create a character array representing your keypad layout.
- Define Pinout: Specify the microcontroller pins connected to the rows and columns of the keypad.
- Create Keypad Object: Instantiate the Keypad object with the keymap, row pins, column pins, and number of rows/columns.
- Read Key: Use
keypad.getKey();to check for a pressed key. This function returns the character of the pressed key orNO_KEYif no key is pressed.
For the 4-key version, the keys are typically connected to individual digital inputs, and their state can be read directly.
5. Maintenance
The OLED display module is a robust electronic component, but proper care ensures its longevity.
- Cleaning: Gently wipe the display surface with a soft, dry, anti-static cloth. Avoid using liquid cleaners directly on the screen.
- Storage: Store the module in a dry, dust-free environment, away from direct sunlight and extreme temperatures.
- Handling: Avoid applying excessive pressure to the OLED screen. Handle the PCB by its edges to prevent damage to components.
- Power Supply: Ensure the power supply voltage is within the specified range (2.2V - 5.5V) to prevent damage to the OLED and IC chip.
6. Troubleshooting
If you encounter issues with your OLED display module, refer to the following common problems and solutions:
| Problem | Possible Cause | Solution |
|---|---|---|
| Display is blank | Incorrect wiring, insufficient power, wrong IIC address, display not initialized. |
|
| Garbled or corrupted display | Incorrect library, IIC communication issues, timing problems. |
|
| Keypad not responding | Incorrect wiring, wrong pin definitions in code, Keypad library not configured correctly. |
|
| Keys are stuck or registering multiple presses | Keypad debounce issue, physical key malfunction. |
|
7. User Tips
- Power Efficiency: OLED displays are energy-efficient. To further reduce power consumption, consider turning off the display (
display.display(false);) when not in use or dimming it if supported by your library. - Burn-in Prevention: While OLEDs are less prone to burn-in than older display technologies, displaying static images for very long periods can still cause it. Consider implementing screen savers or shifting content slightly if your application requires continuous display of static elements.
- Code Examples: Search online forums and communities (e.g., Arduino forums, GitHub) for example code snippets for SSD1315/SSD1306 OLEDs and matrix keypads. These can be a great starting point for your projects.
- Library Compatibility: The SSD1315 driver is often compatible with libraries designed for the SSD1306. If you have trouble finding a specific SSD1315 library, try using an SSD1306 library.
8. Warranty and Support
For technical support, please contact Estardyn Flagship Store directly through the platform where you purchased the product. Provide your order number and a detailed description of the issue for faster assistance.
This product is covered by standard manufacturer warranties against defects in materials and workmanship. Please refer to the seller's terms and conditions for specific warranty duration and coverage details.