This is a mini 0.5 inch OLED display, only 5'', which has the same size of a grown-up's fingernail. This small display has 450cd/m2 screen brightness with extremely high contrast and readability. It contains 60 x 32 independent white OLED pixels and each pixel can be controlled by the driver chip separately. It means you can display any images and words on the screen. And the spontaneous light OLED display does not require a backlight, which greatly reduces the power consumption.


Board Overview




How to connect Oled PCB and Display

First we need Assembly the OLED PCB and display, Be careful in this process, the display connector is thin and fine.


warning_yellow.png Please be sure to use the tweezers or pen inserted into the the small hole on the top of the liquid crystal! Don't use hand! Don't use hand! Don't use hand! Important things need to be repeated for 3 times! the test by hand in hand, We've broken three pieces direct use hand push when we started test it. This is the lesson of blood.

ATTENTION:Please Gently! Gently! Gently! Push the LCD screen when start, the two iron with floor can just keep a screen cable inserted in the gap. Insert it from this gap, when encounter resistance, Don't force! Don't force! Don't force!At this time use tweezers or other sharp objects into the small hole,use a little force and keep this force until you feel that you have push it on the top, when you feel like it is not moving. Don't force! Don't force! Don't force! Then the last thing you need to do is to pull out the tweezer or other objects.




OK, The two things had connected together. Congratulations! You have completed the first step.

Connection Diagram

This step, it will requires you to solder the Pins on the PCB holes, please be careful with when you solder the pins.

Connect the module to DFRduino according to the following connection diagram.

Note: Do not mix 3.3V and GND.


Finally, Connect your USB cable to your PC. OK, all the hardware step we need has been done.

Sample Code

Since your hardware connection has been finished, the next step will be the code uploading. First you need to download the library, and move these files to ARDUINO libraries folder, which is in the Arduino installation directory. Click here to download U8glib library

Do you know how to install an Arduino library? You can refer to this tutorial: How to install an Arduino library

And then we need to open the ARDUINO IDE, copy the following code and put it in the IDE windows. Select the right serial port and board type (Arduino UNO) in the menu, click "download" button.

#include "U8glib.h"
U8GLIB_LD7032_60x32 u8g(9, 8, 11, 10, 12);

void setup(void) {
const uint8_t rook_bitmap[] PROGMEM = {
  0x00,         // 00000000
  0x55,         // 01010101
  0x7f,          // 01111111
  0x3e,         // 00111110
  0x3e,         // 00111110
  0x3e,         // 00111110
  0x3e,         // 00111110
  0x7f           // 01111111

void loop(void) {
  // picture loop
  do {
    //       u8g.setFont(u8g_font_osb21);
    u8g.drawStr( 5, 20, "DFROBOT");
  } while ( u8g.nextPage() );
  do {
    u8g.drawCircle(30, 20, 18);
    u8g.drawEllipse(26, 12, 7, 5,U8G_DRAW_UPPER_LEFT );
    u8g.drawEllipse(34, 12, 7, 5, U8G_DRAW_UPPER_RIGHT);
    u8g.drawTriangle(30,14, 27, 18, 33, 18);
    u8g.drawFilledEllipse( 30, 25, 10,5, U8G_DRAW_LOWER_LEFT);
    u8g.drawFilledEllipse( 30, 25, 10,5, U8G_DRAW_LOWER_RIGHT);
    u8g.drawLine(30, 13, 30, 16);

    u8g.drawFrame(0, 0,60 ,32);

  } while ( u8g.nextPage() );

  do {
    u8g.drawBitmapP(30, 16,1, 8, rook_bitmap);
  } while ( u8g.nextPage() );
  do {

  } while ( u8g.nextPage() );





Any question and more cool ideas to share, please visit DFRobot Forum.

More Documents

0.5 inch OLED Display Library

shopping_car.png Get from 60x32 0.5" OLED Display for Arduino or DFRobot Distributor.

Turn to the Top