Interactive installation · Quick guide

Five Fingers.
Five Elements.

A hand touches five force sensors. One finger becomes one element. A second device responds wirelessly with the same light.

ESP32-C3 · FSR402 · NeoPixel · ESP-NOW

Explore the lights

Choose a finger, or watch all five in sequence.

Device 1 · Master

Reads the hand · sends the result

→
ESP-NOW
WIRELESS

Device 2 · Receiver

Receives the result · shows the light

WOOD · Breathing
The light gently grows and fades.

This is a simplified visual demonstration, not a live connection to the boards. Switch Wireless OFF to see the receiver return to its default purple color.

What happens when someone touches?

The real installation uses a short measurement before showing the result.

01 · TOUCH

Place a hand

The Master detects pressure from the finger sensors.

02 · MEASURE

Wait 5 seconds

It compares the average readings and finds the strongest finger.

03 · REVEAL

See the element

Both devices display its light effect for 7 seconds.

For the person editing the hardware

How to edit the MicroPython code

These are notes for changing your actual master.py and receiver.py files. The web demo does not modify the boards.

1. Switch between Demo and Touch

In master.py, change the mode at the top of the file. Demo cycles through all five elements; Touch waits for a hand.

MODE = "DEMO"    # Automatic: 7 seconds each
MODE = "TOUCH"   # Read real force sensors

2. Connect more finger sensors

For a quick test with two FSR402 sensors, use two pins. When all five are connected, use the five-pin list. The order is Thumb, Index, Middle, Ring, Pinky.

SENSOR_PINS = [1, 2]           # Two sensors
# SENSOR_PINS = [1, 2, 0, 3, 4]  # Five sensors

Uncomment the five-sensor line and comment out the two-sensor line when upgrading. Each FSR needs its own voltage divider. GPIO2 is an ESP32-C3 boot strapping pin; check the wiring if it causes issues.

3. Adjust the timing

All values below are in milliseconds. Change these in master.py.

DEMO_DURATION = 7000      # 7 seconds per element
MEASURE_DURATION = 5000   # 5 seconds to measure
REVEAL_DURATION = 7000    # 7 seconds of light

4. Adjust sensor sensitivity

If a light triggers without touching, increase the touch threshold. If touching does nothing, lower it. Watch RAW and DELTA in the Serial Monitor while testing.

TOUCH_THRESHOLD = 6000
RELEASE_THRESHOLD = 3000

The thresholds apply to readings above the baseline, not to physical force in newtons.

5. Change the LED colors and brightness

Update both Python files so the Master and Receiver look the same. The finger-to-element mapping is defined in ELEMENTS.

NEOPIXEL_PIN = 6
NUM_LEDS = 3
BRIGHTNESS = 0.5     # 50%

The Receiver displays purple by default when there is no active effect or the wireless signal is lost. In receiver.py, change DEFAULT_COLOR and DEFAULT_BRIGHTNESS to customize it.

6. Keep ESP-NOW on the same channel

Both devices must use the same Wi-Fi channel. The current design uses broadcast, so you do not need to type the Receiver's MAC address into the Master.

WIFI_CHANNEL = 1    # Use the same channel on both

If the Master code does not yet have a channel setting, add the same sta.config(channel=1) after activating and disconnecting its Wi-Fi station interface, matching the Receiver.