Case Study: PCB Design and Schematic for Wearable Sports Sensor (ESP32 + IMU + LiPo + USB-C) ESP32-based IoT wearable sports sensor design and development. Custom PCB with ESP32-S3, MPU-9250 IMU, LiPo battery management, USB-C charging, and production-ready Gerber files.

ESP32-Based IoT Wearable Sports Sensor: Design & Development

Adequate Infosoft is a leading company in firmware and hardware development, with strong expertise in ESP32-based solutions.

We specialize in wearables and IoT device development, providing dependable, low-power, production-ready systems for use in everyday life as well as smart connected products. This case study contains information about our design and engineering of a state-of-the-art IoT wearable sports sensor

Client: Sports Wearables Startup

Timeline: 4 weeks (from schematic to Gerber files)

What We Delivered: Schematic, PCB, Gerber files, Bill of Materials with links to sources, and Pick-and-Place file.

ESP32 sports wearable IoT workflow.

Challenge

The customer required a compact PCB designed for a wearable sports sensor. The wearable sports sensor would be used by athletes and fitness enthusiasts.

The basic requirements were simple enough but challenging: design and manufacture an ESP32 based board which contains an IMU, can be powered by LiPo battery, and can be charged via USB-C, all in a size that allows for it to be worn while performing at high intensity levels.

ESP32 IoT sports sensor wearable mobile app.

Core specifications:

  • ESP32 as main processor (Wi-Fi + BLE for data transmission)
  • 6-axis or 9-axis IMU for motion tracking
  • LiPo battery (single-cell, 3.7V nominal)
  • USB-C for charging and programming
  • Compact form factor for wrist or body attachment
  • Low power consumption for extended wear

The client specifically requested:

  • Schematic files
  • PCB layout files
  • Gerber files (ready for manufacturing)
  • BOM with sourcing links (DigiKey, Mouser, etc.)
  • Pick-and-place file for automated assembly

The constraints for this project included:

  • No enclosure design was required. The client handled all the mechanical integration.
  • The focus was on manufacturability and would be for small to medium volume quantities (100-1000 units).
  • Component availability through national distributors was a critical aspect of the project.
  • The layout of the board should not affect the RF performance of the ESP32 in any way.

Component Selection Strategy

Microcontroller Types: ESP32, ESP32-S3, and ESP32-C3

The client did not specify which version of the ESP32 they wanted, so I had to choose which variant of the ESP32 I would like to use. After researching all variants, I selected the ESP32-S3-WROOM-1 module as my module for the project.

CriteriaESP32-WROOM-32ESP32-S3-WROOM-1ESP32-C3-WROOM-02
ProcessorDual-core Xtensa LX6Dual-core Xtensa LX7Single-core RISC-V
BLEBLE 4.2BLE 5.0BLE 5.0
GPIO count283616
AI accelerationNoVector instructionsNo
USBSerial onlyNative USB (JTAG + CDC)Serial only
Power consumption~80mA active~85mA active~75mA active

Reason for ESP32-S3: USB support had eliminated the need for using a dedicated USB to serial converter chip (CP2102 or CH340). This saves board area and BOM costs. The extra GPIOs also give the user more possibilities for adding future sensors to the design.

IMU (Inertial Measurement Unit) Selection: Motion Sensing for Sports

The IMU must be capable of maintaining very rapid changes in speed by measuring the direction of moving as well as locations of physical objects (accelerometers) while performing a sport. I assess two options:

IMUFeaturesBest For
MPU-92509-axis (accel/gyro/magnetometer)Orientation tracking, compass heading
LSM6DSO326-axis, ±32g accelerometer rangeHigh-impact sports, gesture detection
BMI2706-axis with step counter hardwarePower-optimized wearables

We chose the MPU-9250 for this design because it has 9 axes of measurement so it can monitor how something is moving and what position it is in compared to Earth's magnetic field.

The magnetometer will help with some sports because determining your absolute direction is important (running routes, swimming laps).

Alternatively, the LSM6DSO32 may have an acceptable sensing range of ±32g, which would be beneficial for contact sports (basketball, boxing), but the customer indicated that they focus primarily on general physical activity.

Charging and Battery Management

The following components must be included in the system:

  • 5V USB-C power input
  • Lithium Polymer (LiPo) charging circuit; single-cell, 3.7 to 4.2 volt
  • 3.3V regulation for the ESP32 and the sensors
  • Battery voltage sensing

Key Components:

  • TP4056 LiPo charger (1A max, 450mA typical for this type of device)
  • TPS63031 buck-boost DC-DC voltage converter to keep the output at 3.3V regardless of the battery voltage
  • Battery connector: 2-pin "JST-PH" (which is the standard connector used with LiPo batteries)

Why Buck-Boost? A standard Low Dropout (LDO) regulator or buck converter cannot maintain a 3.3V output from the battery voltage when the battery drops below 3.4V.

The TPS63031 buck-boost converter will boost the voltage to 3.3V when the battery voltage is low and step down the voltage when the battery voltage is high, thus providing the maximum amount of discharge time (or usable battery energy) from the LiPo battery.

Schematic Design (Week 1-2)

Power Distribution Network

Power Distribution Network

The TP4056 charge current was programmed to 450mA (R_PROG=2.4kΩ) which approximates the 1C charge rate (one hour) for a lithium polymer battery (approximate range of 400-500mA/h). An LED indicates charging status by being on when charging and off when charge is complete.

USB-C Implementation

ESP32-S3's native USB support simplified the USB-C implementation significantly. Only required:

  • 5.1kΩ pull-down resistors on CC1 and CC2 pins (USB-C configuration)
  • ESD protection diodes on D+ and D- lines
  • VBUS directly to TP4056 charger input
  • No external USB-to-serial chip needed — this saves ~$2 in BOM cost and valuable board real estate. Programming occurs via ESP32-S3's built-in USB-serial-JTAG controller.

IMU Interface

The MPU-9250 connects via I²C (default address 0x68). Required:

  • 4.7kΩ pull-up resistors on SDA and SCL lines
  • Separate 3.3V supply with 0.1µF decoupling capacitor near the IC
  • INT pin routed to ESP32 for data-ready interrupts

The I²C bus is shared with any additional sensors (planned for future revision), supporting up to 3.4MHz high-speed mode.

ESP32-S3 Minimum Support Circuitry

ComponentValuePurpose
EN pull-up10kΩ to 3.3VKeep ESP32 enabled
IO0 pull-up10kΩ to 3.3VBoot configuration
Decoupling caps0.1µF + 10µFPower supply filtering
Crystal40MHzMain clock (externally mounted on module)

PCB Layout (Week 2-3)

Layer Stack-up

I chose a 4-layer PCB for this wearable design:

LayerFunction
Top (Layer 1)Components, RF trace, critical routing
Inner 1 (Layer 2)Ground plane (continuous)
Inner 2 (Layer 3)Power distribution (3.3V, VBAT, VBUS)
Bottom (Layer 4)Secondary components, I²C, GPIO routing

The dimensions for the board are 35 mm x 35 mm which is small enough to fit in the wrist but has enough area for placing the components.

Why are 4 layers better than 2 layers?

  • Improved RF performance with controlled impedance for the ESP32's antenna
  • Better power integrity due to the presence of a dedicated power plane
  • Reduced EMI because of the ground plane separating the signals on the top and bottom of the board
  • Small form factor can be obtained through the tighter routing of the components

Critical Design Decisions

Keep-out area for the ESP32 Antenna: The PCB Antenna used in the ESP32-S3 module will require an area on all 4 layers to not be used. I have used the area of 15 mm x 10 mm of board space in my design for the following reasons:

  • No copper pour underneath the antenna
  • No components should be within 10 mm of the edge of the antenna
  • The ground plane should be cut-out on the inner layers below the area of the antenna

IMU Placement: The MPU-9250 was placed near the board center to minimize lever arm effects during rotation. No high-current traces run beneath the IMU to prevent magnetic interference with the magnetometer.

USB-C Connector Placement: Edge-mounted on board perimeter for easy access when worn. ESD protection diodes placed within 10mm of the connector pins.

Design Rule Check (DRC) Settings

RuleSetting
Minimum trace width0.15mm (signal), 0.3mm (power)
Minimum clearance0.15mm
Minimum via diameter0.6mm (pad), 0.3mm (hole)
Copper-to-board edge0.3mm

These rules are compatible with JLCPCB and PCBWay standard manufacturing processes.

Bill of Materials (BOM) Development (Week 3)

Sourcing Strategy

The client required sourcing links to DigiKey and Mouser — major distributors with consistent stock. I structured the BOM to prioritize parts available from these distributors with reasonable lead times.

Critical Component Sourcing

ComponentPart NumberSupplier
ESP32-S3-WROOM-1ESP32-S3-WROOM-1-N8Mouser
MPU-9250MPU-9250DigiKey
TP4056TP4056-42DigiKey
TPS63031TPS63031Mouser
USB-C connectorUSB4125DigiKey
JST battery connectorB2B-PH-K-SMouser
LiPo battery (500mAh)502030Amazon/Digikey

Alternative Parts (Supply Chain Risk Mitigation)

Given component shortages affecting the industry, I provided alternatives:

PrimaryAlternativeCondition
MPU-9250ICM-20948 (DigiKey)Drop-in compatible, similar performance
TPS63031TPS63030Lower peak current (acceptable for this design)
ESP32-S3 moduleESP32-PICO-V3Requires minor layout changes

Manufacturing Files Generation (Week 4)

Gerber Files

Generated standard RS-274X Gerber files including:

FileLayer
GTLTop copper
GBLBottom copper
GTOTop silkscreen
GTSTop solder mask
GKOBoard outline

Output format settings:

  • Format: 4:4 (inch)
  • Zero suppression: Leading
  • Coordinates: Absolute

Pick-and-Place File

Created centroid file (CSV format) for automated assembly.

Assembly Drawing

Included assembly drawing layer in PCB files showing component outlines and reference designators. This aids manual inspection even when automated pick-and-place is used.

Design Validation

Electrical Rule Check (ERC)

  • All ESP32 inputs float are pulled down using a resistor of 10kΩ on GPIOs that are not in use.
  • The sequence at which the power supply is connected was confirmed. The 3.3 V rail has power provided right after the battery is connected.
  • Pull-ups for I²C (4.7kΩ) on both the SDA/SCL lines were verified.

Thermal Analysis

The TP4056 charge IC produces heat while charging, causing the charge IC to use thermal vias located under the "Exposed Pad" of the IC to transfer heat to the ground reference plane. The TPS63031 has a similar design.

RF Analysis

Proper placement of the ESP32 module ensures the antenna is located on the edge of the PCB with sufficient clearance from any copper near the antenna. The 4-layer stack-up with one layer being a ground reference plane will provide a good return path for RF signals to reduce any detuning effects from adjacent components.

Deliverables Summary

DeliverableFormatStatus
Schematic filesPDF + Altium (or KiCad)Delivered
PCB layout filesAltium PCB + Gerber ZIPDelivered
Gerber filesRS-274X (6 files)Delivered
BOM with sourcing linksExcel, 45 line itemsDelivered
Pick-and-place fileCSV centroid fileDelivered
Assembly drawingPDFDelivered
Fabrication notesPDFDelivered

Lessons Learned

ChallengeSolution
USB-C configuration resistors often forgotten Included design checklist; verified CC1/CC2 5.1kΩ pull-downs
IMU magnetic interference from power traces Maintained keep-out zone; placed IMU away from high-current paths
Battery connector footprint variations Used standard JST-PH 2.0mm pitch, provided mechanical drawing
ESP32 boot mode confusion Documented EN/IO0 sequence for programming

What Our Clients Say About Us

Client satisfaction is our ultimate goal. Here are some kind words of our precious clients they have used to express their satisfaction with our service.

Leadership That Leads Worldwide

With a physical presence in over 15 countries and a global footprint spanning 25+ countries, we are ready to serve you anywhere. Location, language, or culture is never a barrier, because our global team can work with you in your language. Our strong international team ensures seamless collaboration across borders We have a strong tech team, highly recognized in their domains, with extensive technical expertise.