Deniz Gursoy Electrical Engineering at UPenn · Hardware Design, Robotics, and Embedded Systems
All projects

FPGA and hardware · Hardware build

8-channel EMG acquisition system for a prosthetic arm

Penn ADAPT is building a prosthetic arm controlled by surface EMG, the muscle signals in the user's arm. I co-lead the project and developed its EMG acquisition system.

Dates
Sep 2025 to now
Context
Penn ADAPT
Role
Project co-lead: hardware and firmware
Status
In progress: EMG has driven the arm, on-board classifier planned
Render of the prosthetic arm's green main board V1, with a large STMicroelectronics chip, a smaller Texas Instruments chip and connectors marked Actuator, Battery and SWD.
8 channelsin the design, one 24-bit ADS1291 per electrode pair
57.6 µsbudgeted to read all eight ADCs at 10 MHz SPI, in a 1 ms period
20,000samples in a 10 s capture from one electrode input, at gain 6
20 to 450 Hzband-pass applied offline, with notches at 60, 120 and 180 Hz

The design covers acquisition and actuation: eight sensor modules with a 24-bit ADS1291 each, and an STM32H730 main board. EMG signals have driven the arm. The captures shown are single-channel, and an on-board gesture classifier is planned.

The problem

Penn ADAPT is building a prosthetic arm controlled by surface EMG. We wanted eight electrode pairs around the arm, sampled together. Dry-electrode EMG is microvolt-scale and sits beside SPI clocks and amp-level motor current.

What I built

The sensing side is designed as eight rigid modules. Each carries two electrode pads, a high-frequency input filter and a 24-bit TI ADS1291 ADC with a built-in programmable-gain amplifier. I contributed to the schematic and layout of the sensor modules in Altium.

The eight ADCs share one SPI bus and clock, with independent chip-select lines. Their START pins are tied so they sample together. I wrote the acquisition firmware, which configures the ADCs and reads each 48-bit frame into a per-channel data path. At 10 MHz, all eight reads, with overhead, are budgeted at 57.6 µs of the 1 ms period.

The STM32H730 main board has a DRV8874 H-bridge (up to 6 A peak) for the linear actuator. Its PWM outputs are for a dual-servo joint stage. I implemented the PWM and control interfaces, with current sensing and fault feedback from the H-bridge. I built a modular Raspberry Pi Pico interface for actuator prototyping and per-user calibration.

A 2S LiPo feeds 12 V actuator and 6 V servo rails, plus a separate 3.3 V sensing and logic rail. A buck converter feeds a TPS7A20 LDO on each module, to keep switching ripple off the analog supply.

Results

A 10 s capture from one ADS1291 input holds 20,000 samples at gain 6. The raw trace rides on a drifting DC offset near 60 mV.

Offline, a 20 to 450 Hz zero-phase band-pass with 60, 120 and 180 Hz notches removes it. After filtering, a separate capture shows six bursts. Their 100 ms RMS envelope peaks between about 200 and 300 µV and rests near 10 µV between bursts.

During sensor bring-up I saw a repeating high-frequency artifact on the waveform. With the oscilloscope I traced it to SCLK coupling into the analog front end, near an imperfect ground plane boundary. I rerouted the sensitive traces and tightened the ground isolation there, and the artifact disappeared.

Bench test of the main board, September 2026
Sensor board, Altium 3D view
Render of the prosthetic arm's narrow green sensor board, with a square chip at its center, two flat-cable connector footprints and the outlines of two large electrode pads.
Sensor board schematic: ADS1291, input filter, LDO, cable connectors
Altium schematic of one sensor board: an ADS1291 with 1 kΩ resistors and a 470 pF capacitor on its inputs, a TPS7A20 regulator, ESD diode arrays and two 20-pin cable connectors.
Planning sketch from the team's architecture document
Block drawing of a sensor board: two round electrode pads 20 mm apart on the front, an ADS1291 between two cable connectors on the back, and a main board with an STM32.
Raw capture from one ADS1291 input: 20,000 samples at gain 6
Line plot of raw input voltage over 10 seconds: a baseline near 60 mV that drifts slowly, with seven short bursts of fast oscillation on top of it.
A separate capture after the 20 to 450 Hz band-pass, with RMS envelope
Four stacked plots of a 10 second recording: raw input with drift, the band-passed signal with six bursts, a 100 ms RMS envelope peaking near 300 µV, and a spectrum up to 450 Hz.

Limits and next steps

Both captures are single-channel, and I have no eight-channel recording yet. The analysis plot warns that bursts are not automatically proven EMG.

The raw capture works out to 2 kSPS, twice the 1 kSPS in the timing budget. The artifact fix has no before-and-after measurement.

For the chip alone, the ADS1291 datasheet lists 1.3 µV RMS of input-referred noise at 1 kSPS and gain 6, inputs shorted. I have not measured noise on the boards. With an electrode attached, my filtered one-channel capture rests several times higher.

By calculation, acquisition adds about 4 ms of delay at the 1 kSPS design rate. The ADS1291 filter settles within four conversions, and the eight reads are budgeted at 57.6 µs. That leaves out the analysis window, the classifier and the actuator, and I have not measured latency.

EMG signals have driven the arm. The STM32H730 integration and the move to two servos are not finished. Next are on-board TinyML gesture classification and flexible or rigid-flex modules for better skin contact.

Ask a question about this project

An AI assistant answers from this site's text. It can be wrong; this page is the source.