The Cube we show is a bare board surrounded by wires. It does its job, but it goes off when it is unplugged, and nothing on the outside says what it is thinking. In mid-October, we drew up what a proper box would look like. This article is about that design, and we say straight away that we have not built it.
Update of 28 November 2026.
The boards designed here have still not been manufactured. The demonstration Cube does without them: it is built on perfboard (photo below), and it no longer goes off when it is unplugged. An off-the-shelf 5 V backup module, with two 18650 cells, takes over when the cable is unplugged, along the lines of revision C.
Nor is the Walter on its own any more. The two round eyes are in place, driven by a small ESP32-C6 board connected to the Walter by a serial link, and it is the Walter that delivers their updates, including over 4G. Since 28 November, this board also reads a battery gauge and detects when the USB cable is plugged in, and the Walter’s firmware can write “mains lost” and “mains restored” to the log. The detection thresholds still have to be tuned by testing. The circuits are described step by step in Small circuits to track the Cube’s power, and its movements, the eyes in The eyes of the Cube. The “Where we stand” box, at the end of the article, describes the state of things before these changes.
What it would take to go from this design to a board manufactured in volume is covered in From prototype to production, and what happens to the cells over time in Making a connected device last.
The problem: a power cut is an event, not a fault
The Cube keeps a log of what happens around it (we talk about it in A proof log where each line holds the one before). But a box that goes off when you unplug it cannot record that it was unplugged, even though that is exactly the kind of thing you would want to find in the log the next day. So the role we specified for the power supply is that of a UPS, an uninterruptible power supply. Normally the mains powers the Cube; a battery takes over without a break, and the Cube logs “mains lost”, then “mains restored”.
The second problem was more mundane. We build on the Walter board, an ESP32-S3 module; we explained why we chose it in Choosing the Walter board. It handles the processing and the radio, but not the light rings, the badge reader or the battery. All of that was connected by flying leads, which is fine on a bench and nowhere else.
Starting from what we had in the drawer
The decision on 14 October was to work with the hardware we had rather than wait for the ideal component: one Walter, and two small companion boards based on the ESP32-C6, XIAO boards the size of a postage stamp. The first listens to the radio continuously. The second drives the LED rings. The Walter keeps whatever trust depends on: the decision, the rules, the log and the cryptography.
The three boards talk to each other over two serial links, one per companion. We had considered an I²C bus, the two-wire bus that several components share. We ruled it out for a reason written down that day: we wanted to keep it for the secure element and the clock we plan to add, rather than push the scanner’s continuous stream through it.
Four revisions in two days
The carrier board went through four versions between 14 and 15 October, and the power supply is responsible for three of them. We list them all, because how we got there explains the result better than the result on its own.
| Revision | Idea | What made us change |
|---|---|---|
| A | A lithium cell and its charger on the board | Runtime judged too short, and only part of the Cube stayed powered |
| B | A pack of several cells in series, behind a protection circuit | A dedicated charger, higher voltages, a growing enclosure |
| C | An off-the-shelf 5 V backup power module, and an external mains adapter | A review found serious flaws in the design |
| D | The same power supply, corrected, on two boards instead of one | This is the basis of the current version, revised since (D2, D3) |
Back to a ready-made module
The move from B to C is a deliberate step back. By piling on runtime, we were ending up with a small power station, and that day’s note simply says: go back and simplify. With a ready-made 5 V module and a mains adapter that stays outside the enclosure, there is no longer any hazardous voltage inside the Cube. That changes a great deal for a device that sits on a desk and gets opened up to show people.
This choice has a price, though. An off-the-shelf module of this kind reports nothing about its state, so the firmware itself monitors the cell voltage, the presence of the mains adapter and the module’s output. From these it derives the battery level, the “mains unplugged” alert and, since revision D, a failure of the module itself, which would otherwise only show up at the next power cut, at the worst possible moment.
Why two boards
Revision D separates a base board and a compute board, connected by a ribbon cable. The base board carries the power supply, the two companion boards, the rings and the badge reader. The compute board carried only the Walter at the time; it has since gained two audio connectors. The reason fits in one sentence noted at the time: if we change the Walter, we do not change the LEDs, the reader or the power supply. The compute module is the part most likely to change, while the rest ages slowly, and separating them avoids redesigning everything for a single change.
A board written rather than drawn, and reviewed by a devil’s advocate
We make the boards in KiCad, but we did not draw them with the mouse. Scripts generate schematics and layouts from a single description per board, Freerouting takes care of routing the tracks, and KiCad then cross-checks the result with its electrical rules check and its design rules check. This is what made four revisions in two days possible: we change the description, and the board is regenerated. The 3D model of the enclosure follows the same principle with OpenSCAD.
We have to be clear about what these checks are worth. A clean pass proves that the design is self-consistent, not that it is right. So we had revision C reviewed by a software agent to which we had given only the requirements, as you would hand an unfamiliar schematic to a colleague with a reputation for being awkward. It came back with two blocking issues and six major ones, among them diodes that would have run far hotter than is reasonable, and an energy reserve too small to ride through the moment of switchover to battery. Revision D corrects them, and a second review then found no new blocking issue. This is no substitute for an electronics engineer, and we come back to that below.
On the firmware side, we wrote the battery logic so that it could be tested on a computer, against simulated measurements: 356 checks as of 15 October. We then added eight mutations, that is, eight errors deliberately introduced into the code to verify that the checks catch them, and the checks caught all eight.
Since then: the eyes
In November, the demonstration Cube began to get a face: two small round screens on the front. We wanted a “living demo”, a Cube that reacts in front of whoever is watching it. At rest, a dark pupil on a light background looks around, blinks, and eventually dozes off if nothing happens. When an event occurs, the eye closes and gives way to a coloured ring: a badge accepted, a badge refused, an alert, an order received. We reserve three colours for these reactions, so that they are never confused with the battery state.
The idea that a machine makes itself better understood by looking like something has been studied for a long time, for example in Cynthia Breazeal’s work on sociable robots and the expression of emotions. We draw no conclusion from it for our box: we have not measured whether its eyes help people understand what it is doing, or whether they are merely endearing.
What it costs, and what is missing
A generated board is quick to produce, but its autorouting does not come out the same from one run to the next, and the current-carrying paths will have to be checked by eye before anything is manufactured. The power module we selected has not been tested: its switchover will have to be measured on an oscilloscope, and the module rejected if the Cube restarts when it is unplugged. The discharge curve used to estimate the level is generic. Lastly, we set aside the DIN-rail industrial power supplies we had looked at, not because they are any worse, but because they call for a different enclosure format, which will come later.
Where we stand.
Everything above is a design target. The boards have been neither manufactured nor reviewed by an electronics engineer, and we are not publishing their schematics. In the firmware, battery monitoring exists but remains disabled by default, since the real Cube does not have this board: it is still a bare Walter with its satellites. As for the eyes, only one eye works today, on a test bench, with no link to the Walter: its reactions are triggered from the keyboard.
Sources
- Walter, by DPTechnics: the ESP32-S3 module that serves as the Cube’s compute board.
- Espressif, ESP32-C6: the microcontroller on the companion boards at the time of the decision. Since 18 October, one of the two has been an ESP32-C5, which also listens on the 5 GHz band.
- Seeed Studio, XIAO ESP32C6: the documentation for the small board we use.
- KiCad, open-source circuit design software, with its electrical and design rules checks.
- Freerouting, an open-source autorouter for printed circuit boards.
- OpenSCAD, a code-driven 3D modeller, used for the enclosure.
- C. Breazeal, Emotion and sociable humanoid robots, International Journal of Human-Computer Studies, 2003.
A question, an objection? contact@ops-devices.eu, or on Bluesky.