▶ QUEST IN PROGRESS

EMG Robotic Hand

I’m building a robotic hand that reads the electrical signals from my arm muscles using EMG sensors, so that flexing closes the grip and relaxing opens it back up, and it’s kind of like a cyberpunk arts and crafts project.

Feb 2026 – Present
Raspberry Pi Pico EMG Robotics Hardware

Quest Log

Teaching the hand to talk.....

Starting point! The hand moves, and all five fingers actually open and close, so it’s finally a real hand. I want to hook this up to Claude so that when it does a good job it can give me a thumbs up, and when it’s happy it can pet a small toy cat that lives on my desk. :)

Signal smoothing. The raw EMG readings were jumping around like crazy, so I wrote a moving average that takes the last 100 readings and averages them together. That cleaned things up a lot, and now I get roughly 7,000 when relaxed and 28,000 at full clench, so about a 20,000 gap to work with. I had a brief scare where the sensor was just reading a flat 2,700 no matter what I did, but it turned out to be a loose jumper wire.

Record/playback system. I recorded a full session of muscle data through Thonny (relaxed, light flexes, hard clenches, quick pulses, slow squeezes) and saved it all to a file. Now I can replay that data anytime and the system thinks my arm is right there flexing.

First gestures. I wrote a gesture library with some moves that Claude can trigger. There’s a thumbs up (all fingers close while the thumb stays up) for when a task is complete, and a cat pet (a gentle curling wave, like stroking a cat’s head) for when Claude is happy – aimed at the toy cat that lives on my desk. (*´◡`*)

Organised the codebase. I now have nine scripts, each with a commented and a clean version, plus a README, so no more untitled tabs floating around in Thonny.

Two brains. The hand now has two drivers: my muscles and Claude, who decides when he’s happy or done with a job and triggers a gesture accordingly. They both share the same gesture library, so tuning a finger in one mode benefits the other too, and the next step is wiring up Claude via an MCP server.

Closing the loop

Time for the breadboard setup. I needed more room for cables, so I moved the Pico onto a proper breadboard with power rails. Everything shares 3.3V and ground cleanly now, which is much tidier and roomier than piggybacking wires off the same pin.

Servo sweep test. I wired up the PCA9685 servo driver to the breadboard, plugged in a servo, and ran a sweep with some test code. The white horn moved back and forth on command – and just like that my Pico can actually talk to motors.

Muscle controls a motor. I ran a script connecting my EMG to the servo, then calibrated it by relaxing for 3 seconds and flexing for 3 seconds while watching the servo respond in real time. This was the point where I kind of felt like an extra in Cyberpunk: Edgerunners, and I immediately went to increase the sensitivity threshold so I wouldn’t need to clench quite as hard. (*°▽°*)

first run. pre-sensitivity increase.

Test finger. I built a test finger out of cardboard with two scored joints, PVC tubing for tendon routing, and fishing line threaded to a servo. The idea was that the scored lines would allow the finger to curl, the PVC tubing would support the tendon path, and elastic on the back would make it snap back into place.

Building the full hand. I cut all five fingers and mounted them on a cardboard palm with PVC tendon tubing and a three-row staggered servo layout so that nothing crashes into each other. Sitting on the floor late at night surrounded by cardboard, glue, and fishing line gave me major A-level product design flashbacks, and it was honestly kind of comforting. (✿◠‿◠)

Cardboard hand prototype with five fingers Servo layout prototype

servo layout is still a prototype (still need to affix the fishing wire to the servos, add more PVC tubing, and stick the servos down properly).

First signs of life!

Running on a Pico 2 W. I started by installing Thonny and flashing MicroPython onto the Pico, and then ran some test code just to make sure everything was reading properly.

Soldered the EMG sensor. I soldered header pins onto the MyoWare 2.0 for the jumper wires, and then realised I’d put them on the wrong side. Another 30 minutes of painstaking de-soldering and re-soldering later and we were back in business.

MyoWare 2.0 with header pins soldered on

this is the after photo.

Got the first muscle signal! I wired the MyoWare to the Pico, stuck electrodes on my forearm, and ran a test script via Thonny. My relaxed arm was giving figures in the low thousands while clenching jumped into the tens of thousands – it’s actually reading my muscles. (*´◡`*)

Quest accepted

The plan is to build an EMG-powered robotic hand that reads the electrical signals from my arm muscles, so I can control a mechanical hand entirely by flexing. I’ve been wanting to try something like this for a while now, and the parts are finally on order. :)