Kleidos API Search

In development. It changes without notice.

2026-11-20 — the Relay 2 Click commissioned, the relay null validated, and the first two-point shunt calibration

One bench session, from about 02:00 to 03:55 (CET), on firmware 0.3.0, image meter_relay2. The raw SCPI exchange is 2026-11-20.log: the host's log of every message and its response, with the 2,738 NUL bytes that padded its four *IDN? answers removed and nothing else changed. The registry files this session as events 2026-11-20-00 to 2026-11-20-02 of instrument KM-0000000000 (../instruments/KM-0000000000.json).

Result: R = 100.116 mΩ ± 0.085 mΩ (k = 2), one value for both ADC ranges. The instrument holds it as its working copy: SENSe:CURRent:SHUNt 0.100116, CALibration:TAG "R100_20261120_HR".

1. The Relay 2 Click as the shunt bypass

The bypass moved from the HW-316's K3 to the MikroE Relay 2 Click (../../docs/relay2-click-wiring.md): the LCA717 on the Click's RL2 terminals, its control input on GPIO15, active high. Two wiring faults were found and fixed before anything below: the GPIO15 wire first sat on the wrong control pin of the Click, and K1's GPIO7 wire was disconnected, so the first ROUTe:NULLpath ON closed the bypass but not the lead:

ERR 'ROUT:NULL ON': 104,"Lead check failed;lead check failed (the shunt still conducts: vs_pv=9000000000,1891250000,1833437500; released to path=shunt)"

The firmware did what it must: it refused, released to path=shunt, and the DUT stayed fed. With both wires fixed:

ROUT:STAT? k1=lead:closed k2=bypass:open k3=spare:off k4=spare:off path=shunt check=- pads=ok operate_settle_ms=20 release_settle_ms=50 hold_s=- hold_released=0 bypass_part=relay2click
ROUT:RES? k1=lead:open k2=bypass:closed k3=spare:off k4=spare:off path=bypass check=ok moved=k2,k1 settle_us=71965 live=0 marked=0 vs_pv=9013750000,2294687500,4062500 hold_s=120 q=invalid
  • ROUTe:BYPass ON refuses a measurement while the bypass is closed across a closed lead (101,"Shunt bypassed"), and OFF gives it back.
  • The three readings of the check, with the T-Deck drawing about 88 mA: 9.014 mV across the shunt alone, 2.295 mV with the bypass closed beside it, 4.06 µV with K1 open. The second reading puts the bypass branch (the LCA717, its wires and their screws) at 0.100 Ω × 2.295 / (9.014 − 2.295) ≈ 34 mΩ.
  • The switching times of the Click (operate and release, docs/rig-wiring.md §8.6) were not measured in this session; the firmware still waits its 10 ms SSR settle.

2. The relay null against the hand null

docs/rig-wiring.md §8.6, check 3: a null taken through the relays (ROUTe:NULLpath ON, CALibration:ZERO 60) and one taken by hand (the DUT's lead opened by hand) must agree within 0.1 µV. Four 60 s nulls on range 0, STATE, alternated so that a steady drift does not read as a difference:

# Method offset_pv µV die_mc
1 relay 1858853 1.859 25460
2 hand 1978194 1.978 26617
3 relay 2055547 2.056 25539
4 hand 2320868 2.321 25539

The four rise monotonically, about 0.13 µV per step: drift, not method. A least-squares fit of a constant, a linear drift and a method offset gives hand − relay = +0.057 µV (drift 0.135 µV per step, residuals ±0.036 µV), inside the 0.1 µV criterion. The relay null is validated: QA may null through the relays again.

3. The offset null drifts within a session

The range-0 null went from 1.86 µV (the first relay null, early in the session) to 2.22 (the STATE null taken before the line dropped at about 02:30), 2.94 (SLEEP, about 03:00), 4.38 (SLEEP, 03:45) and 4.61 µV (about 03:55): about 2.7 µV in two hours, most likely thermal EMF in the sense loop, warmed by the 0.16 W the reference dissipates. A null therefore belongs to its session and is never part of the calibration: the guided calibration takes its own before and after, QA brackets every capture with its own, and the registry stores the nulls of a calibration only as evidence.

4. The shunt, two points against the 100 Ω reference

Method: ../README.md, "The shunt, two points". Reference: VPG Y0785100R000T9L, 100 Ω ±0.01 % (S102C foil: TCR ±2 ppm/°C, load life ±0.005 %), no certificate. One bench fact differs from the guide's step 4: on this rig the cell's + feeds the VBUS screw and a VBUS–VIN+ jumper carries it to VIN+. For the calibration the cell's + was moved to VIN+ and the VBUS wire went to the reference's top lead, so VBUS sensed the reference and nothing else.

Run 1 (02:49–03:30): drifting joints — superseded

The reference's leads were twisted and clipped to the pigtails. STATE, 2000 samples a point, the 10 s STATE nulls taken before the line dropped at about 02:30 (range 0 2.217 µV, range 1 2.193 µV):

Range r_nohm die_mc
0 100035634 26953
0 100046072 27710
1 100046169 27039
1 100043185 27867

Every limit of the tool held (repeats of 104 and 30 ppm against 200, ranges 38 ppm apart against 1000), and 100.043 mΩ was stored (R100_20261120). Ten minutes later, on fresh SLEEP nulls, the same wiring read 100.153 to 100.163 mΩ on range 0 and 100.169 to 100.177 on range 1 (300 samples a point), and by 03:30 range 0 read 100.209 to 100.212 mΩ on both profiles: 100.04 → 100.21 mΩ over about 40 minutes. A shift of 0.17 % is a contact of about 0.17 Ω in series with the reference's VBUS path, about 7 mV on the 4 V it senses: the twisted joints, not the shunt. The run is filed as superseded, and the lesson is in the guided calibration: the joints are screwed, and a closure gate compares the first and the last block of each range.

Run 2 (03:34–03:39): stability after screwing the joints

The reference's joints were screwed into terminal blocks. Then 20 points on range 0, STATE, 1000 samples each, in about five minutes:

100159299 100170391 100155605 100155906 100163018 100168242 100149305 100146147 100154109 100167486
100163000 100154638 100171817 100164837 100178932 100161035 100145384 100152486 100158643 100158674

Mean 100.160 mΩ, sample standard deviation 87 ppm, no trend (slope −65 ± 348 nΩ per point, −12 ppm over the run). The bench was still; these points ran on the STATE nulls of 03:00, 1.44 µV older than the ones of run 3 (section 5).

Run 3 (03:45–03:55): the calibration — accepted

SLEEP profile (4120 µs conversions, 16 averages), nulls of 60 s with K1 open (ROUTe:LEAD OPEN,FORCe, path=none, the T-Deck on USB), then four points of 600 samples on each range, then a closing null on range 0:

Null offset_pv die_mc
range 0, before 4382038 26195
range 1, before 3941001 26093
range 0, after 4609023 26062
Range Points (r_nohm) Mean sd
0 100104667, 100077748, 100078437, 100091723 100.0881 mΩ 127 ppm
1 100132213, 100147473, 100151308, 100146675 100.1444 mΩ 84 ppm

The ranges are 562 ppm apart, inside the 1000 ppm limit; the die stayed between 26.09 and 26.48 °C. The value applied to both ranges is their mean, 100.116 mΩ, and the split enters the budget as a term of its own.

5. What the three runs say about the range split

The split was 38 ppm in run 1, 153 ppm in the SLEEP points at 03:00, and 562 ppm in run 3, each time with range 0 measured before range 1. Drift is confounded with range, so the split is not yet a property of the instrument: applying one value to both ranges, with half the split as a budget term, is the honest result today. The guided calibration measures the ranges in the order 0, 1, 1, 0, which takes a linear drift out of the split; a later calibration that shows a stable split may apply each range's own mean.

Between runs, range 0 read 100.160 mΩ (run 2) and 100.088 mΩ (run 3), 720 ppm apart, more than the budget's 112 ppm repeatability: run 2's null was 1.44 µV older, which on a 4.06 mV signal explains up to 355 ppm. Both sit inside 100.116 ± 0.085 mΩ, so the filed interval holds; the guided calibration takes its repeatability from the scatter between blocks with fresh nulls around them, not from within one block.

6. Uncertainty budget

Term Limit Distribution u (ppm, k = 1) Source
reference tolerance ±100 ppm rectangular 58 VPG Y0785100R000T9L, ±0.01 %
reference TCR ±40 ppm rectangular 23 ±2 ppm/°C over a ±20 °C bound on the reference's temperature (0.16 W of self-heating)
INA228 bus gain ±500 ppm rectangular 289 TI SBOSA20 §6.5, ±0.05 %
range gain spread 281 ppm normal 281 half the 562 ppm split of run 3
null drift 57 ppm rectangular 33 range 0's null moved 0.227 µV across the run, on a 4.06 mV signal
repeatability 112 ppm measured 112 the points' scatter

u_c = √(58² + 23² + 289² + 281² + 33² + 112²) = 424 ppm; U (k = 2) = 848 ppm, ±85 µΩ.

R = 100.116 mΩ ± 0.085 mΩ (k = 2), against the 1 % every figure carried while the part was unmeasured.

7. As stored

CAL:DATA? shunt_uohm=100116 shunt_measured=1 off_pv_r0=4609023 off_pv_r1=3941001 nulled_r0=1 nulled_r1=1 off_die_mc_r0=26062 off_die_mc_r1=26093 vbus_side=source cal_tag=R100_20261120_HR

This NVS blob is the working copy; the registry entry 2026-11-20-02 is the calibration. Firmware 0.4.0 reads the same blob after an app flash and adds cal_date, which kleidos-meter calibration restore writes from the registry.