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 studies
- 01 · Lab instrumentCharging fault across a fleet of lab instrumentsThe charge current was set at the battery pack's protection limit; one resistor lowers it from 7.5 A to 3.85 A
- 02 · Energy-harvesting glassUnstable power readout on an energy-harvesting glass demoAn oscilloscope found a 0.95 V limit cycle in the power tracking; new firmware holds the reading within ±4 %
- 03 · Audio deviceSleep current of a battery audio device cut from 138 mA to 1.2 mADeep-sleep firmware on a new microcontroller; about 5 days per charge becomes about 138, projected
- 04 · Livestock wearableWrong battery-life reading on a livestock wearableA fuel-gauge setting was 100× off; the device shown as lasting about a day ran 17 days in the field
- 05 · Smart air flow meterA browser tool that scores a flow meter's accuracy testIt replaces a hand-built spreadsheet and matches 340 hand-picked strokes within 4.2 mL
- 06 · Sensor probe boardCircuit board design from a mechanical drawing to a placed fabrication orderA sensor probe board: KiCad design, checks, fabrication files, and 20 boards ordered, with the engineer approving twice
- 07 · ESP32 Wi-Fi examplePower draw of Espressif's Wi-Fi example cut from 55.6 mA to 13.5 mA, and two bugs sent upstreamA filmed session met a 16 mA budget, found the example losing every other report, and filed the fix with Espressif
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.
- 01ObserveA camera on the bench, a shell on the running device, live instrument readings.
- 02HypothesizeFrom the netlist, the datasheets, and the device's own source code.
- 03MeasureElectronic load, oscilloscope, power profiler, energy meter, and panel meters read through the camera.
- 04DiagnoseMechanism first: the electrical why, not only the symptom.
- 05VerifyMeasure again after the change, to prove the fix rather than assume it.
- 06RecordWrite 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.
Swipe sideways to see the whole figure
From the bench




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.
Swipe sideways to see the whole figure
From the bench






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.
Swipe sideways to see the whole figure
From the bench
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?
Swipe sideways to see the whole figure
From the bench
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
Swipe sideways to see the whole picture
- 1Add a recordingOne CSV per unit, as the device logged it.
- 2It finds every testEach forward and reverse pair is shaded and numbered on the whole recording.
- 3Check any testThe sheet's two plots, with the four boundaries as lines to drag or nudge a sample at a time.
- 4Read the resultVolumes and errors under the plots, and a red flag on anything outside the limits.
- 5ExportThe sheet's own summary columns, plus every setting and boundary used.
Swipe sideways to see the whole figure
From the bench




Swipe sideways to see the whole figure
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.
Swipe sideways to see the whole figure
From the project




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.
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.
From the bench




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.
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





