Notebook · ulna bring up notes

V1.2 Bench Testing Put Nine Fixes Into V1.3

2026-12-01 · 6 min read · sources cited inline
Highlight figure 9, the number of board changes that bench testing of Ulna V1.2 put into the V1.3 layout

A month of bench testing on Ulna V1.2 produced nine changes for V1.3, and the one with the biggest number attached is the current sense path: against the 20 mV/A the parts should give, one channel reads 28 percent high and the other 10 percent high. The last entry reported the 16 percent spread between those two channels [6]. Comparing each channel with its nominal gain says more: both read high, so the error is copper added to the shunt, not a mismatch between parts. This entry lists every change going into V1.3, the reason behind each one, and what we have not measured yet. V1.3 is in layout, not built, so nothing here is a result on new hardware.

The nine changes

Top and bottom of the round Ulna V1.2 board: GaN power stage, MCU and connectors on top, silkscreen reading Ulna-60-30 V1.2 2026 on the bottom
The V1.2 board under test, top and bottom. The silkscreen carries the earlier 60-30 rating; the drive is now rated 60 V, 25 A peak.
# Reason Change in V1.3
1 50 MHz oscillator fitted, above the MCU clock input range 16 MHz 3.3 V LVCMOS oscillator, with the distributor part number in the BOM
2 Shunt channels read 28 and 10 percent above nominal gain Kelvin taps from the inner edge of each shunt pad, routed as a pair to the INA240
3 Amplifier output goes negative for current flowing toward the motor Swap the amplifier inputs in V1.3, or keep the sign inversion in firmware; decision pending
4 Mounting matched the CubeMars actuator; the first kit targets the RobStride 01 RobStride 01 four hole pattern in place of the CubeMars three hole pattern
5 Twelve DNP lines missing from the BOM, three snubbers among them All twelve back in the BOM
6 No reverse polarity FET and an all ceramic bus Footprints for bus damping (series RC or bulk capacitor) and a TVS at the XT30
7 Heat path for the GaN half bridges, ahead of full current tests Thermal vias under the three EPC23102 to a bottom copper area, keep out for a top heatsink
8 EPC layout guidance favors more vias on the power loop More vias on the commutation loops and around RSH2, Inner4 copper coverage back above 65 percent
9 Layout review of the VIN copper VIN 0.5 mm clearance rule active in the design rule check

Both sense channels read high, not just apart

Each phase current is measured across a 1 mΩ shunt by an INA240A1, a fixed gain 20 V/V amplifier [2]. Shunt times gain gives the nominal transfer: 1 mΩ × 20 = 20 mV/A. The V1.2 data from the last entry, DC current stepped from 0 to 3 A, gave fitted slopes of 25.6 mV/A on U4 and 22.0 mV/A on U5 [5, 6].

Three panels: the V1.2 board with test leads soldered at a phase shunt marked R001; the V1.2 layout with the sense via circled on the load current side of the shunt pad; a layout sketch moving that via to the opposite side of the pad
Left: V1.2 on the bench, leads soldered at a phase shunt (R001). Middle: V1.2 layout, sense via circled on the side of the pad that carries load current. Right: proposed correction, via moved to the side where no load current flows.
Nominal 1 mΩ × 20 V/V U4 measured U5 measured 0 5 10 15 20 25 30 Current sense gain, mV/A 20.0 mV/A 25.6 mV/A (+28 %) 22.0 mV/A (+10 %)
Measured current sense gain against nominal for a 1 mΩ shunt and a gain 20 amplifier. Ulna V1.2, 0 to 3 A DC.
Channel Measured slope Against 20 mV/A Implied series copper (derived)
U4 25.6 mV/A +28 % about 0.28 mΩ
U5 22.0 mV/A +10 % about 0.10 mΩ

The amplifier is not the suspect: its specified gain error is 0.20 percent maximum [2]. Dividing each slope by the gain gives the resistance the amplifier actually sees, 1.28 mΩ and 1.10 mΩ. The extra 0.28 and 0.10 mΩ sit in the plated copper and vias between the shunt pads and the sense taps, which on V1.2 share the path with the load current. The copper term differs per channel because the two shunts sit at different distances from their amplifiers.

Why a calibration constant is only a stopgap: copper changes resistance by about 0.39 percent per kelvin, the shunt element by far less. On U4, where copper is 0.28 of 1.28 mΩ, a 10 K rise in board temperature moves the reading by about 0.85 percent (derived, 0.28 × 0.0039 × 10 ÷ 1.28). A joint warms by more than 10 K under load, and the error moves with it. The fix belongs in the layout: sense taps that carry no load current, so the copper drops out of the measurement. Range is not the problem: by our bench estimate, even with a 30 percent gain error the channel still measures about ±63 A, well past the 25 A peak rating [5].

The clock we could not use

The fitted oscillator is 50 MHz. The STM32G474 accepts 4 to 48 MHz on its external clock input [1]. V1.2 runs bring up from the internal RC oscillator through the PLL. The first firmware, a 1 kHz square wave from a timer on PB7, read 1.000970 kHz on the scope, and the same clock carried classic CAN at 1 Mbit: 10,000 request frames on ID 0x200, 10,000 answers on ID 0x100, no errors [6]. Good enough for bring up, but not what we want for CAN FD data rates or motor control timing.

V1.3 gets a 16 MHz oscillator in bypass mode, and the distributor part number goes into the BOM so the assembler cannot substitute a different frequency in the same package.

Left: an ST-LINK V2 programmer wired to the Ulna V1.2 board; right: oscilloscope capture of a clean 1 kHz square wave, frequency readout 1.000970 kHz
Left: programming V1.2 over SWD. Right: the 1 kHz timer output on PB7, 1.000970 kHz, core clock from the internal oscillator.
Left: CAN test bench with the V1.2 board, scope probes and a USB-CAN-B adapter; right: decoded CAN capture showing a request frame on ID 0x200 and a response frame on ID 0x100
CAN soak test on V1.2: USB-CAN-B adapter on the PC side, decoded request on ID 0x200 and answer on ID 0x100, classic CAN at 1 Mbit.

Power entry: what a ceramic bus asks for

V1.2 has no reverse polarity FET, and the DC bus is all ceramic. A keyed XT30 and a procedure manage polarity. Ceramic capacitors bring a second issue: low ESR plus the inductance of the supply leads forms a lightly damped resonant circuit, and a plug in step can ring to about twice the supply voltage [3]. We have not measured this on Ulna. V1.3 adds footprints for both standard answers, a damping network across the bus and a TVS at the connector, so the fit can follow a hot plug capture rather than precede it.

GaN layout: heat and the commutation loop

Two changes follow the device vendor's layout guidance more closely. EPC's recommended layout closes the power loop on the first inner layer directly under the devices, with vias placed as close as possible to the innermost connections [4]. V1.3 adds vias on the three commutation loops and around RSH2, and brings Inner4 copper coverage back above 65 percent. It costs routing room on a 60 mm round board, and we chose loop inductance over routing convenience.

The thermal change is preventive. Thermal vias under each EPC23102 now lead to a bottom copper area, and the top side keeps a clear zone for a heatsink. We have no load thermal data to publish yet; the heat path goes in before we ask the board for full current.

Housekeeping that saves the next board

The mounting pattern moves to the RobStride 01 four hole layout, because that actuator is the first target for the evaluation kit. All twelve DNP lines go back into the BOM, including the three snubbers. A DNP part missing from the BOM has no documented value, so the option is lost the day someone needs to fit it. The VIN 0.5 mm clearance is now a rule in the design rule check.

What this entry does not show

No switching waveforms, no load thermal data and no dyno results; those wait for V1.3 hardware on our T-REX dynamometer. The current sense numbers are from DC steps up to 3 A on V1.2 only. The decision on the amplifier polarity fix is still open.


References

  1. STMicroelectronics, STM32G474xB/xC/xE datasheet DS12288, HSE oscillator characteristics, 4 to 48 MHz.
  2. Texas Instruments, INA240 datasheet SBOS662C: gain options (INA240A1, 20 V/V) and gain error, 0.20 percent maximum.
  3. Linear Technology (now Analog Devices), Application Note 88, Ceramic Input Capacitors Can Cause Overvoltage Transients, March 2001.
  4. EPC, How2AppNote007, Design an eGaN FET Based Power Stage with an Optimal Layout, and WP010, Optimizing PCB Layout with eGaN FETs.
  5. Aleph-B internal: Ulna V1.2 bench reports and current sense data, October 2026; V1.3 change list, 11 November 2026.
  6. Aleph-B Notebook, Missing Kelvin Taps Cost 16% of Shunt Gain, 26 October 2026.