UWAFT
A Li-ion battery monitor and relay switch board, designed in Altium.
- My role
- Electrical Subteam Member
- Timeline
- 2026–Present
- Status
- Rev 2 fabricated and assembled

01 / Context
Overview
I’m on the electrical subteam of UWAFT, the University of Waterloo Automotive Future Team. I designed a battery monitor and relay switch board in Altium Designer, from schematic to layout. It monitors a single Li-ion cell and can connect or disconnect a load.
An STC3100 gas gauge measures the battery’s voltage and current, sensing the current through a 30 mΩ shunt and counting the charge that flows in and out. An STM32F030 microcontroller reads the gauge over I2C and switches a relay to turn the load on or off.
02 / Contribution
The work
The circuit
The STM32 reads the gauge on I2C (PB6 and PB7, with 4.7 kΩ pull-ups) and drives the relay from PA8 through an AO3400A MOSFET on the low side of the coil, with a flyback diode across the coil. An MCP1700 LDO supplies 3.3 V, and the MCU runs on its internal 8 MHz oscillator, so the board needs no crystal.
- Every VDD and VDDA pin has its own decoupling capacitor, and the LDO has input and output capacitors.
- BOOT0 has a 10 kΩ pull-down, and NRST has a 100 nF filter capacitor.
- A 2×4 debug header brings out SWD for programming, plus I2C, battery voltage, 3.3 V, and ground for testing.
- Every part can be soldered by hand: 0805 passives and leaded packages, with no bottom-terminated parts.
Layout
The board is 44 × 40 mm: 2-layer FR-4 with 1 oz copper and four M3 mounting holes. I laid it out to UWAFT’s 2-layer rule set (0.127 mm minimum clearance and trace width, 0.3/0.6 mm vias), and it passes DRC with zero violations.
- The power path, from the battery through the relay to the load, runs on 1.5 mm traces over solid ground on both layers; signals use 0.25 mm.
- Solid ground pours fill both layers. Ground pads use thermal reliefs, except the high-current shunt-ground and load-return pads, which connect directly.
- Almost all routing is on the top layer. Only two short traces, SWDIO and the header’s battery-voltage feed, run on the bottom.
- The silkscreen marks polarity, the BATT and LOAD connectors, the header pins, and the board name and revision.
Measuring across the shunt
The shunt is only 30 mΩ, so its voltage drop is small: 30 mV at 1 A. Even a little resistance in a shared ground trace would add a noticeable error to that measurement. The shunt is Kelvin-sensed: the gauge’s sense lines run straight to the shunt pads, and a cutout in the ground pour means ground meets the gauge only at the shunt. Several vias tie the shunt’s ground pad to the bottom plane.
Rev 2, fabricated and assembled
For the team’s soldering tutorials, I adapted the design to the team-standard STM32L011 and a 2 A relay. That version, Rev 2, has been fabricated and assembled.
03 / Reflection
Outcome
Version 1.0 of the board passes DRC with zero violations. It took me from schematic to a finished two-layer layout, including the details that matter on a measurement board: Kelvin sensing, solid ground, and wide traces for the high-current path.
Rev 2, adapted for the team’s soldering tutorials with the STM32L011 and a 2 A relay, has now been fabricated and assembled.

