Skip to the content
2 layers56 × 45.6 mmEmg tht, the printed circuit board in 3D

Designed for researchers, clinicians, and engineers working on brain-computer interfaces, assistive communication devices, and EMG-based control systems.

Size
56 × 45.6 mm
Copper layers
2
Thickness
1.6 mm
Parts
41
Nets
28
Pads
106
Tracks, vias
174, 0
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
15 May 2026
Updated
19 Jun 2026

Overview

Emg tht is an open-source printed circuit board by intropercib, from the intropercib/openmyo repository on GitHub, published under the MIT licence. It is a 2-layer board of 56 × 45.6 mm with 41 parts on 28 nets, routed with 174 tracks and 0 vias.

It is built around the LM324. Its parts include 16 capacitors, 15 resistors, 3 connectors and 2 ICs.

Main components

1

README

README.md

OpenMyo — Advanced sEMG Acquisition & Digital Signal Processing Platform

Open-source hardware and software framework for wearable facial surface electromyography (sEMG), engineered for Silent Speech Interface research and clinical EMG applications.

License: MIT Python Hardware: KiCAD Status: Production-Ready [blocked] DOI


OpenMyo is a complete, end-to-end platform for capturing, processing, and analyzing surface electromyography (sEMG) signals from facial muscles during sub-vocalization — the articulation of speech without sound emission. The project combines a precision analog acquisition front-end with a state-of-the-art six-stage digital signal processing (DSP) pipeline to extract clean, physiologically meaningful muscle activation envelopes from extremely low-amplitude recordings (10–200 µV) in the presence of powerline interference, motion artifacts, and electronic noise.

Designed for researchers, clinicians, and engineers working on brain-computer interfaces, assistive communication devices, and EMG-based control systems.


Table of Contents


Overview

Why OpenMyo?

Surface electromyography is one of the most direct, non-invasive windows into neuromuscular activity. However, EMG signals from facial muscles during silent speech are extremely challenging:

  • Ultra-low amplitude: 10–200 µV — comparable to background noise
  • Multi-source interference: 50/100/150 Hz powerline harmonics, motion artifacts, electrode drift
  • Non-stationary morphology: Motor unit action potentials (MUAPs) vary in shape, amplitude, and timing
  • High inter-subject variability: Electrode placement, skin impedance, and muscle anatomy differ vastly

OpenMyo solves these challenges through:

  1. Precision Analog Front-End

    • 12-bit SAR ADC at 1000 Hz sampling
    • AD620 instrumentation amplifier with 600x gain
    • Dual-stage filtering: hardware (anti-aliasing) + software
    • Single +9V supply via battery and 3.3V supply via ESP32 (i/p offset)
  2. Adaptive, Production-Grade DSP Pipeline

    • Six processing stages, each grounded in peer-reviewed literature
    • Adaptive algorithms: Harmonic notch detection, bandwidth optimization
    • Wavelet denoising: Time-frequency adaptive noise suppression
    • Robust envelope extraction: Full-wave rectification + linear smoothing
    • All algorithms implement numerically stable, well-conditioned implementations
  3. Open-Source Hardware & Software

    • Full KiCAD schematics and PCB layouts (SMD and through-hole variants)
    • Production-ready interactive bills of materials (iBOM)
    • Complete Python DSP library with zero external dependencies beyond NumPy/SciPy
    • Real-time capable via causal filtering modes
    • Documented at publication-ready level

Publication

This repository accompanies the peer-reviewed publication:

Design and Development of a Low-Cost sEMG Acquisition System with Adaptive DSP Pipeline

Authors

  • Aashu Chaudhary
  • Bigyan Nepali
  • Sakar Giri
  • Shree Ram Neupane

Department of Computer and Electronics Engineering, Kantipur Engineering College, Dhapakhel, Lalitpur, Nepal

Published in: International Journal on Engineering Technology (InJET)

DOI: https://doi.org/10.3126/injet.v3i2.95514


Repository Structure

text
openmyo/
├── README.md                          # This file
├── LICENSE                            # MIT License
├── CONTRIBUTING.md                    # Contribution guidelines
├── CODE_OF_CONDUCT.md                 # Community standards
│
├── dsp/                               # Digital Signal Processing Pipeline
│   ├── main.py                        # Complete DSP pipeline implementation
│   ├── README.md                      # Detailed DSP documentation (6 stages)
│   ├── requirements.txt               # Python dependencies
│   └── [sample data files]            # csv file
│
├── emg_smd/                           # Surface-Mount PCB Implementation
│   ├── emg_smd.kicad_pro              # KiCAD project file
│   ├── emg_smd.kicad_sch              # Schematic (power, analog, digital stages)
│   ├── emg_smd.kicad_pcb              # PCB layout (4-layer, optimized routing)
│   └── bom/
│       └── ibom.html                  # Interactive bill of materials
│
├── emg_tht/                           # Through-Hole PCB Implementation
│   ├── emg_tht.kicad_pro              # KiCAD project file
│   ├── emg_tht.kicad_sch              # Schematic (through-hole only)
│   ├── emg_tht.kicad_pcb              # PCB layout (prototyping-friendly)
│   └── bom/

Hardware Implementation

Circuit Architecture

The OpenMyo front-end implements a classic biomedical instrumentation architecture optimized for facial sEMG:

text
┌──────────────────────────────────────────────────────────────────┐
│                      ANALOG SIGNAL CHAIN                         │
│                                                                  │
│  Electrode      Pre-Amp       Instrumentation    Output          │
│  Pair           Filter        Amplifier (AD620)  Filter          │
│  (50 nV/μV)    (1st stage)    Gain: 600x        (Anti-alias)     │
│      │              │              │                │            │
│  [Signal] ──> [HPF 0.5 Hz] ──> [+600V gain] ──> [LPF 500 Hz]     │
│      │              │              │                │            │
│   IN+, IN-,        REF            REF               │            │
│   REF                                               │            │
│                                                     ↓            │
│                                             [ADC 12-bit, 1kHz]   │
│                                                      │           │
│                                                  [ESP32]         │
│                                                      │           │
│                                             Digital Signal       │
│                                                Processing (DSP)  │
└──────────────────────────────────────────────────────────────────┘

Labeled PCB Diagram

Below is the annotated front-end circuit showing the complete signal path:

OpenMyo EMG Front-End Circuit

Signal Flow Explanation:

LabelFunctionDetails
IN+, IN-, REFElectrode InputsDifferential pair (IN+/IN-) + reference for driven-right-leg (DRL) circuit
PRE_AMPPre-amplification StageInitial gain, AC coupling for DC rejection
HPFHigh-Pass Filter0.5 Hz corner frequency, removes electrode drift and DC offset
LPFLow-Pass Filter500 Hz anti-alias filter before ADC sampling
POST_OUTPost-Amplifier OutputAdditional gain stage and output buffering
OUT_DCOFFSETDC Offset ControlFine-tuning of DC bias for optimal ADC headroom
AD620Instrumentation AmplifierAnalog Devices AD620, 600× voltage gain, <1% gain error
LM324General-Purpose Op-AmpQuad op-amp for filtering, biasing, and output buffering
Power Rails±9V, GND, +3.3VMultiple rails for analog (±9V) and digital (+3.3V) circuits

Signal Chain — End-to-End

text
┌────────────────────────────────────────────────────────────────────┐
│                      SIGNAL FIDELITY CHAIN                         │
└────────────────────────────────────────────────────────────────────┘

1. ELECTRODE PLACEMENT
   └─ Facial muscles over sternocleidomastoid (SCM) or orbicularis oris
   └─ Bipolar differential montage (IN+ / IN-) + DRL reference
   └─ Silver-silver chloride electrodes, 10 mm spacing
   └─ Impedance: 1–10 kΩ (skin dependent)

2. PRE-AMPLIFICATION (Hardware HPF)
   └─ Coupling: AC-coupled (0.5 Hz corner)
   └─ Goal: Reject DC offset, electrode polarization
   └─ Output range: ±100 mV (before AD620)

3. INSTRUMENTATION AMP (AD620, 600× gain)
   └─ Differential gain: 600V/V (exactly)
   └─ Common-mode rejection ratio: 86 dB @ 60 Hz
   └─ Scales 10–200 µV input → 6–120 mV for ADC
   └─ Output impedance: <100 Ω

4. ANTI-ALIASING FILTER (500 Hz LPF)
   └─ Topology: 2nd-order Sallen-Key (butterworth)
   └─ Prevents aliasing of EMG content above Nyquist (500 Hz)

Digital Signal Processing Pipeline

The OpenMyo DSP pipeline is a six-stage, production-grade system that progressively transforms raw ADC counts into clean, physiologically interpretable muscle activation envelopes. Every stage is grounded in peer-reviewed signal processing literature and optimized for real-time performance.

Pipeline Overview

text
Raw ADC Counts (12-bit)
        ↓
  STAGE 0: ADC Calibration + MVC Normalisation
        ↓
  STAGE 1: DC Removal (Mean Subtraction)
        ↓
  STAGE 2: Adaptive Harmonic Notch Filtering (PSD-driven)
        ↓
  STAGE 3: Butterworth Bandpass Filter (20–450 Hz)
        ↓
  STAGE 4: Wavelet Denoising (db4, VisuShrink threshold)
        ↓
  STAGE 5: Full-Wave Rectification + Linear Envelope
        ↓
Clean Muscle Activation Envelope (%MVC)

Key Features

  • Adaptive Algorithms: Stages 2 & 3 measure the actual signal spectrum before deciding what to filter
  • Numerically Robust: All filters implemented as second-order sections (SOS) for numerical stability
  • Zero-Phase Option: Offline analysis via bidirectional filtering (filtfilt)
  • Real-Time Mode: Causal filtering with ~4 ms latency for embedded deployment
  • Comprehensive Outputs: Every intermediate signal is available for debugging and analysis

Detailed Documentation

For complete mathematical treatment, implementation details, and parameter reference, see here. The DSP module includes:

  • Stage-by-stage algorithm descriptions with equations
  • Wavelet denoising theory (Donoho-Johnstone VisuShrink)
  • Adaptive notch filtering via Welch PSD analysis
  • Adaptive bandwidth detection with SNR thresholding
  • Usage examples and configuration reference

DSP Pipeline — Figures & Validation

The following publication-quality figures illustrate pipeline behaviour on real recordings collected from facial muscle sites across two subjects and four task groups (face/E phoneme, face/O phoneme, face/sentence, and hand contractions). Each figure isolates a different aspect of the processing chain, from raw acquisition through spectral characterisation to single-burst morphology.


Figure 1 — EMG Signal Processing Pipeline: Time Domain & PSD (Notch)

EMG Signal Processing Pipeline: Time Domain & PSD

This four-row composite panel traces one representative recording through the first four stages of the pipeline, presenting both the time-domain waveform (left column) and its Welch power spectral density estimate (right column) at every stage.


Figure 5 — 1-Second Zoomed Segment: Raw → Final

1-Second Zoomed Segment: Raw to Final

This three-panel figure zooms into a 1.0-second window spanning a single activation burst onset (approximately 11.15–12.20 s), allowing visual inspection of MUAP morphology at millisecond resolution across the three most critical processing stages.


Figure E — Median PSD ± IQR Ribbon Across All Datasets

Median PSD ± IQR Ribbon Across All Datasets

This cross-dataset validation figure aggregates PSD estimates from all six individual recordings (h1–h6, shown as thin coloured traces) to compare spectral characteristics at the raw stage versus the final denoised stage, using the inter-quartile range ribbon (IQR, 25th–75th percentile) as a measure of cross-recording consistency.


Quick Start

Minimum Viable Setup

  1. PCB Assembly (choose one):

    • Option A (Recommended): Order SMD variant from JLCPCB (~$15/board + assembly fee)
    • Option B: Hand-assemble through-hole variant (~2 hours + $25 parts)
  2. Flash ESP32 Firmware:

    bash
    # Clone repository
    git clone https://github.com/openmyo/openmyo.git
    cd openmyo
    
    # [Firmware flashing]
    # firmware.ino
  3. Run DSP Pipeline:

    bash
    cd dsp
    pip install -r requirements.txt
    python main.py data/sample.csv

Installation

Hardware Requirements

  • PCB Board: EMG_SMD or EMG_THT (see Hardware Implementation)
  • Electrodes: Silver-silver chloride bipolar pair + reference (e.g., Delsys Trigno)
  • Microcontroller: ESP32-DevKitC or compatible
  • Power: USB 5V or 3.7V Li-Po battery

Software Requirements

  • Python 3.8+
  • Dependencies (automatically installed):
    • NumPy ≥ 2.0
    • SciPy ≥ 1.17
    • Pandas ≥ 3.0
    • PyWavelets ≥ 1.9

Install Python DSP Pipeline

bash
# Clone repository
git clone https://github.com/openmyo/openmyo.git
cd openmyo/dsp

# Create virtual environment (recommended)
python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Usage

Running the Complete Pipeline

python
from main import DSPPipeline

# Initialize pipeline
dsp = DSPPipeline()

# Load raw ADC data and run all 6 stages
result = dsp.run_full_pipeline('path/to/data.csv')

# Access results
print(f"Signal duration        : {result['meta']['duration_s']:.2f} s")
print(f"DC offset removed      : {result['dc_val']:.2f} µV")
print(f"Notch frequencies      : {result['notch_freqs_detected']} Hz")
print(f"Bandpass cutoffs       : {result['bp_cutoffs_used']} Hz")
print(f"Wavelet noise estimate : {result['sigma_w']:.4f} µV")
print(f"Clean envelope shape   : {result['envelope'].shape}")

Stage-by-Stage Processing

python
# Load and calibrate
t, raw_adc, uv, meta = dsp.load_and_calibrate('data.csv')

# Stage 1: DC Removal
dc_removed, dc_val = dsp.dc_removal(uv)

# Stage 2: Adaptive Notch Filtering
notch_filtered, detected_freqs, f_psd, pxx = dsp.adaptive_notch_filter(dc_removed)
print(f"Detected interference: {detected_freqs} Hz")

# Stage 3: Bandpass Filter
bp_filtered = dsp.bandpass_filter(notch_filtered)

# Stage 4: Wavelet Denoising
denoised, sigma, lam, coeffs = dsp.wavelet_denoise(bp_filtered)

# Stage 5: Envelope
rectified, envelope = dsp.linear_envelope(denoised)

Real-Time / Causal Mode (ESP32)

python
# For embedded systems with strict latency requirements
notch_filtered, _, _, _ = dsp.adaptive_notch_filter(signal, causal=True)
bp_filtered = dsp.bandpass_filter(notch_filtered, causal=True)
# Introduces ~4 ms group delay (acceptable for speech interfaces)

Input Data Format

text
CSV format expected by load_and_calibrate():

sample_index, raw_adc
0, 2048
1, 2050
2, 2051
...

Complete Documentation

For detailed parameter reference, advanced usage, and mathematical foundations, see dsp/README.md.


Contributing

We welcome contributions from researchers, engineers, and makers! Whether you're fixing bugs, adding features, or improving documentation, please see CONTRIBUTING.md for detailed guidelines.

How to contribute:

  1. Code: Improve DSP algorithms, add new filtering modes, optimize for embedded systems
  2. Hardware: Design extensions (multi-channel, wireless variants), improve PCB layouts
  3. Documentation: Clarify explanations, add examples, translate to other languages
  4. Research: Validation studies, novel applications, performance benchmarks
  5. Community: Answer questions, share projects, organize events

License

This project is licensed under the MIT License — see LICENSE for full terms.


Acknowledgments

  • AD620 Instrumentation Amplifier: Analog Devices
  • ESP32 Microcontroller: Espressif Systems
  • KiCAD: Open-source electronics design automation
  • Scientific Computing: NumPy, SciPy, PyWavelets communities
  • References: Donoho & Johnstone (VisuShrink), De Luca et al. (sEMG filtering), Merletti & Parker (EMG theory)

Parts

41
QtyValueFootprintReferences
90.1uCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC2, C6, C10, C11, C12, C13, C14, C15, C16
510KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5, R9, R10, R12, R15
410uCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC1, C7, C8, C9
31KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3
3MountingHole_PadMountingHole:MountingHole_2.2mm_M2_DIN965_PadH1, H2, H3
21nCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC3, C5
22.7KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR8, R11
256KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR4, R6
26.2KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR7, R13
2Conn_01x05_PinConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ1, J3
2R_PotentiometerPotentiometer_THT:Potentiometer_Bourns_3296W_VerticalRV1, RV2
110nCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC4
12KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR14
1AD620Package_DIP:DIP-8_W7.62mm_Socket_LongPadsU2
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ2
1LM324Package_DIP:DIP-14_W7.62mm_Socket_LongPadsU1

More from intropercib/openmyo

1
  • 2 layers45.4 × 38 mmEmg smd, the printed circuit board in 3D

    Emg smd

    intropercib/openmyo

    Designed for researchers, clinicians, and engineers working on brain-computer interfaces, assistive communication devices, and EMG-based control systems.

    39 partsMIT

Similar boards

  • 4 layers99 × 53.3 mmPSLab, the printed circuit board in 3D

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 2 layers36.8 × 34.7 mmTinylab proto1, the printed circuit board in 3D

    Tinylab proto1

    espotek-org/Labrador

    EspoTek Labrador is a USB device that transforms your PC or smartphone into a fully-featured electronics lab. This repo holds all of the source code!

    79 parts1.2k
  • 4 layers82.6 × 82.5 mmJumperless2, the printed circuit board in 3D

    Jumperless2

    Architeuthis-Flux/Jumperless

    A jumperless breadboard

    208 parts914
  • 2 layers231.1 × 106.7 mmSnark barker, the printed circuit board in 3D

    Snark barker

    schlae/snark-barker

    A 100% compatible replica of the famed SB 1.0 sound card

    199 parts687
  • 4 layers82.6 × 82.6 mmJumperlessV5r8, the printed circuit board in 3D

    JumperlessV5r8

    Architeuthis-Flux/JumperlessV5

    The next generation jumperless breadboard

    650 parts332
  • 4 layers72.4 × 95.3 mmDingoPDM, the printed circuit board in 3D

    DingoPDM

    corygrant/dingoPDM

    Hardware - dingoPDM is an open source, affordable automotive PDM (Power Distribution Module). Pre-assembled and tested units are available or the design can be used to build a DIY version.

    156 parts128MIT
  • 2 layers191.5 × 76 mmPcb project, the printed circuit board in 3D

    Pcb project

    CrashOverride85/zc95

    4 channel EStim box inspired by the mk312bt, with Lua scripting support

    337 parts117GPL-3.0
  • 4 layers292.1 × 88.3 mmSnark barker mca, the printed circuit board in 3D

    Snark barker mca

    schlae/snark-barker-mca

    A Sound Blaster compatible sound card for Micro Channel bus computers

    177 parts69

Questions

How big is the Emg tht PCB?

It measures 56 × 45.6 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Emg tht use?

41 parts, built around the LM324. 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 tht KiCad files?

From the intropercib/openmyo repository on GitHub, at the commit this page was made from: the board is emg_tht/emg_tht.kicad_pcb and its schematic emg_smd/emg_smd.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Emg tht 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).