KiCad 3D renders of the transmitter (left) and receiver (right) boards. Demo footage of the working hand is coming soon.
A wireless robotic hand that mirrors a glove. Five flex sensors on the glove are read by an ESP32, smoothed, and sent over ESP-NOW to a second ESP32 in the hand. There each finger passes through a Kalman filter and a PID controller before driving its servo. A Python web dashboard visualises the same signal chain.
This is the ESP32 redesign I built for my bachelor's thesis (2026). The original Arduino Nano + nRF24L01 build is in robotic-hand-project.
- Two custom PCBs (KiCad 9), both built around the ESP32-WROOM-32
- ESP-NOW link at 50 Hz with 20-byte packets, no router needed
- Moving average on the glove, then a per-finger Kalman filter and PID controller on the hand
- Built-in Wi-Fi access point and web page on the hand showing live servo angles
- Web dashboard with a 3D hand model, gesture presets and live filter/PID tuning (simulated input)
- Wokwi simulation sketch that runs the full chain on a single ESP32
flex sensor -> ADC -> moving average -> 0..180 deg -> ESP-NOW -> Kalman -> PID -> servo
(transmitter, glove) (receiver, hand)
Details, parameters and diagrams: docs/architecture.md.
robotic-hand-esp32/
├── firmware/
│ ├── transmitter/ glove: flex sensors -> ESP-NOW
│ ├── receiver/ hand: ESP-NOW -> Kalman -> PID -> servos, web page
│ └── wokwi-sim/ single-board simulation for wokwi.com
├── hardware/
│ ├── transmitter/ KiCad project, schematic PDF, PNG
│ └── receiver/ KiCad project, schematic PDF, JPG, STEP
├── dashboard/ Flask + Socket.IO dashboard, Wokwi bridge, simulation
├── docs/ architecture, known issues, PDFs, images
├── LICENSE
└── README.md
| Transmitter (glove) | Receiver (hand) | |
|---|---|---|
| MCU | ESP32-WROOM-32 | ESP32-WROOM-32 |
| I/O | 5 flex sensors, 10 kΩ dividers | 5 servos (SG90) |
| Power | 1S LiPo 3.7 V, AMS1117-3.3 | 2S 18650 7.4 V, LM2596S-5, AMS1117-3.3 |
| Programming | UART header, BOOT and RESET buttons | UART header, BOOT and RESET buttons |
Pins used by the firmware:
| Finger | TX flex sensor pin | RX servo pin |
|---|---|---|
| Thumb | GPIO34 | GPIO13 |
| Index | GPIO35 | GPIO12 |
| Middle | GPIO32 | GPIO14 |
| Ring | GPIO33 | GPIO27 |
| Pinky | GPIO25 (see known issues) | GPIO26 |
Schematic and assembly PDFs are in docs/pdf/.
- Install the esp32 board package by Espressif in the Arduino IDE and the ESP32Servo library (Sketch > Include Library > Manage Libraries).
- Flash
firmware/receiver/receiver.inoto the hand board. On the Serial Monitor (115200 baud) it printsRX: MAC for transmitter.ino receiverMAC[]: .... - Copy that address into
receiverMAC[]infirmware/transmitter/transmitter.ino. - Measure your flex sensors and update
POT_MIN/POT_MAXintransmitter.ino. - Set
SAFE_OPEN_DEGinreceiver.inoto the angle that is open on your build (default 0). - Flash the transmitter to the glove board.
To flash a board: connect a USB-UART adapter to its UART header, hold BOOT, press and release RESET, release BOOT, then upload.
Once both boards are running, join the Wi-Fi network RoboticHand (password hand1234, change it in receiver.ino) and open http://192.168.4.1 to see the servo angles.
cd dashboard
python -m venv .venv
.venv/bin/pip install -r requirements.txt # Windows: .venv\Scripts\pip
.venv/bin/python dashboard.py # then open http://localhost:5000The dashboard runs on simulated data. It does not connect to the hand. python simulation.py renders the signal-processing comparison plot.
The full list is in docs/known-issues.md. In short:
- TX board: GPIO25 is an ADC2 pin, which cannot be read while ESP-NOW is active, so the pinky channel does not work. This needs a board change (move it to GPIO36 or GPIO39).
- RX board: the index servo is on GPIO12, a strapping pin. This is a boot risk, not an observed fault.
- Calibration values are hard-coded and the access point password is fixed in the firmware.
The tag thesis-2026 is the firmware exactly as submitted. The commits after it are:
| Commit | Change | Status |
|---|---|---|
df4f530 |
ESP-NOW callbacks compile on Arduino-ESP32 core 3.x | Not yet tested on hardware |
3242a18 |
RX link-loss failsafe and packet validation | Not yet tested on hardware |
560d181 |
RX prints its MAC for TX setup | Not yet tested on hardware |
72268eb |
Firmware comments translated to English | Comments only, no code change |
db7b405 |
Serial messages, finger names and web page translated to English | Not yet tested on hardware |
- The hand mechanics are based on the Robo Hand design by Viral Science. Its STL files are not included here. Get them from the original project.
- ESP32Servo library, Espressif Arduino core.
Code, schematics and documentation are released under the MIT License.

