Projects / LED ring chooser wheel

LED ring chooser wheel

Press a button and a light spins round a ring of LEDs, slows down and stops on one, to choose who goes first or who washes up. A little sound clicks as the light passes each LED. It is a chooser for friends and families, with no betting.

Beginner1 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANO10.2 mA

    Wire the ring

    DIN through 330 ohms to D6, 5V and GND.

  2. NANO10.2 mA

    Add the capacitor across the ring's power

    Plus to 5V.

  3. NANO

    Wire the button and buzzer

    D2 and D8.

  4. NANO

    Install Adafruit NeoPixel

    From the Library Manager.

  5. NANO

    Upload the sketch

    One blue LED shows.

  6. NANO

    Press the button

    An orange light spins and clicks.

  7. NANO

    Watch it slow and stop

    The winner flashes green.

In short

How do you build an LED ring chooser wheel?

Press a button and a light spins round a ring of LEDs, slows down and stops on one, to choose who goes first or who washes up. A little sound clicks as the light passes each LED. It is a chooser for friends and families, with no betting. You need Arduino Nano, WS2812B ring 16 LEDs, Tactile push button 6 mm, Passive buzzer, Resistor 330 Ω, Electrolytic capacitor 1000 µF, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 7 steps and about 60 minutes.

Level
Beginner
Time
About 60 min
Parts
8

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Ring DINNano D6 through a 330 ohm resistorData in to the ring
Ring 5VNano 5VPower, only one pixel is lit at a time
Ring GNDNano GNDCommon ground
1000 microfarad capacitorAcross the ring's 5V and GND, plus leg to 5VSmooths the supply, minus stripe to GND
Button leg 1Nano D2Spin button
Button leg 2Nano GNDPressing joins D2 to ground
Passive buzzer +Nano D8Click sound
Passive buzzer -Nano GNDReturn path

Code

A ring of sixteen addressable LEDs needs only one data wire. The sketch starts at a random LED, steps the light round the ring and clicks the buzzer on each step, and slows the stepping a little each time until it is crawling. It then keeps going for a random extra distance before stopping, so nobody can guess the winner from the speed. The winner flashes green three times. The ring is run at low brightness with one LED lit at a time, so the Nano's USB supply is plenty, and a 330 ohm resistor in the data line and a large capacitor across the ring's power protect the first LED from surges. Make sure the capacitor's plus leg is on 5 volts and the striped leg is on ground. Use it to choose who goes first, who tidies up or what to play. It is a chooser only, not for betting. Try adding a second colour for ties, or lighting the whole ring at the end.

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

#include <Adafruit_NeoPixel.h>

const uint8_t RING_PIN = 6;
const uint8_t BUTTON_PIN = 2;
const uint8_t BUZZER_PIN = 8;
const int LEDS = 16;

Adafruit_NeoPixel ring(LEDS, RING_PIN, NEO_GRB + NEO_KHZ800);
int pos = 0;

void show(int p, uint32_t colour) {
  ring.clear();
  ring.setPixelColor(p, colour);
  ring.show();
}

void setup() {
  pinMode(BUTTON_PIN, INPUT_PULLUP);
  pinMode(BUZZER_PIN, OUTPUT);
  ring.begin();
  ring.setBrightness(40);                    // low brightness keeps the current small
  show(0, ring.Color(0, 0, 255));
  randomSeed(analogRead(A0) + micros());
}

void loop() {
  if (digitalRead(BUTTON_PIN) == HIGH) return;
  while (digitalRead(BUTTON_PIN) == LOW) {}   // wait for release

  pos = random(LEDS);
  int wait = 30;                             // starts fast
  int extra = random(0, LEDS);               // a random extra distance
  int steps = 0;
  while (wait < 380 || steps < extra) {
    show(pos, ring.Color(255, 120, 0));
    tone(BUZZER_PIN, 900, 6);                // a short click
    delay(wait);
    pos = (pos + 1) % LEDS;
    steps++;
    if (wait < 380) wait = wait * 108 / 100 + 1;   // slow down by about 8 percent a step
  }
  for (int i = 0; i < 3; i++) {              // flash the winner
    show(pos, ring.Color(0, 255, 0));
    delay(200);
    ring.clear();
    ring.show();
    delay(150);
  }
  show(pos, ring.Color(0, 255, 0));
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
At restOne blue LED lit
Button pressAn orange light spins with clicks
SpinSlows gradually and stops
WinnerFlashes green three times
Several spinsDifferent winners

If it does not work

Ring does not light

Check 5V, GND and the data wire to D6.

Wrong colours

Change NEO_GRB to NEO_RGB.

First LED flickers

Check the 330 ohm resistor and the capacitor.

No clicks

Check the buzzer is passive and on D8.

Upload fails

Choose the Old Bootloader option.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the LED ring chooser wheel?

Arduino Nano, WS2812B ring 16 LEDs, Tactile push button 6 mm, Passive buzzer, Resistor 330 Ω, Electrolytic capacitor 1000 µF, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the LED ring chooser wheel take to build?

About 60 minutes for a beginner maker, in 7 steps.

How do I know the LED ring chooser wheel works?

At rest: One blue LED lit. Button press: An orange light spins with clicks. Spin: Slows gradually and stops.

Ring does not light: what should I check?

Check 5V, GND and the data wire to D6.

Wrong colours: what should I check?

Change NEO_GRB to NEO_RGB.

First LED flickers: what should I check?

Check the 330 ohm resistor and the capacitor.

No clicks: what should I check?

Check the buzzer is passive and on D8.