Component guide · Intermediate · 3 min read
ECG, EMG and EEG Sensors
AD8232, Muscle Sensors and BioAmp Boards for Makers
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
ECG, EMG and EEG modules amplify tiny voltages from the skin so a microcontroller can read them. The AD8232 board reads heart signals, muscle sensors read EMG and BioAmp boards cover several signal types. Use battery power with no mains connection, stick electrodes on clean skin in the right places, filter noise and treat the result as a learning tool, never a medical device.
Key specs at a glance
- ECG
- AD8232 single-lead; about 1 mV signal
- EMG
- Muscle sensors with envelope output
- EEG/EOG
- BioAmp-style analog front ends
- Supply
- 3.3 to 5 V; battery power recommended
- Output
- Analog; read with an ADC
- Accessories
- Electrode pads and leads
Safety first
These parts are for learning and experiments, not medical diagnosis. Power the circuit from batteries, not from a mains-connected device, so no fault current can reach the body. Do not connect the electrodes while the board is plugged into a laptop on a charger if you can avoid it, and never use them on a person with a pacemaker or implanted device. Use fresh adhesive electrodes on clean, dry skin.
What each module reads
Pick the module by the signal.
| Module | Reads | Notes |
|---|---|---|
| AD8232 ECG module | Heart electrical signal (single lead) | Three electrodes: right arm, left arm, right leg |
| Muscle (EMG) sensor | Muscle activity (rectified and smoothed) | Electrodes along the muscle belly plus a reference |
| BioAmp / EXG pill | ECG, EMG, EOG or EEG | Configurable gain; needs more filtering knowledge |
| Surface EMG electrodes | Electrodes only | Use with an amplifier board |
- AD8232 ECG module
- Reads:
- Heart electrical signal (single lead)
- Notes:
- Three electrodes: right arm, left arm, right leg
- Muscle (EMG) sensor
- Reads:
- Muscle activity (rectified and smoothed)
- Notes:
- Electrodes along the muscle belly plus a reference
- BioAmp / EXG pill
- Reads:
- ECG, EMG, EOG or EEG
- Notes:
- Configurable gain; needs more filtering knowledge
- Surface EMG electrodes
- Reads:
- Electrodes only
- Notes:
- Use with an amplifier board
Wiring to Arduino or ESP32
Connect the module's 3.3 V (or 5 V as marked) and ground, then take the analog output to an ADC pin. Many AD8232 boards also have "leads off" pins that tell you when an electrode has detached. Sample at 250 Hz or higher for ECG; see ADC basics and the ADC resolution tool. On the ESP32 use a quiet ADC1 pin and average a few samples.
Getting a clean signal
- 1Place electrodes firmly and keep the lead wires short and still.
- 2Move away from mains cables and fluorescent lights.
- 3Use a 50 Hz notch filter in software, because mains hum is the main noise source in India.
- 4Apply a low-pass filter of about 40 Hz for ECG; see the RC filter tool.
- 5Detect the R peak with a threshold and compute heart rate in beats per minute.
- 6Smooth EMG by rectifying and averaging it over about 100 ms.
Project ideas
- A heart monitor that plots live ECG on an OLED.
- A muscle-controlled servo or prosthetic hand model.
- Eye-blink or eye-movement (EOG) switches for assistive devices.
- A pulse sensor comparison with optical heart rate; see heart-rate sensors.
Try it: Adc resolution calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Powering the circuit from a mains-connected supply while attached to a person.
- Placing electrodes on dirty or hairy skin.
- Ignoring mains hum in the data.
- Using the readings for medical decisions.
- Sampling too slowly and missing the R peak.
Frequently asked questions
Is the AD8232 a medical device?
No. It is a hobby module for learning and experiments.
Why is my ECG trace noisy?
Poor electrode contact, long wires or mains interference are the usual causes.
How many electrodes do I need?
Three for ECG: two sensing electrodes and a reference.
Can I read EMG with an Arduino?
Yes. Muscle sensors give an analog envelope that an ADC pin can read.
Which voltage should I use?
Follow the module label and power it from a battery.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 2 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.






