

Single-channel surface-EMG front end (AD623 + driven-right-leg) on a Raspberry Pi Pico. Board fabricated and telemetry verified on hardware; analog front end and on-body EMG still in bring-up.
- Size
- 100 × 100 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 40
- Nets
- 61
- Pads
- 144
- Tracks, vias
- 277, 31
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 15 Jul 2026
- Updated
- 7 Sep 2026
Overview
Emg is an open-source printed circuit board by Pai-88, from the Pai-88/emg-robotic-hand repository on GitHub, published under the MIT licence. It is a 2-layer board of 100 × 100 mm with 40 parts on 61 nets, routed with 277 tracks and 31 vias.
It is built around the AD623AN, MCP6004-E/P and BAT85. Its parts include 15 resistors, 9 connectors, 8 capacitors, 2 ICs and 2 diodes. It belongs with the RP2040 boards of this library.
Main components
3AD623AN
PDIP-8-40℃~+85℃ 0.35% 0.3V/us 1 17nA 1V/V~1000V/V 25uV External resistor gain PDIP-8 Instrumentation AmplifiersAnalog DevicesInstrumentation AmplifiersMCP6004-E/P
PDIP-14-40℃~+125℃ 1.8V~6V 100uA 1MHz 1pA 1pA 23mA 28nV/√Hz@1kHz 2uV/℃ 4 4.5mV 600V/ms 76dB ESD protection Rail-to-Rail Input, Rail-to-Rail Output PDIP-14 Operational Amplifier ROHSMicrochip TechnologyOperational AmplifierBAT85
DO-341 Independent 200mA 2uA@25V 30V 5A 800mV@100mA DO-34 Schottky Diodes ROHSNexperiaSchottky Diodes
README
README.mdEMG-Controlled Robotic Hand
A wearable single-channel surface-EMG front end that reads how hard a forearm muscle contracts and drives a robotic gripper proportionally. The whole control loop runs on a Raspberry Pi Pico rather than on a PC: squeeze harder and the grip closes further, relax and it opens.
Safety: read this before building anything
This is an experimental, self-built device that puts electrodes on skin. It is not a medical device, has not been certified, and must not be used for diagnosis, monitoring, or any clinical purpose.
- Battery power only. Never wear the electrodes while anything in the signal path is connected to mains. The driven-right-leg (DRL) circuit actively drives the reference electrode; R14 (390 kΩ) holds body current under 5 µA, but that only holds while the board is isolated from mains. Powering the Pico from a laptop that is plugged in to charge defeats it, so run the host on its own battery whenever electrodes are on skin.
- The board carries the silkscreen legend "BATTERY POWER ONLY - no mains while worn" and has no provision for a mains adapter.
- Build and use it at your own risk.
Status
The rev E board is built and the digital side works on real hardware. The analog front end has not been powered yet, so no EMG has been recorded from skin. What has been checked so far:
| Part | State |
|---|---|
| Analog front end (rev E) | Designed, DRC-clean, fabricated at JLCPCB and hand-soldered. Servo section (J5-J9, J10, C8) left unpopulated. C3 not fitted yet. The +/-9 V rails are not connected, so the front end itself is unverified |
| Firmware logic | 77 native tests pass (DSP, safety FSM, control law, protocol) |
| Firmware on hardware | Builds with PlatformIO, flashed to the Pico, enumerates over USB |
| Telemetry link (bring-up gate 4) | Passes. 10 s capture: 499 frames at 49.87 frames/s, 997.4 Hz sample rate, 0 CRC errors, 0 dropped frames, 0 resyncs |
| Host tools | Python test suite passes against a simulator, and host.cli monitor runs against the real board |
| On-body EMG | Not done. Next steps are in board/revd/bringup.md: connect +/-9 V (check polarity first), check rails and VMID, fit C3, then stage 5 on battery |
A few fitted resistors differ from the schematic because I did not have the exact values (R5 = 10k, R6 = 3.3k, R11 = R12 = 100k, R13 = 3.3M, R14 = 470k). Total gain is about 227 instead of the designed 336. Anything not listed as passing above should be treated as unverified.
How it works
electrode (forearm) Raspberry Pi Pico (RP2040)
│ ~a few hundred µV │
▼ ▼
AD623 in-amp ─► MCP6004 gain + 442 Hz LPF ─► ADC0 @ 1 kHz ─► 20 Hz HPF,
(×20.6) (×16, total ≈ 330) │ 50/100/150 Hz notches,
│ rectify + 200 ms RMS envelope
driven-right-leg mains rejection │
▼
safety state machine ─► proportional
(INIT/IDLE/ACTIVE/HOLD/ map + slew limit
FAULT/latched ESTOP) │
▼
servo PWM ─► geared gripper- The control loop runs entirely on the Pico. The host (a Mac or a Pi 5 over USB) only plots, calibrates, and logs, so if you unplug it the gripper keeps working.
- One EMG channel measures how hard the muscle is working, not which hand
posture you are making. Contraction strength maps continuously onto grip
aperture, which suits a one-degree-of-freedom gripper. There is no gesture
classifier, no training data, and no ML model to run at runtime. (More in
firmware/pico_emg/README.md.) - There are no force sensors on the board, so the firmware uses signal quality itself as a safety check: it watches for saturation, flat-line, DC drift, and stale data, and releases the grip on a sustained fault instead of freezing it.
Key numbers: about 330× total gain, 2.443 µV per ADC count referred to skin, 1 kHz sampling, 442 Hz single-pole anti-alias, DRL mains rejection, and a 100 × 100 mm 2-layer through-hole board.
Hardware
The analog front end is a single KiCad project (rev E). Full sources, exported
gerbers, and fab notes are under board/revd/.
Schematic. Two-stage gain, driven-right-leg mains rejection, VMID reference, ADC clamp protection, and the isolated servo-output block:

PCB. 100 x 100 mm, 2-layer, all through-hole:

Repository layout
| Path | What |
|---|---|
board/revd/ | The rev E analog front end: KiCad sources, exported gerbers, and the constraints / fab / bringup docs. (The directory is named revd for historical reasons; the board it holds is rev E.) |
firmware/pico_emg/ | RP2040 firmware: header-only DSP, safety FSM, control law, PICO1 telemetry, and 77 native logic tests |
host/ | USB observer (plot / calibrate / log), deliberately not in the control loop |
tests/ | Host-side tests, including wire-format parity against the firmware |
docs/wiring/ | LaTeX wiring / connection guide |
The 3D-printable gripper CAD is being reworked and will be added in a later update.
Build & test
# Firmware: Raspberry Pi Pico / RP2040 (PlatformIO)
cd firmware/pico_emg
pio run -e pico # builds firmware.uf2
./test/run_tests.sh # 77 native logic tests (compiles the real headers)
# Host tools: Python, from the repo root
python3 -m pytest # host test suite
python3 -m host.cli selftest # no hardware needed
python3 -m host.cli --simulate monitor # run the pipeline against simulated EMGBring-up
If you fabricate the board, work through
board/revd/bringup.md top to bottom and do not skip a
failed gate. Several stages put voltage near skin, and stages 4–6 need the host
running on battery, unplugged from mains. Only when every gate passes with real
numbers should any part of this be described as working.
License
MIT © 2026 Paing Hein Htet.
Parts
40| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100n | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C1, C2, C4, C6 |
| 4 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R2, R4, R10 |
| 4 | MountingHole_3.2mm_M3 | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 2 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R7, R8 |
| 2 | 150k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R11, R12 |
| 2 | BAT85 | Diode_THT:D_DO-35_SOD27_P7.62mm_Horizontal | D1, D2 |
| 1 | +5V servo in | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_Horizontal | J10 |
| 1 | +9/GND/-9 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-3-2.54_1x03_P2.54mm_Horizontal | J4 |
| 1 | 0R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R15 |
| 1 | 10u | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C5 |
| 1 | 15k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R5 |
| 1 | 1u | Capacitor_THT:C_Rect_L7.0mm_W2.0mm_P5.00mm | C3 |
| 1 | 3.6k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R6 |
| 1 | 3.9M | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R13 |
| 1 | 390k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R14 |
| 1 | 470u | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C8 |
| 1 | 47p | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C7 |
| 1 | 5.1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R9 |
| 1 | 8.2k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R3 |
| 1 | AD623AN | Package_DIP:DIP-8_W7.62mm | U1 |
| 1 | Electrodes | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J1 |
| 1 | MCP6004 | Package_DIP:DIP-14_W7.62mm | U2 |
| 1 | Pico / RP2040 | emg:Pico_Socket_2x1x20 | J2 |
| 1 | Servo 1 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J5 |
| 1 | Servo 2 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J6 |
| 1 | Servo 3 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J7 |
| 1 | Servo 4 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J8 |
| 1 | Servo 5 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J9 |
Similar boards
- 2 layers190 × 30 mm

- 2 layers60 × 44 mm

Sensorboard
ninkaninus/TeamTurboTurtle
This is the repository of Team Turbo Turtle. A group made for the second semester project in robotics technology at Southern University Of Denmark.
30 parts - 2 layers66.5 × 53 mm

ECG Project Josh
TallesSantosCUBoulder/ECEN4532_DSPLab_Spring2026_ECG_Project
This signal of the heartbeat, in the form of the "PQRST" complex as seen with Figure 1, is what needs to be detected in order to find important information about a patient's heart.
35 partsMIT - 2 layers66 × 99 mm

Nucleo32TNC
mobilinkd/NucleoTNC
The Nucleo TNC is a breadboard implementation of the Mobilinkd TNC3 using a STM32L432KC Nucleo32 board. This TNC faithfully implements the audio section and EEPROM storage of the TNC3.
54 parts110GPL-3.0 - 2 layers144.1 × 181.4 mm

Quadulator
GlobalSequence/quadulator
Quadulator - A quad LFO/ADSR envelope generator for Eurorack synthesizers
128 parts6 - 2 layers66 × 99 mm

Nucleo32TNC
mobilinkd/NucleoTNC-KiCAD
KiCAD files for NucleoTNC PCB and Enclosure
54 parts5CERN-OHL-S-2.0 - 2 layers213 × 65.1 mm

- 2 layers111.3 × 106.4 mm

Super Sixteen v1
matthewcieplak/super-sixteen
Code and schematics for the Super Sixteen Eurorack sequencer
141 parts171
Questions
How big is the Emg PCB?
It measures 100 × 100 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Emg use?
40 parts, built around the AD623AN, MCP6004-E/P and BAT85. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Emg KiCad files?
From the Pai-88/emg-robotic-hand repository on GitHub, at the commit this page was made from: the board is board/revd/kicad/emg.kicad_pcb and its schematic board/revd/kicad/emg.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Emg design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).