Projects / Giant floor Simon game

Giant floor Simon game

Intermediate5 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANOFSR402

    Test one FSR

    Print its reading under your foot.

  2. NANOFSR402

    Make a pad

    Board, foam and an FSR in the middle.

  3. NANO

    Wire the four pads

    Divider with 10 kΩ for each.

  4. NANO11.4 mA

    Test the strip

    Light each group of 15 LEDs.

  5. NANO

    Add the sounds

    Play a note per pad.

  6. NANO

    Write the game

    Pattern, repeat and score.

  7. NANO

    Fit it to the floor

    Non-slip mats and covered wires.

In short

How do you build a giant floor Simon game?

Four big floor pads light up in a pattern and players stomp them back in order. You need Arduino Nano, Force sensitive resistor FSR 402 × 4, Resistor 10 kΩ × 4, WS2812B strip 5 m (30 LEDs/m), DFPlayer Mini MP3 module, Speaker 8 Ω 0.5 W, SanDisk microSD card 32 GB (A1, Class 10), 5 V 2 A USB adapter, Resistor 330 Ω, Electrolytic capacitor 1000 µF and Resistor 1 kΩ. It takes 7 steps and about 300 minutes.

Level
Intermediate
Time
About 300 min
Parts
11

Parts list

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

Wiring

FromToWhy
Each FSROne leg to 5 V, other leg to the analog pin with a 10 kΩ resistor to GNDPressure divider
FSR 1 to 4 junctionsNano A0, A1, A2, A3Pad readings
LED strip DIN330 Ω resistor to Nano D6Data
LED strip 5V and GND5 V 2 A adapter, with 1000 µF capacitor acrossLED power
Adapter GNDNano GNDCommon ground
DFPlayer TXNano D10Replies
DFPlayer RXNano D11 through a 1 kΩ resistorCommands
DFPlayer and Nano5 V from the adapterPower

Code

Each pad is a board with a force-sensitive resistor underneath, wired as a divider with a 10 kΩ resistor, so stepping on it makes the analogue reading jump. The LED strip is one 60-LED chain with 15 LEDs under each pad, and the sketch lights the group for the pad. LEDs are the biggest current draw: 60 LEDs at full white could take over 3 A, so brightness is limited to 80 out of 255, and the 1000 µF capacitor and 330 Ω data resistor protect the strip. Use a 5 V 2 A adapter and keep all wiring covered. Make pads from 6 mm plywood with a thin sheet of foam over the sensors to spread the load, and bevel the edges so nobody trips. Fix the pads to the floor with non-slip mats. Do not use it on wet floors, and supervise young players. Tune THRESH so a light stomp triggers it. Arduino IDE, board "Arduino Nano" (try the Old Bootloader option if the upload fails).

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).

// Giant floor Simon. Libraries: Adafruit NeoPixel, DFRobotDFPlayerMini. Board: Arduino Nano.
// SD card tracks 0001 to 0004: one note for each pad. 0005: wrong. 0006: new high score.
#include <Adafruit_NeoPixel.h>
#include <SoftwareSerial.h>
#include <DFRobotDFPlayerMini.h>

const int LEDS_PER_PAD = 15, PADS = 4;
Adafruit_NeoPixel strip(LEDS_PER_PAD * PADS, 6, NEO_GRB + NEO_KHZ800);
SoftwareSerial mp3(10, 11);
DFRobotDFPlayerMini player;
const int FSR[4] = {A0, A1, A2, A3};
const int THRESH = 300;                       // 0 to 1023, raise it if the pads trigger by themselves
const uint32_t COL[4] = {0xFF0000, 0x00FF00, 0x0000FF, 0xFFA000};
byte seq[40]; int len = 0, best = 0;

void lightPad(int p, bool on) {
  for (int i = 0; i < LEDS_PER_PAD; i++) strip.setPixelColor(p * LEDS_PER_PAD + i, on ? COL[p] : 0);
  strip.show();
}

void flash(int p, int ms) { lightPad(p, true); player.play(p + 1); delay(ms); lightPad(p, false); delay(150); }

int waitForStomp(unsigned long limit) {
  unsigned long t0 = millis();
  while (millis() - t0 < limit) {
    for (int p = 0; p < 4; p++) if (analogRead(FSR[p]) > THRESH) {
      while (analogRead(FSR[p]) > THRESH / 2) {}        // wait for the foot to lift
      return p;
    }
  }
  return -1;
}

void setup() {
  strip.begin(); strip.setBrightness(80); strip.show();   // brightness limited to keep the current within the adapter's rating
  mp3.begin(9600); player.begin(mp3); player.volume(22);
  randomSeed(analogRead(A5));
}

void loop() {
  len = 0; delay(800);
  while (true) {
    seq[len++] = random(4);
    for (int i = 0; i < len; i++) flash(seq[i], max(250, 600 - len * 25));
    bool ok = true;
    for (int i = 0; i < len && ok; i++) {
      int p = waitForStomp(4000);
      if (p != seq[i]) ok = false; else flash(p, 150);
    }
    if (!ok) {
      player.play(5);
      for (int p = 0; p < 4; p++) lightPad(p, true); delay(600); for (int p = 0; p < 4; p++) lightPad(p, false);
      if (len - 1 > best) { best = len - 1; player.play(6); delay(1500); }
      break;
    }
    delay(600);
    if (len >= 39) break;
  }
}

Test checklist

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

CheckExpected
Watch the pattern, repeat itEach stomp lights its pad
Wrong padFail sound and all pads flash
Each roundOne more step than before
Light footRegisters without needing a jump

If it does not work

Pads trigger by themselves

Raise THRESH and check the 10 kΩ resistors.

Strip flickers

Add the 1000 µF capacitor and the data resistor.

Two pads react together

Check they are mounted separately and not touching.

Nano resets

Power the strip from the adapter, not from the Nano.

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

Ask Lark AI

Common questions

What parts do I need for the giant floor Simon game?

Arduino Nano, Force sensitive resistor FSR 402 × 4, Resistor 10 kΩ × 4, WS2812B strip 5 m (30 LEDs/m), DFPlayer Mini MP3 module, Speaker 8 Ω 0.5 W, SanDisk microSD card 32 GB (A1, Class 10), 5 V 2 A USB adapter, Resistor 330 Ω, Electrolytic capacitor 1000 µF and Resistor 1 kΩ. WS2812B strip 5 m (30 LEDs/m): Cut 4 segments.

How long does the giant floor Simon game take to build?

About 300 minutes for a intermediate maker, in 7 steps.

How do I know the giant floor Simon game works?

Watch the pattern, repeat it: Each stomp lights its pad. Wrong pad: Fail sound and all pads flash. Each round: One more step than before.

Pads trigger by themselves: what should I check?

Raise THRESH and check the 10 kΩ resistors.

Strip flickers: what should I check?

Add the 1000 µF capacitor and the data resistor.

Two pads react together: what should I check?

Check they are mounted separately and not touching.

Nano resets: what should I check?

Power the strip from the adapter, not from the Nano.