SparkFun LYSB01B26XUA2-ELECTRNCS

SparkFun Micro OLED Breakout Board User Manual

Model: LYSB01B26XUA2-ELECTRNCS

1. Introducció

This manual provides essential information for the proper setup, operation, and maintenance of your SparkFun Micro OLED Breakout Board. Please read these instructions carefully before using the product to ensure optimal performance and longevity. This board is designed for integration into microcontroller projects, offering a compact display solution.

2. Producte acabatview

The SparkFun Micro OLED Breakout Board features a small, monochrome blue-on-black OLED display. It is designed for use with microcontrollers, providing a crisp 64x48 pixel display for various applications, from diagnostic information to small graphical interfaces. The board supports both SPI and I2C communication interfaces, offering flexibility in integration.

  • Mida de la pantalla: 64x48 pixels (0.66" Across)
  • Tipus de visualització: Monochrome Blue-on-Black
  • Opcions d'interfície: SPI or I2C
  • Vol. Operatiutage: 3.3 V
SparkFun Micro OLED Breakout Board front view

Figura 2.1: Davant view of the SparkFun Micro OLED Breakout Board, showing the display and pin headers. This image illustrates the compact size and layout of the board.

SparkFun Micro OLED Breakout Board next to a US quarter for size comparison

Figura 2.2: Size comparison of the Micro OLED Breakout Board with a US quarter coin, highlighting its small form factor suitable for compact projects.

3. Configuració

This section details the steps required to connect and prepare your Micro OLED Breakout Board for operation.

Requisits d'energia de 3.1

The board operates at 3.3 V. Ensure your power supply or microcontroller provides a stable 3.3V to the VCC pin. Connecting a higher voltagi pot danyar el dispositiu.

Connexions de 3.2 pins

The Micro OLED Breakout provides access to 16 pins. For most applications, you will use the top row of pins (GND-CS) for either SPI or I2C communication. The pins on the bottom (D7-vB) are primarily for parallel interface control, which is less commonly used.

SparkFun Micro OLED Breakout Board back view amb etiquetes de pins

Figura 3.1: Enrere view of the SparkFun Micro OLED Breakout Board, showing the pin labels and component layout. This view is helpful for identifying connection points.

3.2.1 I2C Interface Connection

For I2C communication, connect the following pins to your microcontroller:

  • GND: Terra
  • 3V3: Font d'alimentació de 3.3 V
  • SDA: Línia de dades I2C
  • SCL: Línia de rellotge I2C

Ensure appropriate pull-up resistors are used on the SDA and SCL lines if not already present on your microcontroller board.

3.2.2 Connexió de la interfície SPI

For SPI communication, connect the following pins to your microcontroller:

  • GND: Terra
  • 3V3: Font d'alimentació de 3.3 V
  • SDI (MOSI): Entrada de dades SPI
  • SCK (CLK): Rellotge SPI
  • SDO (MISO): SPI Data Output (optional, depending on library)
  • CS: Selecció de xip
  • D/C: Data/Command Select
  • RST: Reset (optional, can be tied to VCC or controlled by GPIO)

4. Instruccions de funcionament

Once the hardware connections are established, you can begin programming your microcontroller to control the Micro OLED display.

4.1 Software Libraries

It is highly recommended to use existing software libraries for controlling OLED displays based on the SSD1306 driver chip (which this display uses). Popular libraries include:

  • Adafruit GFX Library: A core graphics library.
  • Adafruit SSD1306 Library: Specific driver for SSD1306-based OLEDs, compatible with both SPI and I2C.

These libraries simplify drawing text, shapes, and bitmaps on the display.

4.2 Basic Display Operations

After initializing the display object in your code (specifying I2C address or SPI pins), you can perform operations such as:

  • `display.clearDisplay()`: Clears the entire screen.
  • `display.setTextSize(1)`: Estableix la mida de la lletra.
  • `display.setTextColor(SSD1306_WHITE)`: Sets text color (for monochrome, this is typically white/blue).
  • `display.setCursor(0,0)`: Sets the cursor position for text.
  • `display.println("Hello World!")` or `display.print("Hello World!")`: Prints text to the display.
  • `display.display()`: Updates the physical display with the content from the buffer. This command is crucial as changes are not visible until `display()` is called.

5. Manteniment

The SparkFun Micro OLED Breakout Board is a robust electronic component, but proper handling and care will ensure its longevity.

  • Manipulació: Avoid touching the display surface directly to prevent smudges or scratches. Handle the board by its edges.
  • Neteja: If necessary, gently wipe the display surface with a soft, lint-free cloth. Do not use harsh chemicals or abrasive materials.
  • Emmagatzematge: Store the board in an anti-static bag when not in use to protect it from electrostatic discharge (ESD) and dust.
  • Condicions ambientals: Operate and store the board within typical indoor temperature and humidity ranges. Avoid extreme temperatures or high moisture environments.

6. Solució De Problemes

If you encounter issues with your Micro OLED Breakout Board, consider the following troubleshooting steps:

6.1 La pantalla no s'il·lumina

  • Comprovació de potència: Verify that the board is receiving a stable 3.3V power supply and that GND is correctly connected.
  • Connexions: Double-check all data and clock lines (SDA/SCL for I2C, MOSI/SCK/CS/D_C/RST for SPI) for proper connection to your microcontroller. Ensure no pins are shorted.
  • Code Execution: Confirm that your microcontroller code is running and that the display initialization function is being called. Ensure `display.display()` is called after drawing commands.
  • Adreça I2C: For I2C, verify the correct I2C address is used in your code (common addresses are 0x3C or 0x3D).

6.2 Incorrect or Garbled Display

  • Library Compatibility: Ensure you are using a library compatible with the SSD1306 driver and that it's correctly configured for your chosen interface (SPI/I2C).
  • Buffer Updates: Remember to call `display.display()` to push the buffer content to the physical screen.
  • Velocitat de dades: For SPI, ensure your clock speed is not excessively high for the display.

6.3 Communication Errors

  • I2C Scanner: Use an I2C scanner sketch (available online) to confirm your microcontroller can detect the OLED's I2C address.
  • SPI Pinout: Verify the correct MOSI, MISO, SCK, CS, D/C, and RST pins are used and configured in your software.

7. Especificacions

CaracterísticaEspecificació
MarcaSparkFun
Número de modelLYSB01B26XUA2-ELECTRNCS
Mida de la pantalla64x48 pixels (0.66" Across)
Tipus de visualitzacióMonochrome Blue-on-Black OLED
InterfícieSPI or I2C
Vol. Operatiutage3.3 V
FabricantSparkfun
GTIN / UPC757347352711, 717520028086

8. Garantia i Suport

For warranty information, technical support, or further assistance with your SparkFun Micro OLED Breakout Board, please refer to the official SparkFun Electronics website or contact their customer support directly. Details regarding product returns or replacements are typically handled through the original point of purchase.

SparkFun Electronics Weblloc: www.sparkfun.com

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.