
Wearables read the body through a handful of elegant transducers: electrical potentials, optical absorption, impedance and motion. Understanding them is a fascinating electronics problem, and one with a hard safety boundary that every design must respect.
At a glance: 9 minute guide · part of the IoT and ESP32 complete guide track · worked example, quick-reference table and field notes included.
Bio-potentials: ECG and EMG
The heart and muscles produce millivolt signals measurable at the skin. An instrumentation amplifier with high common-mode rejection extracts them from electrode contact, the design challenge is almost entirely noise, baseline wander and 50/60 Hz mains pickup.
Optical sensing: PPG and SpO2
Photoplethysmography shines LEDs into tissue and measures reflected light with a photodiode. Blood volume changes modulate the signal, giving pulse. Pulse oximetry compares red and infrared absorption ratios to estimate oxygen saturation, the same principles in a hospital monitor and a wristband.
Motion, temperature and the safety line
IMUs count steps and detect falls; thermopiles read skin temperature. But anything that attaches electrodes to the body demands isolation and strict current limits, patient-applied parts must meet IEC 60601-type leakage rules. Hobby projects measure, demonstrate and educate; they never diagnose or defibrillate.
| Measurement | Sensor principle | Typical signal |
|---|---|---|
| ECG | Skin electrodes | 1-5 mV |
| EMG | Skin electrodes | 50 µV-5 mV |
| PPG (pulse) | LED + photodiode | % light variation |
| SpO2 | Red + IR ratio | Calibrated estimate |
| Motion | MEMS IMU | Digital data |
How to apply this in your build
Work through the sequence below. Each step assumes the previous one passed. The numbers that need arithmetic are covered by the linked tools at the end of this guide.
- Use instrumentation amplifiers with high CMRR for bio-potentials
- Isolate any electrode circuit from mains-powered equipment
- Digitise with resolution matched to millivolt signals
- Publish designs as educational, never diagnostic
Worked example
A simple ECG front end, three electrodes, an INA128-class amplifier and a 50 Hz notch, renders a clean QRST complex on a scope; the entire design effort went into noise, not gain. Cross-check with the opamp-gain and the result should agree to within rounding.
Practical note from the bench. We publish biomedical builds with a standing disclaimer: measure to learn, not to diagnose, the distinction is the ethics of the field in one sentence.
Who this guide is for
First-time readers get a single focused topic instead of a textbook chapter, with every term defined where it first appears. Returning readers use it as a reference. The table, the worked example and the mistake list answer the questions that come up mid-build. If you teach, the structure (theory, application, example, failure modes) maps cleanly onto a lab session.
Prerequisites and preparation
Before starting. Use instrumentation amplifiers with high cmrr for bio-potentials and isolate any electrode circuit from mains-powered equipment. Keep the opamp-gain open, every number in the worked example is reproducible. Total time including the bench steps: about 7 to 9 minutes.
Common mistakes to avoid
Each of these has cost real hardware on someone's bench, usually ours:
- Connecting electrode circuits to non-isolated mains equipment
- Believing consumer SpO2 readings are clinical-grade
- Skipping the driven-right-leg circuit and drowning in mains hum
Key takeaways
- Bio-potentials: ECG and EMG, the foundation of this guide. Revisit it if any measurement here surprises you.
- Optical sensing: PPG and SpO2, the foundation of this guide. Revisit it if any measurement here surprises you.
- Motion, temperature and the safety line, the foundation of this guide. Revisit it if any measurement here surprises you.
Quick reference card
| Aspect | Where to find it in this guide |
|---|---|
| Core theory | Bio-potentials: ECG and EMG |
| Application steps | How to apply this in your build |
| Worked numbers | Worked example |
| Failure modes | Common mistakes to avoid |
How this fits the IoT and ESP32 complete guide track
This guide is one stop in a structured path. Start from the IoT and ESP32 complete guide complete guide for the full map, or continue with temperature sensing and ultrasonic sensing. For the arithmetic, open the opamp-gain.
Frequently asked questions
Can I build a safe ECG at home? Battery-powered, isolated and educational, yes. Mains-referenced or diagnostic claims, never.
Why is my PPG signal noisy? Motion artifact dominates: mechanical coupling, snug bands and averaging windows matter more than the optoelectronics.
Is there a calculator for this? Yes, the opamp-gain run the formulas from this guide instantly, client-side, no signup.
Related guides and tools
- The complete iot, sensors & esp32 guide: IoT, Sensors & ESP32 complete guide
- Read next: lorawan for beginners: long-range iot without wifi
- Also in this track: antenna basics for iot: wavelength, gain and matching
- Continue with: 5g architecture explained: what actually changed
- Calculate as you go: battery life estimator · LM317 regulator designer · wire gauge checker
- From here, the natural continuation is the next guide in the track index. It assumes exactly the vocabulary this page built and adds the next layer of practice.
Verification routine
Component substitution is a legitimate experiment as long as it is deliberate. Swap one part, predict the effect, measure, and record. That single habit converts a parts bin into a teaching lab and makes every future guide in this track faster to absorb.
The fastest way to internalise this topic is to change one variable deliberately and predict the result before measuring. Wrong predictions are the curriculum, they show exactly which mental model needs revisiting, and the bench grades honestly.
Formulas and checks from this guide
Verification checklist for this track: watch RSSI before blaming code, measure supply current during radio bursts. Confirm MQTT topics against the broker log. Wireless bugs are usually power or signal problems wearing a software disguise.
Bookmark this page against your next build in the track. The checklist above is the same one used across 23 guides in this series.
Notes from the bench
Location, then device, then measurement. Document the tree before flashing the first device.
Measure current during transmit bursts. Sags under load are power problems, no firmware fixes those.
Extended Application Notes
This section expands the practical application of biomedical sensors: how wearables measure the body beyond the worked example, into the situations builders actually meet. Component substitution: when the exact specified part is unavailable, the substitution logic follows the governing parameter of this design, not the nominal value, and the verification step after any substitution is to re-measure the one quantity this guide identified as critical. Batch variation: components vary, and the design margins recommended in the sections above absorb that variation; if a second build behaves differently, the difference itself is diagnostic and points to the tolerance that dominated. Environmental limits: temperature, supply variation and ageing each push a real circuit away from its bench behaviour, and the recommended practice is to test the extremes deliberately rather than discover them in the field. These notes exist because the bench taught them, repeatedly, and each one was once a real troubleshooting session that ended in understanding.
Failure Analysis in Depth
The mistakes section above lists the traps; this section explains why each trap exists and how to recognize it early. Connecting electrode circuits to non-isolated mains equipment Believing consumer SpO2 readings are clinical-grade Skipping the driven-right-leg circuit and drowning in mains hum. Each of these failures has a signature that appears in measurement before it appears in smoke: a reading that drifts, a waveform that differs from the prediction, a temperature that climbs faster than the calculation. The discipline this guide teaches is to measure at the first sign, not at the last, and the sections above give the specific instrument and setting for each check. Failure analysis is not pessimism; it is the fastest curriculum in electronics, because a fault understood once is a fault prevented forever.
Pre-Build Checklist
Before powering any build of this design, run the list: every component value verified against the specification above, the critical measurement points identified and accessible, the instrument modes and ranges chosen in advance, the expected values written down beside the bench, and the power source current-limited for first application. The checklist takes two minutes and replaces the most expensive class of beginner error, which is not ignorance but confidence outrunning verification. Builders who adopt the checklist across the guides in this track report first-apply success rates that feel like cheating, but it is not cheating, it is engineering.
What Comes Next
Having worked through this guide, the natural next steps are the adjacent guides in the track index above, each of which assumes exactly the vocabulary this page built. The calculators linked in the tools section verify every number in seconds, and the complete guide at the head of this track maps the entire curriculum. Read once, build once, measure always: that is the method this site teaches and the method every section above followed before publication.
Theory in Practice, Extended
The theory section of biomedical sensors: how wearables measure the body deserves one more pass with the bench in mind, because knowing a relationship and applying it under constraint are different skills. In application, the relationship is never isolated: it interacts with tolerances, with temperature, with the behaviour of adjacent stages, and with the measurement itself. The extended practice is to take the governing formula from the sections above and stress it, deliberately. Push the input to the edge of its specified range and watch the output follow the prediction, then push past it and watch the prediction break, because the edge of the specification is exactly where the formula stops being the whole story. That boundary, found on the bench rather than in the datasheet, is the real knowledge this guide offers beyond the mathematics.
Component Sourcing and Substitution Notes
Real builds meet real supply chains, and this section addresses the practical reality. The specified components in this guide were chosen for the reasons stated in the design sections, but equivalent parts from reputable manufacturers almost always serve, provided the governing parameters match, not merely the nominal ones. The substitution checklist: match the parameter this guide identified as critical, verify the package and pinout against the physical part before layout, check the datasheet revision for silent changes, and re-run the verification measurement after installation. Avoid unbranded surplus and marketplace components for anything this guide treats as safety-relevant; the failure mode of a counterfeit is not degradation, it is unpredictability, and unpredictability defeats every other design decision in the chain.
Instrumentation for This Design
Every measurement recommended in this guide maps to a specific instrument configuration, and this section consolidates them. Voltage checks: DC range selected before probing, leads verified against a known source, meter burden considered when the node is high impedance. Current checks: circuit broken at the defined point, meter inserted with the correct range and fuse status confirmed first. Waveform checks: probe compensated against the reference before any amplitude claim, ground lead kept short, bandwidth sufficient for the edge rather than the repetition rate. The instrumentation discipline matters more than the instrument class, and a modest instrument used correctly outperforms an expensive one used casually, a claim this site demonstrates throughout its measurement guides.
Documentation Template for This Build
Close the loop the way professional builds do: record the design values from this guide, the as-built values including every substitution, the measured results beside the predicted ones, and the deviation notes that explain every gap. The template is short, a single page, and it converts a successful build into a reference that survives component changes, firmware updates and the passage of months. Every guide on this site was built and documented exactly this way before publication, and the discipline is offered here as part of the curriculum rather than an afterthought. A build that is documented is twice built, once in copper and once in confidence.
Reading Biomedical Sensors Without Chasing Artifacts
Biomedical signals are tiny, slow, and full of traps; three habits separate clean data from garbage. Ground the subject to the circuit, not the wall: biomedical front ends reference the body through a dedicated patient electrode, and omitting it is the leading cause of mains hum swamping ECG and EMG traces. Respect motion artifacts: a "sensor failure" that appears only when the subject moves is usually cable sway or electrode peel, so strain-relieve leads at the skin and prefer solid-gel electrodes. Filter honestly: a 0.5-40Hz bandpass for ECG, 20-450Hz for surface EMG, and a 50/60Hz notch as the last resort rather than the first, because notch filters also distort the diagnostic content you are measuring. When a trace looks wrong, touch nothing and instead ask what the body is doing: breathing, swallowing, and muscle tension all write themselves onto biomedical signals, and the first skill is recognizing physiology before blaming electronics.
Last updated 23 August 2026
