Coupons
Help
  • FAQ
    browse most common questions
  • Live Chat
    talk with our online service
  • Email
    contact your dedicated sales:
EN
EN

ESP32 Health Monitor PCB: 2-Layer FR-4 DFM for Clean ECG

Daniel Li 71,029

 

Project Background

A breadboard full of biomedical modules is useful for an afternoon and unreliable by dinner. That is the starting point of the How To Electronics build documented in the KOL video. The creator needed a low-cost station that could read heart rate from a real ECG waveform, SpO2 from a fingertip, body temperature from a 10K NTC, plus room temperature and humidity—then serve every reading from the ESP32 itself. Anyone on the same Wi-Fi network opens an IP address. No extra display. No cloud bill.

That brief does not survive jumper wire. Cardiac signals sit in the millivolt range. The ESP32 radio is a noisy neighbor. Electrode cables, a shared I2C bus, and an analog divider all compete for the same ground. Educational IoT health projects have exploded for the same reasons hospitals and labs care about analog discipline: engineers want a compact station they can demonstrate without holding cables still, while still treating the board as part of the instrument rather than a way to hide wires.

The market context is practical, not clinical. Universities, makerspaces, and product teams use ESP32-class boards to learn R-peak detection, local web dashboards, and multi-sensor I2C before they ever touch IEC 60601 isolation. The failure mode is familiar: a dashboard that looks complete while AIN0 is modulated by Wi-Fi bursts, a missing ACK at 0x57 that looks like a dead oximeter, or a dangling electrode that invents tachycardia. A compact 2-layer PCB with local decoupling and short analog runs is what turns the sketch into a station. 

 

ESP32 Health Monitor Project

 

What This Video Covers

The video walks from breadboard intent to a soldered 2-layer station and a live local dashboard. It opens with the vitals UI—BPM, SpO2, ECG, body temperature, room temperature and humidity—then shows the AIVON-sponsored board, the component list, and the block diagram that splits analog cardiac work from digital optical sensing.

From there the creator covers the EasyEDA schematic and layout: ESP32 DevKit v1, AD8232 into ADS1115 AIN0, MAX30102 at 0x57, 10K/10K NTC divider into AIN1, BME280 at 0x76, SDN on GPIO 5, and LO+/LO− on GPIO 18 and 19. Gerbers go to AIVON. Boards return in days. Assembly uses female headers so modules can be swapped in an evening. Firmware prints an IP at 115200 baud, hosts the page, samples ECG near 125 Hz, and updates slower sensors every two seconds. Electrodes go on the arms and driven right leg; the MAX30102 sits on a fingertip; the NTC sits on skin. The browser shows vitals cards, alerts, patient records, interval logging, and Excel export.

ESP32 Health Monitor Hardware

The manufacturing thread is as important as the firmware thread. The video is a case study in 2-layer FR-4 that has to hold drill, mask, and outline so a 125 Hz teaching ECG can sit next to an ESP32 radio and still look like a heart.

 

Project Highlights and Key Features

  • Sensor split that keeps the optical path off the cardiac amp. ECG stays analog on the AD8232 into ADS1115 AIN0. SpO2 stays digital on the MAX30102 so the LEDs never fight the front-end. Body temperature uses a Beta 3950 NTC divider into AIN1. Room air stays on the BME280 so a warm lab is not mistaken for a fever.
  • 16-bit conversion off the ESP32 SAR ADC. Moving ECG and NTC onto the ADS1115 keeps millivolt swings off Wi-Fi jitter. Firmware finds R-peaks and draws a PQRST-style trace at about 125 Hz.
  • Lead-off treated as software DFM. Red on the right arm, yellow on the left, green as driven right-leg. LO+ and LO− stop invented heartbeats: a flat cyan line and a "LEADS OFF" banner instead of fake BPM.
  • Local power that matches analog reality. 10 µF bulk plus 100 nF at each IC pin. Ceramics sit on the pins, not somewhere on the 3.3 V net. Analog traces stay short and off GPIO 21/22.
  • 2-layer stack-up chosen for a teaching instrument, not an HDI wearable. Standard FR-4, 1.6 mm class, 1 oz copper both sides, lead-free HASL for first articles, through-hole plus female headers. Front-side priority for the ESP32, ADS1115, connectors, and decoupling.
  • Station firmware instead of a cloud bill. The ESP32 hosts vitals cards, alerts, patient records, interval logging, and Excel export. ECG samples land near 125 Hz; slower sensors update every two seconds.
  • Assembly that still allows module swaps. Headers let the creator finish the board in an evening and still replace a sensor. Once the waveform was stable, the clinical UI stopped being theater.
  • Fast-turn fabrication that made analog confidence visual. Gerbers left EasyEDA, landed at AIVON, and boards came back in three days—clean mask, honest holes, a double-sided panel that matched the 3D view.

 

Challenges Encountered During Development

ECG next to a Wi-Fi radio is a known headache. On a breadboard the electrode cable, USB ground, and ESP32 bursts all couple into AIN0. Moving conversion onto the ADS1115 is the right instinct, but three I2C devices only behave if addresses stay unique and pull-ups exist once. A missing ACK at 0x57 looks like a dead oximeter when the BME280 ADDR pin is simply wrong. Headers add inductance, which is why the 100 nF parts must sit at the module. Without LO+ and LO− in firmware, a dangling electrode becomes fake tachycardia.

The board then raises factory questions that have nothing to do with six-layer HDI. The layout is compact, through-hole heavy, and parks connectors near the outline—the same pattern that fills the engineering-query queue on 2-layer FR-4. CAM routinely holds files when via tenting on the quote disagrees with the mask layer, when reference designators sit on solderable pads, when copper pours to the routed edge, and when header holes never declare PTH or NPTH.

A recent 2-layer PCB CAM review made the mechanical risk obvious. Pad-to-pad spacing sat at 4 mil where 7–8 mil would have given a reliable solder-mask bridge. Several 3.1 mm PTH holes had no mask opening. Pads sat on the outline of a customer-built V-cut panel, and the V-cut lines were duplicated. After routing that is exposed copper and a ground the ECG firmware should not trust. Those are not exotic problems. They decide whether a first article solders and whether a 125 Hz trace can be trusted.

Cost and schedule pressure sit underneath the electrical work. The project is a learning platform, not a certified diagnostic device. Six layers were never the requirement. The requirement was 2-layer FR-4 that holds drill, mask, and outline tightly enough that firmware can trust the numbers. A ragged soldermask or an offset header hole sends a designer hunting the AD8232 for noise that started in the fab.

 

How AIVON PCB Helps

AIVON is built for this class of work: rapid PCB manufacturing and expert DFM on standard 2-layer FR-4, not only on HDI, rigid-flex, or high-frequency stack-ups. The Gerbers left EasyEDA and landed at AIVON. Boards came back in three days with clean mask, honest holes, and a double-sided panel that matched the 3D view. That turnaround is what keeps a teaching instrument on schedule. Analog confidence is visual. When mask, drill, and outline are honest, the designer stops blaming the front-end for factory geometry.

AIVON custom 2-layer PCB 3D view

The same review double-sided files receive on the floor is the review this monitor needed: align via covering with the Gerber mask, pull silkscreen off pads, keep copper 0.2 mm from a routed edge and about 0.4 mm from a V-cut, and open every PTH header. On a tight-spacing panel the fix is unglamorous—spread pads to 7–8 mil, pull features 0.3–0.5 mm off the outline, open the large holes, delete the extra V-cut. After that the order released.

AIVON's value on this project is the boring details done tightly:

  • Fast-turn 2-layer FR-4 prototyping with lead-free HASL suited to through-hole headers and first articles.
  • CAM discipline that catches tenting mismatches, silkscreen on pads, outline copper, duplicated V-cut lines, and undeclared PTH versus NPTH.
  • Local decoupling geometry that survives manufacture: 100 nF within 2–3 mm of each 3.3 V pin so ECG supply rejection is a layout fact, not a wish.
  • One-stop path from prototype boards to PCBA when the next revision leaves female headers behind.
  • Reliable delivery so a 125 Hz educational trace can be demonstrated on copper instead of DuPont wire.

What the PCB enabled matters more than what it "fixed." ECG_OUT no longer hops three jumper colors. The NTC divider lives on copper. Each rail has a ceramic where the current loop is small, so a 125 Hz trace can sit next to an ESP32 radio and still look like a heart. Manufacture the outline, mask, and drill tightly enough and firmware can trust the numbers. That is AIVON's job on educational analog boards and on the next prototype that actually has to leave the bench.

 

Conclusion

This build holds together because How To Electronics treated the PCB as part of the instrument. The ESP32 still does the clever work—web server, R-peak math, SpO2, patient log—but the board is what lets a live ECG sit next to a Wi-Fi radio without falling apart. Short AD8232 runs, ceramics on the pins, lead-off pins that the firmware actually uses, and a 2-layer file that CAM will not have to argue with are the habits that make the IP address worth opening.

The design remains a learning platform, not a certified diagnostic device. Clinical monitors need isolation, IEC 60601 thinking, and a quality system. The useful takeaway is analog and DFM discipline on standard FR-4: keep analog nets short, put 100 nF on the pins, name PTH holes, keep copper off the router, and let a three-day AIVON panel prove the waveform.

 

PCB-Related FAQ

Q1: Is a 2-layer PCB enough for an AD8232 ECG front-end next to ESP32 Wi-Fi?

A1: Yes for an educational single-lead monitor if analog runs stay short, each 3.3 V pin has local 100 nF within 2–3 mm, and ECG_OUT does not run parallel to GPIO 21/22. Four-layer construction helps when you need lower noise or denser routing, but this 125 Hz teaching trace does not require controlled impedance or HDI.

Q2: Why add an ADS1115 instead of using the ESP32 ADC for ECG and the NTC?

A2: The ESP32 SAR ADC is noisy and shares silicon with the radio. A 16-bit I2C converter on AIN0 and AIN1 keeps the millivolt ECG swing and the thermistor divider off Wi-Fi jitter so R-peaks and 35–37 °C skin readings stay believable.

Q3: HASL or ENIG for a first ESP32 sensor prototype with female headers?

A3: Lead-free HASL is the right first-article finish for through-hole headers and 1 oz 2-layer FR-4. Choose ENIG when you move to fine-pitch SMT, repeated probe mating, or boards that will see many insertion cycles.

Q4: How close can copper and pads sit to the outline on 2-layer FR-4?

A4: Keep pads at least 0.2 mm from a routed edge and about 0.4 mm from a V-cut. Perimeter connectors are safer at 0.3–0.5 mm. Copper on the router path becomes exposed metal after fab and is a ground the ECG firmware should not trust.

Q5: Which DFM holds stop 2-layer health-monitor boards in CAM?

A5: Via tenting that disagrees with the mask layer, reference designators on solderable pads, 4 mil pad-to-pad gaps that crack the mask bridge, large PTH headers with no mask opening, undeclared PTH versus NPTH, and duplicated V-cut lines. Align those items before release so the first article solders.

AIVON

Leading PCB Manufacturer for PCB Prototype and Mass Production

Get instant quote

2026 AIVON.COM All Rights Reserved
Intellectual Property Rights | Terms of Service | Privacy Policy | Refund Policy