| Board | Current code | What it does |
|---|---|---|
| ESP32 | CURRENT_ESP32_FIVE_SENSOR_BLE/CURRENT_ESP32_FIVE_SENSOR_BLE.ino | Sends flex readings and MPU6050 acceleration and rotation data over Bluetooth. |
| Arduino UNO Q | CURRENT_UNO_Q_FIVE_SENSOR_CHORDS/receiver.py | Filters S1–S4 into fixed chords (S5 ignored), and maps movement to volume. |
| Mac | play_chord_stream.py | Plays steady sine chords with movement volume; no pan, chorus, reverb, or echoes. |
Follow FIVE_SENSOR_CHORDS.md for upload, calibration,
and ADB playback commands. The ESP32 code advertises as FlexFive; keep the
UNO Q Bluetooth receiver and Mac player running to play. Each bent sensor holds
its own chord, and several chords can sound at once.
ESP32_SINGLE_SENSOR_TEST/ESP32_SINGLE_SENSOR_TEST.ino is the separate one-sensor diagnostic sketch for GPIO34. It prints ADC, voltage, and estimated resistance/angle over USB serial at 115200 baud. Use it when testing one sensor; it does not send Bluetooth or play sound. Wiring and steps are in ESP32_SINGLE_SENSOR_TEST/README.md.
play_chord_stream.py uses the FluidSynth helpers in play_flex.py and the
SoundFont at sounds/steady_sine.sf2. recordings/ contains saved
sensor readings; save-data.ps1 records a serial stream on Windows. These files
are retained for reuse and data history.
The steady SoundFont is original generated audio; rebuild it with
python3 scripts/build_steady_soundfont.py. Hold the IMU still for base volume;
move it for louder sound. Static tilt does not change volume.