Interactive rangoli light mat
Build it step by step
0 of 7 donePlan the layout
Number the LEDs on paper.
Fix the strip
In the rangoli pattern on a base board.
Test every LED
Run a colour wipe.
Add the pressure pads
FSR and 10 kΩ at each.
Write the ripple
A bright ring from the pressed pad.
Cover with acrylic
Frosted sheet over a thin foam layer.
Seal the wiring
Nothing exposed at the edges.
How do you build an interactive rangoli light mat?
Addressable LEDs laid out in a rangoli design under frosted acrylic light up where people step, using pressure pads. You need ESP32 DevKit V1, WS2812B strip 5 m (30 LEDs/m), Force sensitive resistor FSR 402 × 6, Resistor 10 kΩ × 6, 5 V 2 A USB adapter, Resistor 330 Ω and Electrolytic capacitor 1000 µF. It takes 7 steps and about 300 minutes.
- Level
- Intermediate
- Time
- About 300 min
- Parts
- 7
Parts list
- Development BoardsBuyESP32 DevKit V1 × 1
- OptoelectronicsBuy
- SensorsBuy
- PassivesBuyResistor 10 kΩ × 6
- PowerBuy
- PassivesBuyResistor 330 Ω × 1
- PassivesBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Each FSR | ESP32 3V3 to one end, other end to an ADC pin and a 10 kΩ to ground | Pressure pads |
| Six pad nodes | ESP32 GPIO32, 33, 34, 35, 36, 39 | ADC inputs |
| ESP32 GPIO5 | 330 Ω resistor to strip DIN | LED data |
| 5 V adapter plus and minus | Strip 5V and GND | LED power |
| 1000 µF capacitor | Across the strip 5V and GND | Absorbs switching spikes |
| ESP32 GND | Strip GND | Common ground |
| ESP32 VIN | 5 V adapter plus | Power the board |
Code
Lay the strip in your rangoli pattern under frosted acrylic, number the LEDs along its length, and note which LED is nearest each pressure pad; type those numbers into PAD_LED. When a pad is stepped on, a bright ring spreads outward from its LED along the strip while the rest slowly cycles through colours at low brightness. The FSR with a 10 kΩ resistor forms a divider: the harder you press, the higher the voltage on the pin. The six pad pins are all on ADC1, which still works when Wi-Fi is on. Keep brightness at about 30 percent, which stays cool under acrylic and uses only about 1 A for 60 LEDs. Use a 5 V 3 A adapter with the capacitor and the 330 Ω resistor in place, seal all joints under the mat so no one can touch a wire, keep it dry and indoor, and test the mat can take a person's weight on a plywood base. The effect fades slowly with no strobing. Arduino IDE with the ESP32 boards package 2.0.x, board "ESP32 Dev Module".
Runs on a virtual ESP32 Dev Module 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).
// Rangoli mat: pressure pads start colour ripples across the LED strip. Library: FastLED. Board: ESP32 Dev Module.
#include <FastLED.h>
#define NUM_LEDS 60
CRGB leds[NUM_LEDS];
const int PAD[6] = {32, 33, 34, 35, 36, 39};
const int PAD_LED[6] = {5, 15, 25, 35, 45, 55}; // which LED sits at each pad: set from your layout
int ripple[6]; // radius of the active ripple for each pad, or -1
uint8_t hueBase = 0;
void setup() {
FastLED.addLeds<WS2812B, 5, GRB>(leds, NUM_LEDS);
FastLED.setBrightness(80); // keeps current and heat low
for (int i = 0; i < 6; i++) ripple[i] = -1;
}
void loop() {
for (int i = 0; i < NUM_LEDS; i++) leds[i] = CHSV(hueBase + i * 3, 255, 60); // slow colour cycle
hueBase++;
for (int p = 0; p < 6; p++) {
if (analogRead(PAD[p]) > 1200 && ripple[p] < 0) ripple[p] = 0; // new press
if (ripple[p] >= 0) {
for (int i = 0; i < NUM_LEDS; i++) {
int d = abs(i - PAD_LED[p]);
if (abs(d - ripple[p]) <= 1) leds[i] = CHSV(hueBase + p * 40, 200, 255); // bright ring
}
ripple[p]++;
if (ripple[p] > NUM_LEDS) ripple[p] = -1;
}
}
FastLED.show();
delay(30);
}Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Idle | Slow colour cycle |
| Press a pad | Ring spreads along the strip |
| Two pads | Two rings at once |
| Cool after an hour | Warm at most |
If it does not work
Pads always on
Raise the threshold.
Pads never trigger
Use a thin hard spacer so the FSR is squeezed.
Wrong spot lights
Check the PAD_LED numbers.
LEDs flicker
Check the data resistor and the capacitor.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the interactive rangoli light mat?
ESP32 DevKit V1, WS2812B strip 5 m (30 LEDs/m), Force sensitive resistor FSR 402 × 6, Resistor 10 kΩ × 6, 5 V 2 A USB adapter, Resistor 330 Ω and Electrolytic capacitor 1000 µF.
How long does the interactive rangoli light mat take to build?
About 300 minutes for a intermediate maker, in 7 steps.
How do I know the interactive rangoli light mat works?
Idle: Slow colour cycle. Press a pad: Ring spreads along the strip. Two pads: Two rings at once.
Pads always on: what should I check?
Raise the threshold.
Pads never trigger: what should I check?
Use a thin hard spacer so the FSR is squeezed.
Wrong spot lights: what should I check?
Check the PAD_LED numbers.
LEDs flicker: what should I check?
Check the data resistor and the capacitor.
