LED PROPELLER DISPLAY

Photo of author

By Jackson Taylor

Home » Examples » Project Done In 2014-15 » LED PROPELLER DISPLAY

As an Amazon Associate we earn from qualifying purchases.

An LED propeller display is a small electronics project that seems to draw letters in thin air. A row of LEDs is attached to a spinning arm, and a microcontroller switches them on and off at precisely timed moments. Because the arm moves fast, your eyes see a steady word or shape instead of a single moving line of lights.

This guide explains how the display works, what the circuit is made of, and how the example code draws the letter C. You can then change the code to show your own text or patterns. If you want to compare it with another propeller display project on this site, that is a good next read.

How an LED propeller display works

The effect relies on persistence of vision. Your eye keeps an image for a short moment after the light is gone. If a light flashes in the same place on every rotation, you see it as if it were always on.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

The display uses this in three steps:

  1. A motor spins an arm (the “propeller”) with a row of LEDs mounted along it.
  2. The microcontroller turns a pattern of LEDs on for a very short time. That pattern is one thin vertical slice, or column, of a character.
  3. It then moves on to the next column, and the next, until the whole letter is drawn. After a short gap with all LEDs off, the cycle repeats on the next rotation.

The letters appear to hover in the air because every column is drawn at the same angle on each turn.

What you need

See also
MOTOR SPEED CONTROL USING MOSFET/BJT & POT

If you are new to driving LEDs from a board, read how to control an LED with Arduino first. The same ideas apply here, just with eight outputs.

Circuit diagram

The project has two parts: the circuit on the propeller and the circuit that controls the motor. They are shown in separate diagrams below.

Propeller side

This part holds the microcontroller outputs and the LEDs. Each output pin drives one LED through a resistor, so the code can control the eight LEDs independently.

Circuit diagram of the propeller side of an LED propeller display

PROPELLER SIDE

Motor speed control

The second circuit sets how fast the arm spins. Speed matters because the code draws each column for a fixed time. If the arm turns faster or slower than expected, the letter looks stretched or squashed. A steady speed gives a clear, stable image.

Circuit diagram of the motor speed control for the LED propeller display

MOTOR SPEED CONTROL

Program

The sketch below shows the letter C. Each block of eight digitalWrite lines sets all eight LEDs for one column. A HIGH value turns an LED on and a LOW value turns it off. After each column the code waits 150 microseconds, then the final block switches everything off for 400 microseconds so the letter has a gap before the next rotation.

void setup()
{
    pinMode(P2_0,OUTPUT); //declare all pins as output
    pinMode(P2_1,OUTPUT);
    pinMode(P2_2,OUTPUT);
    pinMode(P2_3,OUTPUT);
    pinMode(P2_4,OUTPUT);
    pinMode(P2_5,OUTPUT);
    pinMode(P2_6,OUTPUT);
    pinMode(P2_7,OUTPUT);
}
void loop()
{
    letterC();
}
void letterC(void)// C
{
    digitalWrite(P2_0,LOW);  // 1st segment
    digitalWrite(P2_1,LOW);
    digitalWrite(P2_2,HIGH);
    digitalWrite(P2_3,HIGH);
    digitalWrite(P2_4,HIGH);
    digitalWrite(P2_5,HIGH);
    digitalWrite(P2_6,LOW);
    digitalWrite(P2_7,LOW);
    delayMicroseconds(150);
    digitalWrite(P2_0,LOW); // 2nd segment
    digitalWrite(P2_1,HIGH);
    digitalWrite(P2_2,HIGH);
    digitalWrite(P2_3,HIGH);
    digitalWrite(P2_4,HIGH);
    digitalWrite(P2_5,HIGH);
    digitalWrite(P2_6,HIGH);
    digitalWrite(P2_7,LOW);
    delayMicroseconds(150);
    digitalWrite(P2_0,HIGH); // 3rd segment
    digitalWrite(P2_1,HIGH);
    digitalWrite(P2_2,LOW);
    digitalWrite(P2_3,LOW);
    digitalWrite(P2_4,LOW);
    digitalWrite(P2_5,LOW);
    digitalWrite(P2_6,HIGH);
    digitalWrite(P2_7,HIGH);
    delayMicroseconds(150);
    digitalWrite(P2_0,HIGH); // 4th segment
    digitalWrite(P2_1,HIGH);
    digitalWrite(P2_2,LOW);
    digitalWrite(P2_3,LOW);
    digitalWrite(P2_4,LOW);
    digitalWrite(P2_5,LOW);
    digitalWrite(P2_6,HIGH);
    digitalWrite(P2_7,HIGH);
    delayMicroseconds(150);
    digitalWrite(P2_0,HIGH); // 5th segment
    digitalWrite(P2_1,HIGH);
    digitalWrite(P2_2,LOW);
    digitalWrite(P2_3,LOW);
    digitalWrite(P2_4,LOW);
    digitalWrite(P2_5,LOW);
    digitalWrite(P2_6,HIGH);
    digitalWrite(P2_7,HIGH);
    delayMicroseconds(150);
    digitalWrite(P2_0,LOW); // last segment - off state
    digitalWrite(P2_1,LOW);
    digitalWrite(P2_2,LOW);
    digitalWrite(P2_3,LOW);
    digitalWrite(P2_4,LOW);
    digitalWrite(P2_5,LOW);
    digitalWrite(P2_6,LOW);
    digitalWrite(P2_7,LOW);
    delayMicroseconds(400);
}

The original listing had a few typing errors, which are fixed above: a missing closing bracket on the 4th segment line, a missing P2_1 line in the 5th segment, and stray HTML tags inside the comments. The 5th segment now sets P2_1 to HIGH like the segments before it, which matches the shape of the letter.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works
See also
AMBULANCE RESCUE SYSTEM

Show your own letters

To draw another character, copy the letterC function, rename it, and change the HIGH and LOW values in each column. Sketch the letter on a grid first: eight rows for the eight LEDs and about five columns wide. Mark each lit LED as HIGH and each dark one as LOW. Then call your functions one after another in loop() to spell a word, leaving an off gap between letters.

Writing the patterns as repeated lines gets long quickly. A cleaner approach is to store each column as a byte in an array and write a short loop that sends the bits to the pins. Practising with a simpler Arduino LED chasing project helps you get comfortable with timed LED sequences, and Arduino LED matrix projects use the same column-by-column idea on a fixed grid.

Tips for a clear display

  • Balance the arm. An uneven arm vibrates and blurs the image. Keep the weight of the battery and board evenly spread around the centre.
  • Keep the speed steady. A drifting motor speed makes the letters wobble. Use fresh batteries or a stable supply.
  • Adjust the delays. If the letter looks too wide or too narrow, change the 150 microsecond delay a little and test again.
  • Use a dim room. The effect is easier to see with less ambient light.
  • Stay safe. Keep fingers, hair and loose wires away from the spinning part, and consider eye protection when testing. Fix all parts firmly so nothing can come loose.

Common problems

  • The letter looks mirrored or backwards. Reverse the order of the columns, or change the motor direction.
  • The image drifts around the circle. The timing between rotations is not constant. Check the motor speed and the power supply.
  • Some LEDs stay dark. Check the wiring and resistor for that pin, and confirm it is set as an output in setup().
  • The display is too dim. Short on-times make LEDs look dimmer. Check the resistor values are suitable for the LEDs you use, and do not exceed the pin’s current limit.
See also
HOME AUTOMATION (DEVICE CONTROLLING ) USING MSP430G2553 , IR REMOTE AND RELAY

FAQ

Why can I see letters if the LEDs are only a single row?

The row sweeps through a circle many times a second. Each rotation it lights the same columns at the same angles, and your eyes blend those flashes into one image.

Can I build an LED propeller display with an Arduino?

Yes. The logic is the same. Replace the P2_x pin names with the Arduino pin numbers you wired the LEDs to, and keep the same digitalWrite and delayMicroseconds calls.

How do I change what the display shows?

Edit the HIGH and LOW values in each column, or add new functions for other letters and call them in sequence from loop().

Why does the motor need speed control?

The code draws each column for a set time. If the speed changes, the letter width and position change too, so a steady speed gives a sharper image.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works