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.