# Flex a forearm, grab a cube: EMG-controlled myCobot

A dry-electrode EMG band on your forearm opens and closes a myCobot 280 gripper, with no PC in the loop. One Arduino UNO R4 WiFi does all the signal work.

- Category: Hardware (build)
- Made by: [Elephant Robotics](https://www.hackster.io/Elephant-Robotics-Official) on Hackster.io
- Original: https://www.hackster.io/Elephant-Robotics-Official/clench-to-grab-muscle-controlled-mycobot-gripper-5f2aaa
- On Afterware: https://afterware.xyz/p/flex-a-forearm-grab-a-cube-emg-controlled-mycobot

## Can I build this?

- Difficulty: Intermediate
- AI-buildability: 4/5 (Most of the work is firmware (sampling, notch filtering, baseline tracking, serial gripper commands) that AI can write, while the wiring, soldering and electrode placement are hands-on but light.)
- Time: A weekend
- Cost: $450–600
- Parts: Arduino UNO R4 WiFi, myCobot 280 for Arduino, Elephant Robotics Adaptive Gripper, Dry-electrode sEMG sensor module
- Tools: soldering iron, jumper wires, Arduino IDE

Estimates based on the original write-up. How the AI-buildability score works: https://afterware.xyz/ai-buildability

## Starter prompt

```
Based on "Flex a forearm, grab a cube: EMG-controlled myCobot" on Afterware: https://afterware.xyz/p/flex-a-forearm-grab-a-cube-emg-controlled-mycobot

Write Arduino UNO R4 WiFi firmware that reads a dry-electrode EMG module on analog pin A0 at 1,000 Hz. Apply a notch filter for 50/60 Hz mains hum, track a resting baseline automatically, and map clench strength to a 12×8 LED matrix bar. When the signal crosses a threshold, send a gripper close or open command over Serial1 to a myCobot 280.
```

## Story

Clench your fist and the gripper closes on the cube. Relax and it opens. The sensor is a dry-electrode surface EMG module strapped to the inner forearm over the finger flexor muscles, and it feeds a single Arduino UNO R4 WiFi that samples at 1,000 Hz, filters out mains hum with a 13-stage digital filter, and tracks your resting baseline automatically.

The board's built-in 12×8 LED matrix doubles as a live clench meter. Wiring runs over hardware serial to the myCobot 280 base, and the firmware sends gripper commands straight to the arm. One detail matters: TX goes to TX and RX to RX, because the myCobot base already crosses the lines internally. Power is the other trap. Unplug the laptop charger so the laptop runs on battery, or the switching noise swamps the muscle signal.

Worth stealing: the signal chain is all firmware. Raw sensor output with your own filters beats an envelope module when you need to reject interference, and the LED matrix gives you a free debug display while you tune the strap.

## Resources

- [Project page](https://www.hackster.io/Elephant-Robotics-Official/clench-to-grab-muscle-controlled-mycobot-gripper-5f2aaa)
- [Firmware repo](https://github.com/vhp8rc7p/hackster/tree/main/emg-control-mycobot)
- [MyCobotBasic Arduino Library](https://github.com/elephantrobotics/MyCobotBasic)
- [myCobot 280 documentation](https://docs.elephantrobotics.com/docs/mycobot_280_ar_en/)

Tags: emg, mycobot 280, arduino uno r4, robotics, biosignal, dry electrode, led matrix

AI assistants can search all Afterware builds through the MCP server at https://afterware.xyz/mcp (setup: https://afterware.xyz/agents).
