Case studies · Hardware Bench

Closing the loop on real hardware

Client engagements where a Hapimatic session helped close the loop on a physical device: look at it, measure it, find the cause, change something, and measure again. Another takes a board from a mechanical drawing to a placed fab order, and a study on our own bench cuts the power of Espressif's own Wi-Fi example and sends two bugs back upstream

In the client studies, client, product, and person names are withheld, and parts are named by their role; the ESP32 Wi-Fi study is our own bench work on a public board and Espressif's public example, so it names both. A number is measured on the bench, or taken from the engagement's own records, unless it says projected or estimated. Photos are lab-camera frames and captures from the engagements, cropped, blurred, or painted out where they showed a name, a logo, a serial, or a label.

The same loop, every time

Each study is real work, not a simulation: client engagements, and an investigation on our own bench. They ran the same six steps on real hardware, except the board study, which ran its loop from a drawing to a placed fab order. The loop, not the code generation, is the point.

  1. 01
    ObserveA camera on the bench, a shell on the running device, live instrument readings.
  2. 02
    HypothesizeFrom the netlist, the datasheets, and the device's own source code.
  3. 03
    MeasureElectronic load, oscilloscope, power profiler, energy meter, and panel meters read through the camera.
  4. 04
    DiagnoseMechanism first: the electrical why, not only the symptom.
  5. 05
    VerifyMeasure again after the change, to prove the fix rather than assume it.
  6. 06
    RecordWrite the finding to a durable knowledge base with its source and a confidence tier.

Who does what

The session observes, measures, diagnoses, and writes the record. A person does the physical rework: the soldering, the part swap, the probe on the pin.

Every claim in a study traces to a source: a tool call, a commit, or a measurement. Where a figure is projected rather than measured, it says so.

When a better measurement disagreed with the session's own earlier estimate, the estimate was replaced and the correction recorded.

01 · A field-deployed, battery-powered lab instrument

Charging fault across a fleet of lab instruments

An inherited device with no documentation, design files that did not match the board that shipped, and a fleet in the field reporting the same fault: after a day's use it would not recharge. It also ran warm while charging and sometimes shut itself down.

Charge current against the pack's protection limit BEFORE · ramp, trip, repeat 12 A 0 A pack protection · 8 A charger set to 7.5 A triptriptriptrip trip trip trip trip time → AFTER · one resistor change 12 A 0 A pack protection · 8 A charger set to 3.85 A charge complete time → Fleet-wide design-margin fault · reproduced on the bench · one resistor fixed it

Swipe sideways to see the whole figure

fig. 1 - the charge current before and after the fix, drawn from the bench measurements

From the bench

The bench supply at the moment of the protection trip, reading 19.01 volts, 2.504 amps, 47.6 watts, with the oscilloscope beside it.
Lab cameraAt the trip · the bench supply reads 19.01 V, 2.504 A, 47.6 W as the pack's protection opens
The same bench supply after the fix, steady at 19.00 volts, 0.936 amps, 17.7 watts.
Lab cameraAfter the fix · the same supply, the same afternoon: 19.00 V, 0.936 A, 17.7 W, steady
Chart of pack voltage against discharged capacity, ending at 9.86 amp-hours at the 2.50 volt cutoff.
Measured chartThe reference discharge · 9.86 Ah delivered to the 2.50 V cutoff
The instrument on the bench between a multimeter reading 0.805 amps and a thermocouple meter; the device screen is blurred.
Lab cameraThe A/B study · the pack current was read off the meter through the camera every 10 s

What the session did

  • Rebuilt the power tree from the real netlist and confirmed a real-time-clock wiring defect with an electrical rule check: exactly two dangling labels.
  • Traced the charge path to the charger's programmed current, which sat at the battery pack's own protection limit, a design-margin fault across the whole fleet. Reproduced the trip on the bench and validated a one-resistor fix.
  • Found a software power-off that left the board drawing current with a dead button, and a 90-second shutdown hang, and fixed both.
  • Wrote and hardware-validated its own driver for the bench electronic load, measured the pack's true capacity, and reconciled the on-board fuel gauge against that reference.
  • Ran an overnight recharge under a watchdog with authority to cut AC power, then a two-unit power and thermal A/B study.
  • Bench camera
  • Electronic load
  • Energy meter
  • Shell on the device
  • Schematic rule check

Measured result

Charge fault
charger set to 7.5 A against an 8 A protection limit→3.85 A, a clean charge to termination
Power-off draw
360 mA→0 mA
Shutdown time
90 s→about 1 s
Pack capacity
9.86 Ah, by reference discharge
Overnight recharge
104 watchdog ticks, zero interventions, zero protection trips
Bench-load driver
19 of 19 methods validated against the instrument

Who did what. The session observed, measured, diagnosed, and documented. A person did the rework.

02 · An energy-harvesting glass demo

Unstable power readout on an energy-harvesting glass demo

The glass really generated power, but the factory demo's own readout swung so wildly that it looked broken: the on-screen power figure lurched between about 130 mW and 990 mW from second to second, and the demo browned out often.

Where the panel was operating, and what the display showed power panel voltage → 0.95 V floor maximum-power point 176 mW at about 17 Ω limit cycle · 37 to 47 % wasted ≈ 2× delivered power ≈ 2× delivered power BEFORE · on-screen reading 990 mW 130 mW AFTER · on-screen reading ±4 % zero brown-outs The display hid the cause; the oscilloscope showed a limit cycle, not a tracker

Swipe sideways to see the whole figure

fig. 2 - the operating point on the panel's power curve, and the on-screen reading before and after

From the bench

The glass panel lit under a lamp on the bench, its display reading 2140 millivolts and 38 milliamps, with oscilloscope probes on the board; the name on the display is blurred.
Lab cameraThe demo under the lamp · the lamp on the panel, the display, and the scope probes on the board
Four frames of the demo's display about a second apart, the power reading different in each; the company name and unit id are replaced by placeholders.
Lab cameraBefore the fix · four frames a second apart, the reading swinging
Oscilloscope capture of the panel voltage: a sawtooth pinned at the 0.95 volt floor.
OscilloscopeThe cause · the 0.95 V limit cycle the display hid
Chart of the panel's measured current and power against voltage from a decade-box load sweep, peaking at 176 milliwatts.
Measured chartThe decade-box sweep · the panel's true maximum-power point, 176 mW at about 17 Ω
A resistance decade box: rows of switches for 1 ohm to 1 megohm.
Bench photoThe decade box · the load for the sweep, from 1 Ω to 1 MΩ in switched decades
The same display after the fix with a steady reading; the company name and unit id are replaced by placeholders.
Lab cameraAfter the fix · a steady reading

What the session did

  • Read the display through the bench camera and caught the swing the client was seeing.
  • Drove the oscilloscope over the network and found the cause the display hid: the "maximum power point tracking" was a voltage-floor limit cycle at 0.95 V, pinning the panel far below its best operating point and wasting about 37 to 47 percent.
  • Flashed each firmware revision over the debug port and read the raw framebuffer out of RAM, to separate what the firmware drew from what the panel showed.
  • Measured the panel's true maximum-power point with a decade box, then shipped a fixed-load, filtered, display-synced firmware.
  • A later session found a boost-converter latch that never cleared under falling light, specified a two-resistor undervoltage-lockout divider plus matching firmware, and documented the change with photos.
  • Bench camera
  • Oscilloscope
  • Debug probe
  • Decade box

Measured result

On-screen reading
swing of 130 to 990 mW→±4 % steady
Brown-outs
frequent→zero
Panel operating point
pinned at the 0.95 V floor→held near the maximum-power point, about 2× delivered power
Measured maximum-power point
176 mW at about 17 Ω
After the divider
Rides a falling source down to 25 mA, from 53, and recovers by itself at 45 mA or more (before: never recovered)

Who did what. The session wrote the firmware, flashed it, measured, and merged the fix. A person fitted the divider.

03 · A battery-powered audio device

Sleep current of a battery audio device cut from 138 mA to 1.2 mA

A portable audio device whose idle current, 138 mA, gave it a few days on its battery, with a broken audio library, a heap that fragmented, and a bill of materials over its cost target.

Energy per day, and days on one charge BEFORE · 138 mA idle 959 mAh per day AFTER · 1.2 mA deep sleep 36 mAh per day · 27× less The same stretch of time, on a 5000 mAh cell: about 5 days per charge about 138 days per charge projected from the measured draw

Swipe sideways to see the whole figure

fig. 3 - energy per day, and how long one charge lasts, before and after the deep-sleep firmware

From the bench

A power profiler trace of the old firmware: the current stays between about 130 and 180 milliamps, and the selected idle and sleep stage averages 138.09 milliamps.
Power profilerBefore · the old firmware's idle and sleep stage averages 138.09 mA
A power profiler trace of the new firmware on the same scale: active current, then a drop to the sleep stage, which averages 1.20 milliamps.
Power profilerAfter · the new firmware's sleep stage averages 1.20 mA, on the same 0 to 400 mA scale
A KiCad schematic sheet with blocks for power, the microcontroller, audio, storage, user input, and haptics; the title block is cleared.
DeliverableThe wiring schematic · drawn by the session in KiCad: power, controller, audio, storage, input, haptics

What the session did

  • Produced a system wiring schematic in KiCad.
  • Replaced the broken audio library with a direct I²S player and fixed the heap-fragmentation failure.
  • Wrote deep-sleep firmware with a state-machine controller on a new microcontroller, merged within the week.
  • Closed the bill-of-materials cost issue through a board fabrication change and a smaller battery.
  • Power profiler
  • KiCad
  • Debug probe

Measured result

Sleep current
138.09 mA→1.20 mA
Energy per cycle
39.9 mAh→1.5 mAh
Energy per day
959 mAh→36 mAh
Days on a 5000 mAh cell
about 5→about 138 (projected from the measured figures)
Bill of materials
Cost target met

Who did what. The session wrote the firmware and drew the schematic. A person measured the old and new hardware with the power profiler.

04 · A cellular wearable sensor for livestock

Wrong battery-life reading on a livestock wearable

The device was believed to last about a day per charge. Was the drain the recording duty cycle, the radio, or the gauge itself?

What the gauge said, and what the bench measured 100 % 50 % 0 % day 05101520 what the gauge implied · empty in about a day day 17 in the field · 27 % left what the gauge implied · empty in about a day day 17 in the field · 27 % left about 20 days projected starting from the 60 % the unit was at when the fleet test began The cause: a sleep-current register whose default was 100× the real draw The fix: set it to the floor, and report charge from voltage

Swipe sideways to see the whole figure

fig. 4 - state of charge over days: what the gauge implied against what the field test measured

From the bench

A dashboard chart of one unit's telemetry across a day: battery voltage stepping down, signal, and accelerometer traces.
Field telemetryThe fleet dashboard · one unit's battery (yellow), signal, and motion across a day, in the monitor the session extended with reboot and storage warnings

What the session did

  • Ran an isolation study with a power profiler it controlled over SSH: flashed each firmware level, measured with the debugger unplugged (it adds 1 to 2 mA), and compared. All seven duty-cycle levels sat at the same sleep floor, so recording was not the drain.
  • Found the gauge 8.8× too pessimistic. The cause was a sleep-current register whose default was 100× the real sleep current. The fix set the lowest available value and moved battery reporting to a voltage-based estimate; the next firmware measured about 0.32 mA on average.
  • Ran a fleet test designed to fail. Four of five units dropped out, which exposed a storage trap in poor coverage that silently rebooted one unit about 14 times. Fixed with graduated storage thresholds. The unit in healthy coverage ran 17 days and still had charge.
  • Power profiler
  • Shell on the profiler host
  • Debug probe

Measured result

Sleep floor
0.10 to 0.11 mA at every duty-cycle level
Average draw
6.25 mA implied by the gauge→0.714 mA measured, then about 0.32 mA after the fix
Gauge register
10 mA default→about 0.1 mA real: 100× off
Days per charge on a 150 mAh cell
about 1 shown→17 in the field with 27 % left (about 20 projected from the bench)
Fleet test
4 of 5 units failed, by design; one trap found and fixed

Who did what. The session drove the profiler, flashed each level, and fixed the firmware. A person handled the units and the debugger.

05 · A smart air flow meter

A browser tool that scores a flow meter's accuracy test

The device's volume accuracy is checked by pushing and pulling a 3 L calibration syringe through it. Scoring the pressure log was hand work in a spreadsheet: a copied tab for each test, a typed time offset, and stroke boundaries picked by eye, row by row. The engineer who did that work asked a session to improve it.

The tool the session built

3l-analyzer.html · one file, opened from the disk
The tool with six recordings loaded: buttons to add files and to export, the whole recording with five tests shaded and numbered, and one test with its four boundaries, its flow-against-volume loop, and its volumes and errors; five numbered markers key the picture to the steps of use.

Swipe sideways to see the whole picture

  1. 1Add a recordingOne CSV per unit, as the device logged it.
  2. 2It finds every testEach forward and reverse pair is shaded and numbered on the whole recording.
  3. 3Check any testThe sheet's two plots, with the four boundaries as lines to drag or nudge a sample at a time.
  4. 4Read the resultVolumes and errors under the plots, and a red flag on anything outside the limits.
  5. 5ExportThe sheet's own summary columns, plus every setting and boundary used.
A results table with one row per test for three units; the first unit's forward and reverse errors are flagged red, and the other two units' are not.

“I wasn't expecting the HTML format, but it works well.”

The engineer, six days after first using it
What the engineer asked for
less hand work; the form was left open
What the session proposed
one file that opens in a browser, with nothing to install
Where a stroke starts and ends, scored against 340 hand picks +4 L/s 0 −4 L/s 0 s 1 2 3 4 forward reverse picked by hand found by the tool first draft · median 5.5 mL 199 of 340 strokes over 5 mL shipped · median 1.1 mL worst 4.2 mL · none over 5 mL 0 5 mL 10 mL from the hand pick, one bar per 0.5 mL One real test: the tool's picks sit just inside the hand picks, under 2 mL apart All 340 hand-picked strokes were found; the settings were tuned on them, then shipped

Swipe sideways to see the whole figure

fig. 5 - one recorded test with the boundaries picked by hand and found by the tool, and the tool's distance from 340 hand-picked strokes before and after tuning, drawn from the recordings

From the bench

A blue 3 litre calibration syringe on a desk, coupled through taped adapters to a black printed tube that carries a small circuit board and a USB cable; the syringe maker's logo and the desk behind are blurred.
Bench photoThe rig · a 3 L calibration syringe coupled to the device's printed flow tube, the board on top, logging over USB
The circuit board mounted on a black printed tube, a white USB cable plugged into it and a blue light lit; the print on one part is blurred.
Bench photoThe device end · the board on the printed flow tube, powered and logged over one USB cable
A spreadsheet tab with a column of numbers and two charts of one syringe test, flow over time and flow against volume; the tab names are blurred.
SpreadsheetBefore · a copied tab for every test, with the stroke rows picked by eye
A chart of volume error per test for seven recordings; the reverse strokes sit between plus 3 and plus 5 percent in every recording, above a plus 2.5 percent limit line, and the forward strokes sit near zero.
Measured chartThe first day · 73 tests in seven recordings: reverse read high on all four tube bodies, forward did not
The first day, on the clock one hour: scoring one recording by hand (the engineer's estimate) the session 9:04 the session opens · 9:58 asked for a plan 10:10 go-ahead · 10:26 tool pushed the bench 11:08 11:42 five recordings, 3:21 to 4:32 PM each dot: a recording made, scored, and exported 9 AM 10 11 noon 1 PM 2 3 4 5

Swipe sideways to see the whole figure

fig. 6 - the first day on the clock: the build from the session's own timestamps, and each recording from its result file's export stamp, in local time

What the session did

  • Audited the hand-worked spreadsheet first. It read the sheet with its formulas and found what hand work had left behind: a peak-rate formula that stopped at row 200 and read low in 8 of the 15 tests, and a row range that no longer matched its stroke. It raised 15 issues; the engineer ruled 8 of them out and kept 7.
  • Turned the engineer's own judgment into a test set. From the engineer's eleven workbooks it pulled every stroke boundary he had picked by hand that still had its raw data: 170 tests, 340 strokes.
  • Wrote the stroke finder to his rule, and scored it before shipping. He ends a stroke where the flow settles and drops the flutter that sums to zero. The first draft sat a median 5.5 mL from his picks. After a sweep of the settings, the pair that scored best still had one stroke 22 mL off; the pair that shipped has a median of 1.1 mL and a worst case of 4.2 mL.
  • Proposed a form the engineer did not expect. He asked for the hand work to be automated and left the form open. The session proposed one file that opens in a browser, and he agreed. It installs nothing and makes no network call. It passed a 25-check browser test and was pushed 15 minutes after the go-ahead.
  • Read each result as the engineer worked the bench. He ran seven recordings that day, 73 tests, and moved no boundary by hand. The session read each result file and answered within 13 to 26 seconds. Reverse averaged 3.4 to 4.8 % high in every recording, on all four printed tube bodies and through a board and sensor swap, a flipped restrictor disc, and a clamped sensor port, while forward averaged between −0.2 and +1.1 %.
  • Was corrected, and said so. It took a pass limit from a procedure document when the real limits were in the sheet's own formatting, and its prediction of which sensor port might leak was wrong. The engineer's answers and bench tests settled both.
  • 3 L calibration syringe
  • Pressure log
  • Spreadsheet formulas
  • Headless browser test
  • Git

Measured result

Hand work per recording
an hour or more→none: 73 tests scored with no boundary moved by hand (the hour is the engineer's estimate, not timed)
Distance from the hand picks
5.5 mL median on the first draft→1.1 mL median, 4.2 mL worst, over 340 strokes
Given the sheet's own rows
15 of 15 tests reproduced to within a microlitre
Go-ahead to pushed tool
15 minutes, and in use on the bench 46 minutes after that
The first day
7 recordings, 73 tests; the last four change, record, and score cycles took 71 minutes
Reverse-stroke error
+3.4 to +4.8 % on average in every recording, against a ±2.5 % limit (the cause is still open; the printed parts are the working theory)

Who did what. Here the roles are reversed. The engineer ran every stroke, made every hardware change, and led the diagnosis. The session audited the sheet, built and tested the tool, and read each result.

06 · A sensor probe interposer board

Circuit board design from a mechanical drawing to a placed fabrication order

A client's handheld sensor needed a small interposer board: three spring probe pins on a 5 mm pitch carried to a three-conductor cable, inside a printed housing with almost no free space. The inputs were a mechanical engineer's drawing and housing model, a bill of materials, and a paragraph of intent - no schematic, no socket footprint, no layout. A session took those inputs to a placed fabrication order, with the hardware engineer at two gates.

From drawing to placed order - 129 minutes of board work, by stage gate: design review gate: order approval 0 20 40 60 80 100 129 min Read & survey Design/export Review & check Fab & order

Swipe sideways to see the whole figure

fig. 7 - the 129 minutes of board work by stage, with the operator's design-review and order-approval gates, drawn from the session's turn records

From the project

A ray-traced render of the small round interposer board: three gold probe-pin pads and plated holes with white silkscreen net labels, on a dark background.
Ray-traced renderThe board design · three probe nets on a 5 mm pitch, ray-traced from the released KiCad project
An engineering map of the free space inside the housing around the board: the body plastic and nut bosses, the relief slot under the board, the pin-socket flanges, and the proposed wire through-holes.
Envelope mapWhere the board has room · free space from slices of the housing model, with the pins' through-holes placed in it
The first layout of the board, pin side: three pads in a row with plated holes, the board model number shown as a placeholder.
First layoutCommitted for review · the first pin-side layout, 38 minutes of model time in
An assembled board, round and green, on a white surface, seen at an angle: three gold spring pins stand in sockets soldered to its pin side, plunger tips away from the board.
Bench photoAssembled · on the bench: a socket in each of the three pin holes, and the spring pin the operator chose in each socket

What the session did

  • Read the inputs and mapped the real envelope. It read the drawing, the housing model and the bill of materials from the project's Drive folder, then sliced the housing model to find the free space the board actually had.
  • Caught two fit problems in the specified parts. The named spring pin was too short to reach the socket's contact, so it surveyed 969 receptacle and 256 pin listings and proposed two longer-tailed pins; a mounting-hole size it had first quoted turned out to belong to the wrong orientation, so it reported its own error and moved the sockets to the pin side.
  • Generated the whole KiCad project from the drawing's dimensions. A script holds the dimensions as constants and writes the schematic, the footprints and the layout, so every change is a re-run; the first layout was committed for review 38 minutes of model time in, and the released design passes ERC, DRC and the house lint with zero findings.
  • Turned two review rounds into enforced rules. The operator marked up what he wanted changed, and each correction became a constant in the generator and, where it could, a check - silkscreen-clearance rules, text measured on its drawn outline, review images with the board body filled so holes read as holes.
  • Built a fabrication package that refuses to be wrong. It caught the drawing border stamped on every Gerber layer, wrote a packaging script that refuses a defective file set, and read back the fabricator's own file check: two layers, 14.66 × 15.22 mm, nine files, no errors.
  • Had the missing ordering tool built, then placed the order. With no way to order without a browser, it supervised a peer session that built and merged the ordering tool with 170 tests, ran a dry run it compared with the operator's approved options on 18 points, and sent one confirmed request - 20 boards, seven seconds later; payment was left to the operator. It then handed the mechanical engineer a layered DXF in his own drawing's frame and to-scale silkscreen decals, matched to his DXF to three decimals.
  • KiCad 9 (headless)
  • FreeCAD
  • Distributor API
  • Fabricator API client
  • Drive + Gmail

By the numbers

Board work
about 129 minutes (the board and tooling split of each turn is a judgment)
First layout
38 minutes of model time after the kickoff; approved layout at 92
Part survey
969 receptacle and 256 pin listings → two proposed pins
Design checks
ERC 0, DRC 0, house lint 0
The board
14.66 × 15.22 mm, 2 layers, 9 fabrication files
The order
20 boards, placed 7 seconds after an 18-point dry-run match
On the bench
one of the 20 boards, assembled by the operator with the socket the session's footprint was drawn for and one of the pins it proposed (the pin was his choice, by hand)
Pipeline improvements filed
17 issues against the shared tooling, from problems met on this board

Who did what. Here the session produced the engineering. It read the inputs, found and reported two fit problems, generated and checked the design, verified the fabrication package, had the missing ordering tool built, and placed the order. The hardware engineer set the brief and stood at two gates, the design review and the order approval; the mechanical engineer supplied the housing model and took the exports.

Read the full study

07 · An ESP32 Wi-Fi board on our own bench

Power draw of Espressif's Wi-Fi example cut from 55.6 mA to 13.5 mA, and two bugs sent upstream

Espressif ships an example with its Arduino core for the ESP32: join Wi-Fi, send a value to a ThingSpeak channel, read the last three back, wait 10 seconds, and repeat. On a public dev board powered only through a power profiler, a filmed session was asked to lower the power draw without changing what the device does. On the way it turned out the example lost every other report and never sent its read key.

Average current at 3.7 V, each over at least 22 report cycles LOSING EVERY OTHER REPORT Stock example, as shipped 56.8 mA First pass 32.7 mA EVERY REPORT DELIVERED · HOURS ON A 1,000 mAh CELL Stock, bugs fixed 55.6 mA · 18 h Stage 1 32.8 mA · 30 h Stage 2 13.5 mA · 74 h 16 mA budget Hours are projected: the cell's capacity divided by the measured draw, no derating Average current at 3.7 V each over at least 22 report cycles LOSING EVERY OTHER REPORT Stock example, as shipped 56.8 mA First pass 32.7 mA EVERY REPORT DELIVERED Stock, bugs fixed 55.6 mA · 18 h Stage 1 32.8 mA · 30 h Stage 2 13.5 mA · 74 h 16 mA budget (the dashed line) Hours on a 1,000 mAh cell are projected: its capacity divided by the measured draw, no derating
fig. 8 - average current at 3.7 V for each build against the 16 mA budget, drawn from the profiler log; the hours on a 1,000 mAh cell are projected

From the bench

The Adafruit ESP32 Feather V2 on a breadboard, its battery pin wired to a Nordic PPK2 power profiler, its only supply, with on-screen labels naming the board and the profiler.
Film stillThe bench · the ESP32 Feather V2 on a breadboard, powered only by the PPK2 at 3.7 V
A power profiler trace of the stock example: the current sits near 45 milliamps most of the time between short radio bursts, with three tiles for the idle floor, the processor waiting for the server, and the radio.
Film stillWhere the power went · about 80 % of each cycle at a 45 mA idle floor, from a 32-second profiler capture
Thirty-four numbered circles from 0 to 33 for the reports that reached the server after the fix, above two cards: wait at least 15 seconds between writes, and the read-back never sent its key.
Film stillFixed · 34 reports in a row reached the server, and the read key the example never sent
A power profiler trace of the stage 2 firmware: the current rests near 2.5 milliamps between spikes, under a red dashed line at the 16 milliamp budget.
Film stillStage 2 · 13.5 mA, under the 16 mA budget, still reporting every 16 seconds

What the session did

  • Found where the power went before changing anything. A 32-second profiler capture showed the board idling at 45 mA for about 80 % of every cycle, the processor at 240 MHz while the sketch waited; the radio ran only in short bursts.
  • Cut the draw 42 % in a first pass, one measured change at a time. The processor at 80 MHz, a 1 ms pause in the reply wait, the radio's maximum modem sleep, and an unused power rail switched off, with Matt's three choices made in the Pins tab.
  • Was shown a defect it had recorded as behaviour, and fixed it. Matt saw that only every other report reached the server; the session had noted the pattern and kept it. ThingSpeak's free license takes one update every 15 seconds and the example wrote about every 12.3. Fixing that turned up a second bug: a read request that never sent its key.
  • Met an arbitrary 16 mA budget without changing what the device does. It showed the board could not idle below 26 mA while awake, measured that rejoining Wi-Fi every cycle would cost more, and on Matt's pick rebuilt the firmware with ESP-IDF so the chip sleeps between radio beacons while staying connected.
  • Recovered from a build that locked itself in. The new build cut off the board's over-Wi-Fi loader; the session found why in the linker map, rebuilt it, and sequenced the cable recovery from the board's schematic.
  • Offered both fixes back to Espressif. It checked for earlier reports, tested the exact file on the board (4 of 8 writes accepted before, 7 of 7 after), and posted two issues and a pull request only after Matt typed yes.
  • Power profiler
  • Over-Wi-Fi loader
  • ESP-IDF build
  • ThingSpeak API
  • GitHub

Measured result

Average current
55.6 mA→13.5 mA, under a 16 mA budget (the example with its bugs fixed, then stage 2)
First pass
56.8 mA→32.7 mA (on the example as shipped)
Reports reaching the server
every other one→every one: 34 in a row after the fix
Energy per delivered report
5.17 J→0.80 J
Hours on a 1,000 mAh cell
about 18→about 74 (projected from the measured draw)
Upstream
two bug reports and a fix filed with Espressif; open, awaiting review, as of Nov 22, 2026

Who did what. The session measured, rewrote, and rebuilt the firmware, found and fixed both bugs, and drafted and tested the reports for Espressif. Matt made the four requests and set the budget, made five decisions in the Pins tab, pressed the reset button three times, and approved the posting. A second session kept the profiler running.

Read the full study

About these studies

The client studies are engagements of Solid Product Design, the company behind Hapimatic; client, product, and person names are withheld there, and parts are named by their role. The ESP32 Wi-Fi study ran on our own bench, with a public dev board and Espressif's public example. The sessions ran on Hapimatic, with the Hardware Bench tools wherever a session worked with an instrument or a board design; the bench, the instruments, and the hands belong to our engineers.

Put a session on your bench

The Hardware Bench add-on of the hosted service brings these instruments to your agent. In pilot - contact us

Contact us about hosted pilots