Skip to the content
2 layers100 × 100 mmEmg, the printed circuit board in 3D

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

3

README

README.md

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

PartState
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 logic77 native tests pass (DSP, safety FSM, control law, protocol)
Firmware on hardwareBuilds 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 toolsPython test suite passes against a simulator, and host.cli monitor runs against the real board
On-body EMGNot 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

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

EMG analog front-end schematic

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

EMG front-end PCB, top view

Repository layout

PathWhat
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

bash
# 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 EMG

Bring-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
QtyValueFootprintReferences
4100nCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1, C2, C4, C6
41kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R4, R10
4MountingHole_3.2mm_M3MountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
210kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR7, R8
2150kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR11, R12
2BAT85Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1, D2
1+5V servo inTerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_HorizontalJ10
1+9/GND/-9TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-3-2.54_1x03_P2.54mm_HorizontalJ4
10RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR15
110uCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC5
115kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5
11uCapacitor_THT:C_Rect_L7.0mm_W2.0mm_P5.00mmC3
13.6kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6
13.9MResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR13
1390kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR14
1470uCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC8
147pCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC7
15.1kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR9
18.2kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR3
1AD623ANPackage_DIP:DIP-8_W7.62mmU1
1ElectrodesConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1MCP6004Package_DIP:DIP-14_W7.62mmU2
1Pico / RP2040emg:Pico_Socket_2x1x20J2
1Servo 1Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ5
1Servo 2Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1Servo 3Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7
1Servo 4Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ8
1Servo 5Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ9

Similar boards

  • 2 layers190 × 30 mmOsilloscopen, the printed circuit board in 3D

    Osilloscopen

    pondahai/oscilloscopen

    stm32f103 handheld oscilloscope

    63 parts8
  • 2 layers60 × 44 mmSensorboard, the printed circuit board in 3D

    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 mmECG Project Josh, the printed circuit board in 3D

    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 mmNucleo32TNC, the printed circuit board in 3D

    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 mmQuadulator, the printed circuit board in 3D

    Quadulator

    GlobalSequence/quadulator

    Quadulator - A quad LFO/ADSR envelope generator for Eurorack synthesizers

    128 parts6
  • 2 layers66 × 99 mmNucleo32TNC, the printed circuit board in 3D

    Nucleo32TNC

    mobilinkd/NucleoTNC-KiCAD

    KiCAD files for NucleoTNC PCB and Enclosure

    54 parts5CERN-OHL-S-2.0
  • 2 layers213 × 65.1 mmSizif512, the printed circuit board in 3D

    Sizif512

    UzixLS/zx-sizif-512

    ZX Spectrum CPLD-based clone for rubber case

    214 parts195MIT
  • 2 layers111.3 × 106.4 mmSuper Sixteen v1, the printed circuit board in 3D

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