Skip to content

About

Wireless robotic hand on ESP32 (ESP-NOW, Kalman filter, PID) with custom KiCad PCBs and a Python dashboard. Bachelor's thesis, 2026.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robotic Hand (ESP32)

Transmitter (glove) board, KiCad 3D render Receiver (hand) board, KiCad 3D render

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.

Features

  • 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

Signal chain

flex sensor -> ADC -> moving average -> 0..180 deg -> ESP-NOW -> Kalman -> PID -> servo
             (transmitter, glove)                          (receiver, hand)

Details, parameters and diagrams: docs/architecture.md.

Repository structure

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

Hardware

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

Getting started

Firmware

  1. Install the esp32 board package by Espressif in the Arduino IDE and the ESP32Servo library (Sketch > Include Library > Manage Libraries).
  2. Flash firmware/receiver/receiver.ino to the hand board. On the Serial Monitor (115200 baud) it prints RX: MAC for transmitter.ino receiverMAC[]: ....
  3. Copy that address into receiverMAC[] in firmware/transmitter/transmitter.ino.
  4. Measure your flex sensors and update POT_MIN / POT_MAX in transmitter.ino.
  5. Set SAFE_OPEN_DEG in receiver.ino to the angle that is open on your build (default 0).
  6. 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.

Dashboard

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:5000

The dashboard runs on simulated data. It does not connect to the hand. python simulation.py renders the signal-processing comparison plot.

Known issues

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.

Changes since the thesis

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

Credits

License

Code, schematics and documentation are released under the MIT License.

About

Wireless robotic hand on ESP32 (ESP-NOW, Kalman filter, PID) with custom KiCad PCBs and a Python dashboard. Bachelor's thesis, 2026.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages