1. Introduction
This manual provides detailed instructions for the TENSTAR ROBOT 1.3-inch OLED Display Module. This compact display features a 128x64 pixel resolution, is driven by the SH1106 chip, and communicates via the IIC (I2C) interface. It is available in white or blue display colors and is ideal for various embedded projects requiring a small, high-contrast display.

2. Specifications
The following table outlines the key technical specifications of the 1.3-inch OLED Display Module:
| Feature | Description |
|---|---|
| Dimension | 1.3 inch |
| Resolution | 128x64 pixels |
| Control Chip | SH1106 |
| Display Area | 29.42 x 14.7 mm |
| PCB Size | 35.5 x 33.6 mm |
| Interface Type | IIC (I2C) interface (Two device addresses can be switched) |
| Display Color | White / Blue |
| Operating Voltage | 3.3V - 5V |
| Pixel Size | 0.21 x 0.21 mm |
| Pixel Pitch | 0.23 x 0.23 mm |
| Operating Current | Approx. 20mA (normal), microampere level (sleep mode) |
| Pin Count | 4 |
| Viewing Angle | Full viewing angle |
| Operating Temperature | -40°C to 70°C |
| Package Weight | 0.01 kg |
| Package Dimensions | 10 cm (L) x 5 cm (W) x 1 cm (H) |

3. Setup and Connection
The OLED module uses a 4-pin IIC (I2C) interface for communication. Ensure your microcontroller supports I2C communication and provides the necessary voltage levels.
3.1 Pinout Diagram
Refer to the diagram below for the pin assignments:

3.2 Pin Function Description
| Pin Number | Pin Name | Function Description |
|---|---|---|
| 1 | VDD | Power Supply (3.3V to 5V) |
| 2 | GND | Ground |
| 3 | SCK | I2C Serial Clock Line (SCL) |
| 4 | SDA | I2C Serial Data Line (SDA) |
3.3 Connection Steps
- Connect Power: Connect the VDD pin (Pin 1) to your microcontroller's 3.3V or 5V power supply. Connect the GND pin (Pin 2) to the ground of your microcontroller.
- Connect I2C Lines: Connect the SCK pin (Pin 3) to your microcontroller's I2C SCL pin. Connect the SDA pin (Pin 4) to your microcontroller's I2C SDA pin.
- Verify Connections: Double-check all connections to ensure correct polarity and pin assignments before applying power.

4. Operating Instructions
To operate the OLED display, you will need to program your microcontroller to send commands and data via the I2C interface. The display uses the SH1106 driver IC, which is compatible with many existing OLED libraries.
4.1 Software Setup (Example for Arduino)
- Install Libraries: For Arduino, install the 'Adafruit SSD1306' and 'Adafruit GFX Library' from the Arduino IDE's Library Manager. While the driver is SH1106, many SSD1306 libraries can be adapted or have SH1106 support.
- Include Headers: In your sketch, include the necessary headers:
#include <Wire.h>(for I2C communication) and#include <Adafruit_GFX.h>,#include <Adafruit_SSD1306.h>. - Initialize Display: Define the display width (128) and height (64). Create an Adafruit_SSD1306 object, specifying the I2C address (commonly 0x3C or 0x3D) and the reset pin (if applicable, often not needed for 4-pin modules).
- Begin Display: Call
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);(or your module's address) to initialize the display. - Clear Display: Use
display.clearDisplay();to clear any residual pixels. - Set Text/Graphics: Use functions like
display.setTextSize(),display.setTextColor(),display.setCursor(),display.print(),display.drawPixel(),display.drawRect(), etc., to draw content. - Update Display: After drawing, call
display.display();to push the buffer content to the OLED screen.
4.2 I2C Address
The module typically has a default I2C address of 0x3C or 0x3D. Some modules allow switching between these addresses via a solder jumper or resistor. Consult the module's PCB for markings if you encounter issues with the default address.
5. Maintenance
The OLED display module is a delicate electronic component. Proper handling and care will ensure its longevity.
- Handling: Avoid touching the display surface directly. Handle the module by its edges or PCB.
- Cleaning: If necessary, gently wipe the display surface with a soft, lint-free cloth. Do not use harsh chemicals or abrasive materials.
- Storage: Store the module in an anti-static bag in a dry environment when not in use.
- Power Supply: Ensure the power supply voltage is within the specified 3.3V-5V range. Over-voltage can damage the module.
6. Troubleshooting
If you encounter issues with your OLED display module, consider the following troubleshooting steps:
- Display Not Lighting Up:
- Check power connections (VDD and GND) for correct voltage and polarity.
- Verify I2C connections (SCK/SCL and SDA) are secure and connected to the correct microcontroller pins.
- Ensure your code initializes the display correctly and calls
display.begin()anddisplay.display(). - Confirm the I2C address in your code matches the module's address (try both 0x3C and 0x3D).
- Garbled or Partial Display:
- Check for loose connections on the I2C lines.
- Ensure the correct display resolution (128x64) is set in your software library.
- Verify that the SH1106 driver is correctly configured in your library or code. Some libraries might default to SSD1306, which has minor differences.
- No I2C Communication:
- Use an I2C scanner sketch (available online) to detect if your microcontroller can find the OLED module's I2C address.
- Check for short circuits or open circuits on the I2C lines.
- Ensure pull-up resistors are present on the I2C lines if your microcontroller or development board does not provide them internally.
- Display Flickering:
- Ensure a stable power supply.
- Check for proper grounding.
7. User Tips
- Power Consumption: OLED displays are known for their low power consumption, especially when displaying fewer pixels. Utilize this by designing interfaces with dark backgrounds and minimal active pixels for battery-powered projects.
- Burn-in Prevention: While OLEDs are generally robust, prolonged display of static images can lead to burn-in. Consider implementing screen savers or periodically shifting display content if your application requires long periods of static display.
- Library Compatibility: Many libraries designed for SSD1306 OLEDs can be adapted for the SH1106 by changing the driver definition or using specific SH1106-compatible functions if available. Always check the library documentation.
- I2C Address Flexibility: If your project uses multiple I2C devices, remember that this module might allow switching its I2C address, which can be useful to avoid conflicts.
8. Warranty and Support
For technical assistance, troubleshooting beyond this manual, or inquiries regarding product defects, please contact your retailer or the manufacturer directly. Provide your product model (1.3OLED) and a detailed description of the issue for efficient support.