A good deal of a device’s reliability comes down to an unglamorous question: what happens when it is plugged in wrongly? For the Cube, we wanted the answer to be that nothing untoward happens. The board that carries this power supply, not yet manufactured at the time of writing, should let you plug in whatever you have, in whatever order you like, for every source we have planned for, with no jumper to move and no switch to set.
A behind-the-scenes article, more about electronics than the others, on a modest design decision whose effect shows mostly on the day an installation gets a little rushed.
The problem with multiple power sources
Inside the Cube, several parts live side by side and all need power: the main unit, a radio listening board, a board that drives the indicator lights, and an energy reserve so that the guardian that never sleeps does not go out. Outside, depending on the situation, you plug in a charging cable, a mains adapter and sometimes a computer for the duration of a maintenance job. The question looks trivial, yet it comes up every time a unit is commissioned: what powers what, and what happens when two sources are present at the same time? The classic wrong answer is to hand that choice to the installer, with a jumper to move (the small link you push onto two pins to select a configuration) or a switch to set. It is wrong because it turns a detail into a source of error: a jumper that is forgotten, refitted wrongly or reversed is a fault that cannot be seen and that shows up at the worst moment.
Priority by voltage, one ideal diode per input and no jumper to move
So we took the choice away from the human and handed it to physics. Internally, the Cube would maintain a power rail, a common line that distributes current to all the parts, set slightly below the voltage of a valid external source. Each input would go through a so-called ideal diode, in an arrangement that electronics engineers call OR-ing, and this diode lets current through only in the right direction, and only if the source is above the rail. The effect is the one we hope for: as soon as a valid source is present, it supplies the power, since its voltage is the highest, and when it disappears the internal rail takes over without a glitch. So there is no longer any order to follow, no forbidden combination and no jumper to set. You can plug in the charging cable and then the computer, or the other way round, and unplug one without cutting the other, because the source that should win wins on its own.
Why we changed a component along the way
For a while this approach ran up against an awkward reality. For the internal rail to stay stable even when the input source is only slightly above it, you need a converter able to stay wide open, that is, to pass almost all of the input voltage without dropping out when the headroom becomes small. The first one we had selected did not meet this constraint in every case, so we replaced it with one cut out for the job, a TPS62130A step-down converter able to run in 100% mode, that is, to pass the input voltage straight through when it approaches the target voltage. We say so because it is the kind of discrepancy that shows up when you check the schematic against the datasheets, and that testing on the board will still have to confirm (we describe elsewhere the steps that lead from prototype to production). We find it more honest to say so than to hide it, because a good jumper-free architecture does not excuse you from checking that every building block keeps its promise right to the edge of its range.
Built from existing building blocks
None of this is an invention. Ideal diodes, current limiters, resettable circuit breakers, whose electronic form is called an eFuse, and efficient converters are standard, well-documented components that you assemble instead of reinventing. This is a line we hold throughout the project: build as far as possible with existing modules, hardware and software, and keep our own effort for what does not exist elsewhere. This discipline has a cost, because you have to read a lot of datasheets and give up a few refinements, but the benefit, in our judgement, is greater: the equipment stays repairable and understandable by people other than us, and it does not depend on a rare part whose disappearance would condemn it, a risk we set out in Making a connected device last.
What we say about it
You do not sell a power architecture, and nobody should choose a security device for the way it handles its cables. But the trust placed in an object is also built on these unglamorous details, because they decide how it behaves on the day when not everything goes as planned. A piece of equipment that fails because a jumper was set wrongly was let down not by the electronics but by a design decision that asked someone never to make a mistake. We preferred to ask nothing of them: no jumper, no switch and no order to remember.
Sources
- Texas Instruments, Basics of Ideal Diodes (application note SLVAE57): why an ordinary diode drops too much voltage and how a controlled transistor replaces it, with OR-ing circuits for several sources.
- Texas Instruments, Basics of eFuses (application note SLVA862): current limiting, reverse protection and reset, what an electronic fuse adds to an ordinary fuse.
- Texas Instruments, LM66100: the ideal diode placed on each input of the Cube v1.5 board; TPS2553: the adjustable current limiter that precedes it.
- Texas Instruments, overview of ideal diode and OR-ing controllers: what the market offers, to compare currents and voltage drops.
- USB-IF, USB Power Delivery: the standard by which a USB-C charger and the device agree on the voltage, which explains why a USB-C input does not always supply the same thing.
- Ops-Devices, Hardware v1.5: a Cube that survives a power cut, on paper: the complete power board, with its energy reserve, and what remains to be checked on the manufactured board; Small circuits to track the Cube’s power: what the demonstration Cube already measures on its USB cable and its rechargeable cells, until this board arrives.
A question, an objection? contact@ops-devices.eu, or on Bluesky.