Four numbers claim to be this supply's current limit
A bench supply is the one instrument on the bench that tells you what the other instruments are doing. It has two controls, and they answer two questions: how many volts, and how many amps am I willing to hand over before something should stop. Every other specification is a qualifier on those two answers — resolution, load regulation, noise, transient response all describe how honestly the two numbers are delivered.
This one has no mains lead. Inside a printed case measuring 102 by 99.5 by 32 millimetres, taken from the enclosure STL in the repository rather than from a website, there is a 4S 21700 pack, a USB-C sink, a four-switch buck-boost converter, an eFuse, two current monitors, an 8-character LED matrix and an ATtiny. It is published in full under CERN-OHL-S-2.0 as BenMakesEverything/Pocket-Lab-Power-Supply: schematic, PCB, Gerber, bill of materials with supplier part numbers, enclosure in STL and STEP, and the Arduino firmware.
What makes it worth taking apart is that the two numbers on the front panel are not the two numbers in the silicon, and neither of them is the number that matters. There are four ceilings on the output current alone, they are set by four different things, and the highest one is the only one that is a decision. Working out which is which is a short exercise in reading register maps, and it produces a set of figures that no product page would print.
A bench supply with a battery where the transformer was
The signal chain is short enough to read in one pass. Each block contributes one constraint.
| Stage | Part | What it fixes |
|---|---|---|
| USB-C sink | TPS25730 with CSD87501L | Requests 20 V from the source; the back-to-back FETs keep VBUS off the board until negotiation succeeds |
| Charger and system path | BQ25792 | Charges 1 to 4 cells from 5 V to 24 V in; cuts discharge at 12 V |
| Buck-boost | TPS55289 | 0.8 V to 21.27 V in 10 mV codes, current limit in 50 mA codes |
| Protection | TPS259474 | A second current limit, adjustable with one resistor, plus a fast trip |
| Current sense | 10 milliohm at ISP and ISN | Closes the regulator's own current loop |
| Output monitor | INA226 across 10 milliohm | Measures what actually leaves the board |
| Housekeeping | 2x SY8253, TPS70933, ATtiny3216 | 3.3 V and 5 V rails, plus a low-quiescent-current rail that keeps the MCU alive when the output switch is off |
The pack is the first place where a nameplate and a usable number diverge. Four 21700 cells at 4,500 mAh give 75.6 Wh at 16.8 V, which is the figure on the cell wrapper multiplied out. Nominal is 66.6 Wh at 14.8 V. What the device can actually spend is 64.8 Wh: the charger stops at 12.0 V, three volts per cell, and over the window between full and that cut-off the pack averages about 3.6 V per cell. The cut-off costs a few percent of capacity, because the last stretch of a lithium-ion discharge curve holds very little charge, which is the one place where this design is kinder than its label.
The output switch is a single slide switch on the SYS rail, and it controls the output, the charging indication and the display together. That is worth knowing before reading the rest: when the switch is off, the display is dark because the firmware returns early from every draw call, not because the MCU is unpowered. The MCU has its own low-quiescent-current regulator for exactly that reason.
The knob counts 100 mV, the register counts 10 mV
The output voltage is set by an 11-bit reference DAC inside the regulator. Bits 1 and 0 of the feedback-select register choose the divider ratio and, since the firmware never writes that register, it sits at its reset value, which is the 20 V full-scale setting.
At that setting, a reference code of 0x000 produces 0.8 V and a code of 0x780 produces 20 V. The step between codes is therefore (20.0 − 0.8) / 1920, which is 10.0 mV. The firmware's knob step is 100 mV, so every detent of the encoder moves the code by ten.
The write is two bytes, low then high, with the high byte masked because only three of its bits are the remaining code:
int code = constrain((millivolts - 800) / 10, 0, 0x7FF);
writeReg8(tpsAddr, REG_REF_LSB, code & 0xFF);
writeReg8(tpsAddr, REG_REF_MSB, (code >> 8) & 0x07);
That 0x780 is not an arbitrary landing point. It is the same code Texas Instruments uses in its own output-voltage specification table to define the 20 V condition, so the firmware's ceiling is the datasheet's test condition, arrived at independently.
| Requested | Code | Register | Setpoint | Reference tolerance |
|---|---|---|---|---|
| 1.00 V | 20 | 0x014 | 1.00 V | ±10 mV |
| 5.00 V | 420 | 0x1A4 | 5.00 V | ±50 mV |
| 12.00 V | 1120 | 0x460 | 12.00 V | ±120 mV |
| 20.00 V | 1920 | 0x780 | 20.00 V | ±200 mV |
| 21.27 V | 2047 | 0x7FF | 21.27 V | ±213 mV |
| 22.00 V | clamped to 2047 | 0x7FF | 21.27 V | not reachable |
The last two rows are the interesting ones, and the tolerance column is the reason the first four are less precise than they look. The internal reference is specified at plus or minus one percent, so at 20 V the setpoint is known to about 200 mV either way. The register resolves 10 mV and the loop is accurate to 200 mV: the step is twenty times finer than the accuracy, which is a normal and slightly misleading state of affairs in test equipment, and it is why a supply that reads 20.0 can be 0.2 V off while a cheap multimeter says so.
The 1.00 V floor is also a firmware decision rather than a silicon one. The regulator's own floor is 0.8 V; the firmware's minimum constant is 1000 mV, so 200 mV of range is deliberately removed. Nothing in the code says why, but the shape of the omission is familiar: at the bottom of the range the converter's own offset and the divider's tolerance are a larger fraction of the output than anywhere else.
The register stops at 21.27 V, not 22 V
The datasheet headline for this part is an output range of 0.8 V to 22 V. The FAQ for the project repeats the number and then explains the shortfall: the theoretical maximum is 22 V, but due to the nature of the compensation system the output falls slightly short even when set to that, so it is soft-limited to 20 V.
The arithmetic gets there first, and it gets there earlier than the loop does. With a 10 mV step starting at 0.8 V, the highest code the 11-bit field can hold is 2047, and 0.8 + 2047 × 0.010 is 21.27 V. The 22 V figure is 0.73 V above anything the register can express. No amount of compensation tuning recovers it, because the request is never made.
That matters for a reason beyond pedantry. The firmware clamps the request and says nothing:
| Behaviour | Result |
|---|---|
| Ask the register for 22.000 V | 21.27 V, no error |
| Ask the firmware for 22.000 V | clamped by the 20000 mV UI ceiling first |
| Screen during the knob turn | S:20.0 V |
| Screen during normal rotation | O: the measured output, to 0.1 V |
Every clamping path returns a number that looks like success. The control that reveals it is the timing: at the configured slew rate of 2.5 mV per microsecond, a step from 5 V to 20 V takes six milliseconds, which is long enough to watch on a scope and long enough that the supply's output is not a step at all but a ramp.
The current ceiling is the fuse's tolerance band
The current limit is a second 7-bit field with an enable bit on top. Each code step is 0.5 mV across the sense resistor between ISP and ISN, and that resistor is 10 milliohm, so each code is 50 mA. The top code, 127, is 63.5 mV, which is 6.35 A.
| Code | Across the shunt | Current limit |
|---|---|---|
| 0 | 0 mV | off |
| 2 | 1.0 mV | 0.100 A |
| 50 | 25.0 mV | 2.500 A |
| 100 | 50.0 mV | 5.000 A |
| 120 | 60.0 mV | 6.000 A |
| 127 | 63.5 mV | 6.350 A |
The firmware writes the enable bit and a code computed as (mA + 25) / 50, which rounds to the nearest 50 mA step. The UI spans 100 mA to 5,000 mA in 50 mA increments. So the register's own ceiling of 6.35 A is never written; the highest value that can reach it is 5.00 A.
Here is the part that is not obvious from either datasheet. The reset value of that register is 0xE4, which is the enable bit plus code 100, which is 50 mV, which is exactly 5.00 A. If the firmware never touched the register at all, the chip would limit at the same current the firmware chooses. The software cap and the factory default are the same number.
Attempting to explain the coincidence by reading the code does not work, because the code has no comment on why 5,000 mA was picked. The eFuse does explain it.
The second limit is set by a 560 ohm resistor on the TPS259474's ILM pin. The datasheet's table of resistor values and thresholds is very close to a constant product: 6,650 ohm gives 0.500 A, 3,320 gives 1.007 A, 1,650 gives 2.028 A, 750 gives 4.452 A, 549 gives 6.068 A. Every row lands within half a percent of 3.337 kiloamp-ohms, so 560 ohm gives 5.96 A at typical. The same table's tolerance band, scaled from the 549 ohm row, runs from 5.29 A to 6.47 A.
| Ceiling | Value | Where it comes from |
|---|---|---|
| Software limit | 5.00 A | A firmware constant, and the register's reset value |
| eFuse, worst case low | 5.29 A | 560 ohm with the resistor spread at its low end |
| eFuse, typical | 5.96 A | 3.337 kA-ohm divided by 560 ohm |
| Regulator register | 6.35 A | Code 127, 63.5 mV across 10 milliohm |
| Heat, for a 20 K case rise | 2.30 A at 20 V | The box, computed below |
Five amps is 94.5 percent of the fuse's worst-case minimum. That is not a round marketing number sitting comfortably below a protection threshold; it is the highest round number available with 290 mA of headroom, and the headroom is six percent. Raising the software cap to the regulator's own 6.35 A would put the two limits in the same interval, 5.29 to 6.47, and which one acted first would then depend on the particular fuse that was fitted.
The ordering across the whole stack, including protection speeds, is laid out further down. What the ordering says is that the number on the knob is not a hardware limit at all. It is the point where the designer stopped being willing to vouch for the thermal path.

Forty-eight milliohms that are not doing regulation
Between the regulator's output pin and the connector there are three resistive elements in series: the eFuse at 28.3 milliohm typical, the regulator's own current-sense shunt at 10 milliohm, and the output monitor's shunt at another 10 milliohm. The total is 48.3 milliohm.
| Load current | Drop across the three | Power in them | Per shunt |
|---|---|---|---|
| 1 A | 48 mV | 0.05 W | 10 mV, 0.01 W |
| 3 A | 145 mV | 0.43 W | 30 mV, 0.09 W |
| 5 A | 241 mV | 1.21 W | 50 mV, 0.25 W |
Two of the three exist on purpose and one is unavoidable. The regulator needs its shunt in the output path to close its current loop. The eFuse needs its pass transistors there to interrupt the current. The third is a duplicate: the output monitoring shunt sits just downstream of a shunt that already measures the same current, and it is there because the monitor needs its own Kelvin connection rather than because the circuit needs a second resistor.
The visible consequence is on the display. The knob screen shows the setpoint, which is what the regulator's feedback pin will hold. The output screen shows the measurement, taken downstream of all three. At 5 A the gap between them is 241 mV, so the supply reads S:20.0 and O:19.8 while doing exactly what it was told. At 1 A the gap is 48 mV and invisible at one decimal place. A user who checks the output with a meter at low current and then at high current will conclude the supply has load regulation of about one percent. It does. That one percent is three resistors, not the loop.
Heat: 332 square centimetres, no fan
The case surface is 332 square centimetres, computed from the enclosure's bounding box — 102 by 99.5 by 32 millimetres, two of each face. It is printed plastic, sealed, and has no fan. Natural convection from a plastic surface of that area is worth about 5 watts per square metre-kelvin on a good day, and 10 if radiation and the aluminium parts inside help more than they usually do, which gives 6.0 and 3.0 kelvin per watt.
The loss model is three terms. The converter loses about 4 percent from 40 W upward, and more at light load; the datasheet's headline is 96 percent at 12 V in, 20 V out, 3 A. The pass elements lose the 48.3 milliohm above. The pack loses its own internal resistance, taken as 25 milliohm per cell — 100 milliohm for the four in series, which is the one number in this whole piece that is not in the repository.
| Operating point | Output | Converter | Pass elements | Pack |
|---|---|---|---|---|
| 5 V, 1 A | 5.0 W | 0.51 W | 0.05 W | 0.01 W |
| 5 V, 2 A | 10.0 W | 0.81 W | 0.19 W | 0.05 W |
| 12 V, 2 A | 24.0 W | 1.29 W | 0.19 W | 0.29 W |
| 15 V, 3 A | 45.0 W | 1.97 W | 0.43 W | 1.01 W |
| 20 V, 1 A | 20.0 W | 1.17 W | 0.05 W | 0.20 W |
| 20 V, 3 A | 60.0 W | 2.54 W | 0.43 W | 1.79 W |
| 20 V, 5 A | 100.0 W | 4.17 W | 1.21 W | 4.95 W |
| Operating point | Total loss | Case rise, 5 W/m²K | Case rise, 10 W/m²K | Runtime |
|---|---|---|---|---|
| 5 V, 1 A | 0.6 W | 3 K | 2 K | 11.8 h |
| 5 V, 2 A | 1.1 W | 6 K | 3 K | 6.0 h |
| 12 V, 2 A | 1.8 W | 11 K | 5 K | 2.6 h |
| 15 V, 3 A | 3.4 W | 21 K | 10 K | 1.4 h |
| 20 V, 1 A | 1.4 W | 9 K | 4 K | 3.1 h |
| 20 V, 3 A | 4.8 W | 29 K | 14 K | 1.0 h |
| 20 V, 5 A | 10.3 W | 62 K | 31 K | 37 min |
At full output the largest single heater in the box is the battery. Ten and a third watts cross the case at 20 V and 5 A, and 4.95 of them are inside four cells that are themselves inside the sealed volume; the regulator, which is doing the actual work, contributes 4.17. This is the opposite of the intuition that a converter is the hot part, and it is a consequence of where the current is highest: 5 A at 20 V is 7.04 A from the pack, and resistive loss goes with the square.
That 7.04 A is an average, too. The same 100 W drawn near the end of the discharge curve is worse, because the pack voltage has fallen while the power has not:
| Pack voltage | Pack current | C-rate | Pack loss | Total loss, case rise |
|---|---|---|---|---|
| 16.8 V, full | 6.20 A | 1.38C | 3.84 W | 9.2 W, 56 K |
| 14.8 V, nominal | 7.04 A | 1.56C | 4.95 W | 10.3 W, 62 K |
| 12.0 V, cut-off | 8.68 A | 1.93C | 7.54 W | 12.9 W, 78 K |
The last ten minutes of a 100 W run are the hottest ones, and the case rise is a third higher there than at nominal. Nothing in the firmware compensates for that, because nothing in the firmware measures temperature. The BQ25792 has a thermistor on the pack for charge termination; the discharge path has no sensor at all.
At half the rated current the picture is calm: 50 W at 20 V is 3.7 W of loss and a 22 K rise at the pessimistic coefficient. Twenty kelvin lands at 2.30 A, which is 46 W. So the author's advice not to push past about 50 W is the round number immediately above a 20 K case rise, and the recommendation is thermal, not electrical.

Runtime, and the third time the same number appears
Sixty-four point eight watt-hours is the whole budget. Divided by input power, it produces a curve that falls faster than most people expect, because the loss terms grow with the square of current while the energy does not.
At 5 W the device runs for 11.8 hours. At 24 W, two and a half. At 60 W, an hour. At 100 W, thirty-seven minutes — less than the time it takes to charge the pack it is draining.

Charging is a PD negotiation for 20 V and up to 5 A, handled by a controller that needs no firmware, configured by two resistor dividers on its ADC inputs. The BQ25792 accepts anything from 5 V to 24 V and boosts or bucks as required, so the same port that takes 20 V at 5 A also works from a 5 V phone charger at a fraction of the power.
| Source | Energy to replace | Time |
|---|---|---|
| 20 V, 3 A, 60 W | 64.8 Wh at 90 percent | 72 min |
| 20 V, 5 A, 100 W | 64.8 Wh at 90 percent | 43 min |
| 20 V, 5 A with CV taper | 64.8 Wh | longer than 43 min |
The FAQ says the device can charge while it is being used, if the load is less than the charging current. That condition can be restated as a power, and the restatement is more useful because it does not require knowing the charger's set current. Net current into the pack is zero when input power equals pack voltage times charge current. Near the top of the charge, at 16.8 V and 3 A, that is 50.4 W in, or about 48 W out through the converter. Below roughly 48 W the pack fills while the load runs; above it, the pack drains and the charger merely slows the drain.
Forty-eight watts sits within a few percent of the 50 W advice, and of the 46 W that a 20 K case rise allows. Three constraints arrived at independently — what the pack can accept while charging, what the author recommends, and what the case can shed — land inside ten percent of each other. That is not a coincidence, because all three are statements about the same pack and the same box, expressed through three different parts.
Who trips first when the output shorts
There are four things between the output and damage, and they act on timescales separated by four orders of magnitude.
| Element | Threshold | Response | What it is for |
|---|---|---|---|
| Regulator over-current, as configured | 5.00 A | 12.288 ms | Load steps and inrush, not faults |
| eFuse current limit | 5.96 A typical | 400 µs to settle | Sustained overload |
| eFuse circuit breaker | 1.2 times limit, 7.1 A | 2 µs after its timer | Overload that the limit cannot hold |
| eFuse fast trip | 3 times limit, 17.9 A | 500 ns | A dead short |
The first row is the one the firmware changed. The over-current delay field is two bits, and its reset value is 128 microseconds, which is the setting that makes the regulator clamp immediately. The firmware writes 12.288 milliseconds instead, roughly a factor of ninety-six, and its own comment says so: the value buys the longest over-current response delay available.
Twelve milliseconds at 5 A is 61 millicoulombs, or 1.2 joules at 20 V. That is a lot of energy to hand to a fault, and it is why the eFuse is not optional. What the delay buys is tolerance: a cold incandescent lamp, a motor start, a load step that pulls twice the limit for a few milliseconds, none of these should turn the supply off. The 220 microfarad capacitor on the output, added after the video was published, fills at 22.7 volts per millisecond from 5 A and is complete in under a millisecond, so it is not what the twelve milliseconds are for.
The firmware polls the regulator's status register every 20 milliseconds and latches the result, because reading that register clears the fault bits. When a fault does latch, the eight-character display stops rotating and prints TPS SCP, OCP or OVP. That is the slowest link in the chain and the only one a user sees.
What the two screens measure
Both current monitors are INA226, one in series with the pack and one in series with the output, on 2512 shunts of 10 milliohm. Neither is configured. No write goes to either configuration register, so both run on the reset value, which is one sample per conversion, 1.1 milliseconds, shunt and bus converted continuously.
That matters more than it sounds, because the calibration register is also at its reset value of zero, and with a zero calibration the chip's own current and power registers read zero by design. The firmware therefore reads the raw shunt and bus voltage registers and does the arithmetic itself.
| Quantity | Resolution | At the device's own maximum |
|---|---|---|
| Shunt voltage | 2.5 µV, which is 250 µA into 10 milliohm | 5 A is 20,000 counts of 32,767, 61 percent of range |
| Bus voltage | 1.25 mV | 20 V is 16,000 counts |
| Shunt dissipation | 0.25 W at 5 A, each | 0.5 W in the two shunts together |
Sixty-one percent of full scale at the design maximum is a sensible place to sit: enough headroom for a transient, enough resolution that the 250 microamp step never shows. With no averaging, a single conversion's noise would be a few of those steps, and the display hides it by printing current to 0.01 A, which is forty steps.
The display itself is eight characters of 5x7 dot matrix on a serial interface, and it rotates four screens at two seconds each: pack voltage, measured output voltage, load current, and total system power. Turning the knob interrupts the rotation for 1.5 seconds and shows the setting instead. Two details follow from the character count. Volts print to one decimal, so 100 mV, which is exactly the knob step and ten times coarser than the register. Current prints to two decimals, so 10 mA, which is a fifth of a knob step. And the power screen is the pack-side measurement, not the output — it includes the display, the MCU and the two 3.3 V and 5 V rails, so it will always read higher than voltage times current on the other two screens. The difference is the housekeeping load, and at 5 W output it is a visible fraction of the total.
What the label does not include
Three omissions are worth stating plainly, because each is a safety item rather than a feature gap.
The board has no battery management. There is no protection circuit on the PCB, no cell balancing, no over-discharge cut-off beyond what the charger does at 12 V. The pack must contain its own BMS, and the repository says so in capitals. The link to the pack the author used was withdrawn after one unit's integrated BMS misbehaved; the circuit was subsequently cleared, but the recommendation was not restored.
The cell count is fixed by one resistor. The charger's PROG pin carries a 27 kilo-ohm resistor that sets four cells and the default charge parameters. Change the pack and that resistor must change, or the cells are charged past 4.2 V. The warning is in the README, in capitals, for the same reason.
The USB-C port sinks only. It negotiates 20 V in and never sources; there is no path from the pack to the port. A device with a USB-C socket that looks identical to every other USB-C socket on the desk will be plugged into a phone by someone, and nothing will happen.
Beyond that, two capacitors were added to the output after the video was published, marked on the schematic as such, which is the most honest form of revision history a hardware project can keep: the footprint of a measurement that changed the design.
The habit this device rewards is the same one the two screens invite. Before trusting a portable supply's rating, ask what its measured output reads at full current rather than what the dial says; ask what the protection threshold's tolerance band is, not its typical value; ask how many square centimetres of surface the heat has to leave through; and ask what sits in series with the output between the regulator and the plug. On this design the answers are 19.8 volts, 5.29 to 6.47 amps, 332 square centimetres, and 48 milliohms. None of the four is on the front panel, and all four are in the files.
IOTTourChina covers open-source IoT and power hardware as part of its developer resource. This is editorial coverage, not an endorsement or an advertisement; specifications, availability, licensing and pricing should be confirmed with the project before you build or buy. Every figure here is computed from the published design files and the component datasheets, not from measurement.