OLED Animation Maker OLED Maker
🔤 Name · SSD1306

Arduino OLED Name Animation on SSD1306

The first time I tried to put my name on a 0.96" OLED, I used display.println. It worked. It also looked like a calculator. Here's how I moved from static text to a real name animation without drawing hex by hand.

By Ashish Sep 29, 2026 ~28 min SSD1306, Name, Arduino
⌨️

Type a name

No hex editors. Multiline text works.

🎞️

Frame animation

PROGMEM bitmaps + drawBitmap loop.

📦

Get the Code

Adafruit, U8g2, or MicroPython export.

🔌

Real hardware

Uno, Nano, ESP32, ESP8266, Pico.

Pixel art of a name badge reading HI with small pixels flying in, for the post Arduino OLED Name Animation on SSD1306

The first time I tried to put my name on a 0.96" OLED, I used display.println("ASHISH"). It worked. It also looked like a calculator. That's fine for debugging, but it's boring for a gift, a desk toy or a project boot screen.

Assemble Studio typing the name ASHISH with a live SSD1306 OLED preview and 60+ assemble styles

What you probably want is motion. Think letters that rain in, spiral together or build from the sides. That means frames. Lots of tiny bitmaps playing one after another. This guide is the path I use now, from wiring checks to flash budget, then a free export so you aren't typing hex at midnight.

What you'll build

  • A working I²C SSD1306 (or SH1106) that you've wired to an Arduino or ESP
  • Your name, appearing as a multi-frame assemble animation
  • A sketch that stores your frames in PROGMEM and plays them with drawBitmap
  • A feel for how many frames you'll fit on Uno vs ESP32

Parts you'll need

  • An Arduino Uno or Nano, or an ESP32 or ESP8266 if you want more flash for longer animations
  • An SSD1306 128×64 I²C OLED, which is what you'll get on most cheap 0.96" boards
  • Four wires: GND, VCC, SDA and SCL
  • Adafruit GFX + Adafruit SSD1306 libraries, or U8g2 if that's already your stack
OLED pinUno / NanoESP32 (common)ESP8266 (NodeMCU)
GNDGNDGNDGND
VCC5V (most modules)3.3V3.3V
SDAA4GPIO 21D2 (GPIO 4)
SCLA5GPIO 22D1 (GPIO 5)

If your screen stays black, run an I²C scanner before you blame your animation code. It's the quickest test. The address is usually 0x3C. Some boards sit on 0x3D. You'll find the full wiring walkthrough here: Arduino OLED display tutorial. And here's my blank screen checklist: SSD1306 blank screen fix.

Assemble Studio Glitch Snap style animating a name on the OLED preview

Static text vs name animation

Static text is one call in setup(). Animation is a list of frames in flash, then a loop that clears, draws the next bitmap, and waits a few milliseconds.

On a 128×64 mono OLED, one full frame is 1024 bytes. Store it with PROGMEM, so you don't eat your RAM. An Uno has 32 KB of flash total. After libraries and your sketch, you'll fit roughly 20-30 frames if you keep things tight. An ESP32 laughs at that limit.

// Idea only — real arrays are much longer
const unsigned char frame0[] PROGMEM = { /* 1024 bytes */ };
const unsigned char frame1[] PROGMEM = { /* 1024 bytes */ };

void playOnce() {
  display.clearDisplay();
  display.drawBitmap(0, 0, frame0, 128, 64, SSD1306_WHITE);
  display.display();
  delay(40);
  display.clearDisplay();
  display.drawBitmap(0, 0, frame1, 128, 64, SSD1306_WHITE);
  display.display();
  delay(40);
}

Writing those hex arrays by hand for a name is a bad afternoon, and you don't need to. I did it once for a four-letter word and swore I'd never do it again.

Why println isn't enough for a "name intro"

setTextSize and print are great for sensor values. They draw font glyphs from the library. They won't give you particle rain, a spiral join or a logo that fills in. Those effects need the final shape as pixels. Then you'll need intermediate frames that move those pixels into place.

Hardware scroll (startscrollleft) only slides whatever's already on the glass. It's useful for tickers, but it isn't a designed intro. I wrote a separate comparison here: scrolling text vs name animation.

Faster way: type the name, export frames

I built Assemble Studio for this job. You type your name (multiline works), pick a style like Outside Random or Wave Ride and watch the 128×64 mockup, then you hit Get the Code.

  1. Open Assemble Studio in the browser
  2. Type your name, and keep it short on an Uno
  3. Click a style, and you'll see the preview update on the board mockup
  4. Tweak the speed or font size if you don't like how cramped the letters look
  5. Get the Code → Adafruit SSD1306, SH110X, U8g2, or MicroPython
  6. Select your board and I²C address in the header, then upload

The export already includes PROGMEM frames and a playback loop. You still need to match the library and address, so the sketch fits your hardware. That's on you.

Install the libraries (Arduino IDE)

  1. Open Library Manager
  2. Install Adafruit GFX Library
  3. Install Adafruit SSD1306, which pulls in the Wire dependencies
  4. If your SH1106 module needs Adafruit SH110X, install that too and pick SH110X in the export

On Arduino IDE 2.x you'll find this under Tools → Manage Libraries. On older IDE 1.x it's Sketch → Include Library → Manage Libraries. Restart the IDE if the examples don't show up right away.

Step 0: prove your OLED works with a static name

Before any animation, flash this. If "ASHISH" doesn't appear, fix your wiring or address first. Don't debug frames on a dead bus.

#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
#define SCREEN_ADDRESS 0x3C

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

void setup() {
  if (!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
    for (;;); // hang if OLED not found
  }
  display.clearDisplay();
  display.setTextColor(SSD1306_WHITE);
  display.setTextSize(2);
  display.setCursor(16, 24);
  display.print(F("ASHISH"));
  display.display();
}

void loop() {}

Change the string, address and cursor until it looks centered. That baseline matters, because it tells you the hardware's fine. Only then move to multi-frame playback.

What a frame loop looks like after export

Here's roughly what Assemble Studio exports (I've shortened the arrays on purpose):

const unsigned char frame_0[] PROGMEM = {
  0x00, 0x00, /* ... 1024 bytes total for 128x64 ... */
};
const unsigned char frame_1[] PROGMEM = {
  0x00, 0x00, /* ... */
};

const unsigned char* const frames[] PROGMEM = {
  frame_0, frame_1 /*, ... */
};
const uint16_t FRAME_COUNT = 2;
const uint16_t FRAME_DELAY_MS = 40;

void playNameIntro() {
  for (uint16_t i = 0; i < FRAME_COUNT; i++) {
    display.clearDisplay();
    display.drawBitmap(0, 0, (const unsigned char*)pgm_read_ptr(&frames[i]), 128, 64, SSD1306_WHITE);
    display.display();
    delay(FRAME_DELAY_MS);
  }
}

The exact pointer macros can differ slightly by export target. Trust the full sketch from Get the Code. The idea's always the same: store frames in flash, draw one, wait, then go to the next frame.

Workshop notes from my teaching

In WitBlox-style sessions I've learned that students fail in the same three places:

  1. They skip Hello World and jump straight to a 40-frame export on an Uno, and then the upload fails or the board resets
  2. They leave the name at a huge font size so the letters clip, then say the style's broken
  3. They swap SDA and SCL and spend an hour "fixing" the animation

Here's the rule I enforce now: static name on screen, then Assemble Studio, then upload. It takes longer on paper, but it'll save you the whole lab period in practice.

Troubleshooting lab

SymptomLikely causeWhat I try first
Blank foreverWiring / 0x3C vs 0x3DI²C scanner + static Hello World
Upload "too big"Too many frames on UnoShorter name / simpler style / ESP32
Garbage snowWrong size or SH1106 offsetMatch 128×64 and controller in export
Name tiny in cornerFont size / alignmentRaise the size in Assemble Studio and re-export
Board resets mid-playRAM pressure / bad pointersUse PROGMEM export, avoid copying frames to RAM
Looks mirrored / invertedInvert or color flagToggle invert in tool; check WHITE vs BLACK

Your checklist before you call it done

  • Your static name sketch works on this exact board and OLED
  • The Assemble Studio preview matches what you want
  • The export library matches the libraries you installed
  • Your sketch size fits with some margin (watch the IDE memory bar)
  • The intro plays once in setup(), then your real UI runs

Font and size tips that save re-uploads

  • Long names look better at a smaller font size, or you can split them across two lines.
  • Impact and Comic Sans fill the screen fast, while IBM Plex Mono stays readable on 128×64.
  • If your letters clip the edges, drop the size before you change style. You'll save a re-upload.
  • SH1106 panels need a 2-pixel column offset. Pick SH1106 in the tool, and the export handles it for you.

Your Uno flash budget (so your sketch actually uploads)

Here's the rough math I use when someone asks "will this fit?":

  • 1 full 128×64 frame ≈ 1024 bytes PROGMEM
  • Adafruit SSD1306 + GFX already take a chunk of flash
  • Leave headroom for WiFi stacks on ESP. They're heavy too, but you've got more RAM and flash there

If the IDE says your sketch is too big, shorten the name, pick a simpler style or move to ESP32. That's all there is to it. Deeper dive: Uno OLED memory limits.

Where to put the animation in your project

void setup() {
  // Wire + display.begin(...)
  playNameIntro();   // exported loop, once
  drawHomeScreen();  // your normal UI
}

void loop() {
  // sensors, menus, etc.
}

Play the intro once at boot. Looping forever looks cool on a desk ornament, but it's annoying on a tool. For a dedicated name badge build, see DIY OLED name badge.

Live preview while you tweak (optional)

If you're on Chrome or Edge, the maker can stream frames over USB WebSerial or WiFi to ESP boards. That saves you the upload-wait-upload cycle while you hunt for a font size that fits. Guides: WebSerial live connect, WiFi wireless preview.

Try your name on a 128×64 preview

It's free in the browser. Export Arduino or MicroPython code when you like what you see.

Open Assemble Studio →

Frequently asked questions

Can Arduino Uno run a name assemble animation?

Yes, with short names and fewer frames. Each full 128×64 frame is about 1 KB in PROGMEM. For long particle styles, you'll want an ESP32.

Do I need to draw my name in hex myself?

No. Type it in Assemble Studio and export, and the tool packs the frames for you. You don't touch hex.

Will this work with U8g2?

Yes. Choose U8g2 in the export options, and the export's set up for the library you pick.

Can I animate a logo instead of a name?

Yes. Import a PNG and assemble the lit pixels into the full image. Here's the walkthrough: OLED logo splash screen.

My name looks fine in the browser but garbled on my OLED. Why?

Check your library choice, screen size (128×64 vs 128×32) and SH1106 vs SSD1306. The wrong controller's the usual culprit.

How many frames can I fit for a short name on Uno, roughly?

Each full 128×64 frame is 1024 bytes in PROGMEM. A 12-frame intro is about 12 KB of pictures before the Adafruit libraries. That's a reasonable Uno target. A 40-frame particle style often fails the upload. Shorten your name or move the same export to ESP32.

Where should my letters sit so they aren't clipped?

Size-2 text is 12 pixels wide per character and 16 pixels tall. A four-letter name is about 48 pixels wide. If you start the cursor at x = (128 - 48) / 2 = 40 and y = (64 - 16) / 2 = 24, you'll center it. If the assembled bitmap still clips, lower the font size in Assemble Studio and export again.

Can I loop the intro and then show a static name?

Yes. Play the frame list once in setup(), then clear and print the same name with setCursor in loop(), or draw the last frame only. Looping the whole assemble forever is fine for a desk toy, but it's noisy if your OLED is a menu.

Worked example: center a four-letter name, then spend your frames

Prove the glass with a static string before you do any assemble export. On a 128×64 SSD1306, size-2 glyphs are 12 by 16 pixels. Four letters such as MIRA are 48 pixels wide and 16 tall. You can center them with integer math: x = (128 − 48) / 2 = 40, y = (64 − 16) / 2 = 24. The address stays 0x3C unless a scanner says 0x3D.

display.clearDisplay();
display.setTextSize(2);
display.setTextColor(SSD1306_WHITE);
display.setCursor(40, 24);
display.print(F("MIRA"));
display.display();

On an Uno you wire SDA to A4 and SCL to A5. ESP32 is GPIO 21 and GPIO 22. ESP8266 NodeMCU is D2 and D1. If this one word is clipped, rotated or missing, stop. An animation export won't behave any better.

When your static name is centered, open Assemble Studio, type the same four letters and pick a short style. Count the frames before you upload. Each 128×64 frame is 1024 bytes in PROGMEM. Twelve frames are about 12 KB of pictures. That plus Adafruit GFX and SSD1306 still fits a typical Uno, as long as you aren't also storing a second animation. Forty frames are about 40 KB, and they won't fit an Uno no matter how the letters look in the browser. For the long particle styles, you'll want an ESP32.

Play the exported loop once from setup(), then leave the last frame up, or clear and print the centered static name as your resting screen. A desk badge can loop. A sensor box shouldn't replay the intro every time loop() runs. On SH1106 modules, export with that controller so the assembler output starts at column 2 of the 132-wide buffer. If you add 2 yourself on top of an SH1106 export, you'll shift the name twice.

If the letters look cramped in the mockup, drop the font size before you change style. Size 2 is the largest that still leaves you a margin for a four-letter word. A longer name belongs on two lines or at size 1. Otherwise your assemble animation will spend frames sliding clipped pixels that were never going to fit.

Troubleshooting a name that uploads but looks wrong to you

  • Upload says the sketch is too large. Your frame count times 1024, plus libraries, is more than your flash can hold. Pick a shorter style or name, or switch to ESP32.
  • Name sits in the corner in the animation but was centered in the static test. The export uses its own layout. Raise the size or alignment in Assemble Studio and export again. Don't expect setCursor(40, 24) to move bitmap frames.
  • Snow, then a reset. Either a frame pointer got copied into RAM, or you stripped PROGMEM while cleaning up the sketch. Use the export's playback loop unchanged.
  • Two-pixel gap on the left of every frame. You've got an SH1106 panel and an SSD1306 export. Switch the controller and export again. Your wiring and 0x3C are already fine if you can see the shift.
  • Intro plays, then the screen goes black. Your loop() calls clearDisplay without drawing the resting name. After playNameIntro(), draw the static string or the last frame and call display() once.
  • Browser preview is smooth, hardware is half speed. I²C has to move 1024 bytes per frame, and it isn't fast. If your name stutters, increase the frame delay in the exported constant. The pixels are already correct.

Related guides you might like

Free tools: OLED Animation Maker for your SSD1306 and SH1106 animations, Assemble Studio for your name and logo animations, the Shadow Box Lamp Generator for your 3D-printed shadow lamps, Text to STL for your 3D-printed names and keychains, and 3MF to Web to show your 3D prints on any website. New: the Image to Byte Array converter, the OLED Robot Eyes generator and the Lithophane Maker. See all tools.