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

Designed for researchers, clinicians, and engineers working on brain-computer interfaces, assistive communication devices, and EMG-based control systems.
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.
Open-source hardware and software framework for wearable facial surface electromyography (sEMG), engineered for Silent Speech Interface research and clinical EMG applications.
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.
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:
OpenMyo solves these challenges through:
Precision Analog Front-End
Adaptive, Production-Grade DSP Pipeline
Open-Source Hardware & Software
This repository accompanies the peer-reviewed publication:
Design and Development of a Low-Cost sEMG Acquisition System with Adaptive DSP Pipeline
Authors
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
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/The OpenMyo front-end implements a classic biomedical instrumentation architecture optimized for facial sEMG:
┌──────────────────────────────────────────────────────────────────┐
│ 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) │
└──────────────────────────────────────────────────────────────────┘Below is the annotated front-end circuit showing the complete signal path:

Signal Flow Explanation:
| Label | Function | Details |
|---|---|---|
| IN+, IN-, REF | Electrode Inputs | Differential pair (IN+/IN-) + reference for driven-right-leg (DRL) circuit |
| PRE_AMP | Pre-amplification Stage | Initial gain, AC coupling for DC rejection |
| HPF | High-Pass Filter | 0.5 Hz corner frequency, removes electrode drift and DC offset |
| LPF | Low-Pass Filter | 500 Hz anti-alias filter before ADC sampling |
| POST_OUT | Post-Amplifier Output | Additional gain stage and output buffering |
| OUT_DCOFFSET | DC Offset Control | Fine-tuning of DC bias for optimal ADC headroom |
| AD620 | Instrumentation Amplifier | Analog Devices AD620, 600× voltage gain, <1% gain error |
| LM324 | General-Purpose Op-Amp | Quad op-amp for filtering, biasing, and output buffering |
| Power Rails | ±9V, GND, +3.3V | Multiple rails for analog (±9V) and digital (+3.3V) circuits |
┌────────────────────────────────────────────────────────────────────┐
│ 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)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.
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)filtfilt)For complete mathematical treatment, implementation details, and parameter reference, see here. The DSP module includes:
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.

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.

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.

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.
PCB Assembly (choose one):
Flash ESP32 Firmware:
# Clone repository
git clone https://github.com/openmyo/openmyo.git
cd openmyo
# [Firmware flashing]
# firmware.inoRun DSP Pipeline:
cd dsp
pip install -r requirements.txt
python main.py data/sample.csv# 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.txtfrom 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}")# 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)# 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)CSV format expected by load_and_calibrate():
sample_index, raw_adc
0, 2048
1, 2050
2, 2051
...For detailed parameter reference, advanced usage, and mathematical foundations, see dsp/README.md.
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:
This project is licensed under the MIT License — see LICENSE for full terms.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 9 | 0.1u | Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm | C2, C6, C10, C11, C12, C13, C14, C15, C16 |
| 5 | 10K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R5, R9, R10, R12, R15 |
| 4 | 10u | Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm | C1, C7, C8, C9 |
| 3 | 1K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R2, R3 |
| 3 | MountingHole_Pad | MountingHole:MountingHole_2.2mm_M2_DIN965_Pad | H1, H2, H3 |
| 2 | 1n | Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm | C3, C5 |
| 2 | 2.7K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R8, R11 |
| 2 | 56K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R4, R6 |
| 2 | 6.2K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R7, R13 |
| 2 | Conn_01x05_Pin | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J1, J3 |
| 2 | R_Potentiometer | Potentiometer_THT:Potentiometer_Bourns_3296W_Vertical | RV1, RV2 |
| 1 | 10n | Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm | C4 |
| 1 | 2K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R14 |
| 1 | AD620 | Package_DIP:DIP-8_W7.62mm_Socket_LongPads | U2 |
| 1 | Conn_01x03_Pin | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J2 |
| 1 | LM324 | Package_DIP:DIP-14_W7.62mm_Socket_LongPads | U1 |

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

fossasia/pslab-hardware
PSLab Hardware Design and Schematics https://pslab.io

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!




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.

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

schlae/snark-barker-mca
A Sound Blaster compatible sound card for Micro Channel bus computers
It measures 56 × 45.6 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).