Stoatworks Labs

CANary

IP and USB to CAN bus converter, for the d&b amplifier ecosystem

Rev A · builtDev Edition · not builtv0.2.1Open hardwareESP32-S3
CANary rev A board, isometric render
Rev A, the simple board and the one that's been built, rendered from the routed board. The three jacks along the front edge are one network and two CAN.

What it does

A lot of amplifiers speak CAN and nothing else. The control software that drives them expects to find them on a network, and the box that bridges the two is a discontinued piece of someone else's hardware that turns up rarely and costs what rare things cost. CANary is that bridge, as an open board you can build.

It's a transparent bridge and nothing more, on purpose. It doesn't interpret a single amplifier parameter, adds no protocol of its own, and holds no state about what's on the bus. The control application shouldn't be able to tell it apart from the hardware it stands in for, and if it ever can, that's a bug.

The same USB-C cable that powers it can also make it a network adapter: plug it into a laptop and the laptop reaches the amplifiers down that cable, with a small settings page on the board for its name, ports and address. The board, the case and the firmware are all published, under open licences.

There are two of it. Rev A is the simple one: USB-C powered, self-contained, made for the printed desktop case, and the one that's been built. The Dev Edition (rev B) is the same circuit with PoE added and its insides brought out to a header and pads, for a rack box or anything else that isn't the desktop case. Nobody has built one yet.

  • A transparent bridge: frames in on the network, out on CAN, and back, with nothing interpreted on the way
  • Galvanically isolated CAN on an ADM3053, across a 7 mm barrier with its own supply
  • Three Neutrik etherCONs (one network, two CAN), the same locking jacks as the rest of the rack
  • Powered and programmed over one USB-C cable, which can also be a network adapter with a settings page
  • Firmware from a browser tab, or built yourself with ESP-IDF
  • A one-piece printed case for rev A that needs no support material, and a 2U panel that holds it in a 19-inch or 10-inch rack
  • A Dev Edition with PoE, a front-panel header and pads for every port, so far only on paper
  • Board, case and firmware all open: KiCad, STEP and C, with the tests that pin them

Two variants

Same circuit, same isolation barrier, same firmware. Rev A is the board that's been built, and the rest of this page is mostly about it. The Dev Edition is rev A with its insides brought out, for when the board has to live somewhere other than the desktop case, and so far it's a set of files.

Rev ADev Edition (rev B)
StatusBuilt. Board #1 has driven two amplifiers on a real bus.Not built. Routed with no design-rule errors and nothing unconnected, and the fab files are made. Never ordered, built or powered.
PowerUSB-C PD, and nothing else.802.3af PoE, or 5 V into an auxiliary input, either of them ahead of USB-C through a TPS2116 power mux. USB-C still runs it on its own.
BreakoutsNone. The board's own LEDs, buttons and jacks are all there is.A keyed 16-way front-panel header: four LED lines on open-drain buffers, so a panel LED never loads a GPIO, plus RESET, BOOT, I2C and two spare GPIOs, with ESD protection on every line. Unfitted pads for CAN, the termination switch, USB data and the 5 V input.
MountingNo holes. It slides into the printed desktop case on rails.Four M3 holes.
ModuleESP32-S3-WROOM-1-N8: 8 MB of flash, no PSRAM.ESP32-S3-WROOM-1-N8R2: the same module with 2 MB of PSRAM, as headroom for firmware still to come.
Front panelThe board's own LEDs, lit through the case lid.A separate 84 × 26 mm board on a ribbon, with the four LEDs, RESET and BOOT, for a rack box.
Board100 × 81 mm, four layers, 76 placements, all on the top side.The same outline and layers, rev A's routing kept, and 120 placements, still all on the top side.
CANary Dev Edition (rev B) board, isometric render: rev A's layout with a 16-way box header on the back edge, the PoE module's pads down the right-hand side and unfitted port pads beside the CAN jacks
The Dev Edition, rendered from the routed board. Nobody has built one. The front-panel header is the tall box on the back edge and the PoE module's pads run down the right. The etherCONs and the PoE module have no 3D models, so they show as outlines and pads, and the unfitted port pads are bare.
CANary front-panel board render: four 3 mm LEDs labelled ON, LAN, CAN and ERR, BOOT and RESET push buttons, and a mounting hole in each corner
The front-panel board, from its routed file, and not built either. ON, LAN and CAN are green on the real thing; the 3D model draws every LED red. The ribbon header is underneath, and the six-pin header on the right is a spare for a display or more buttons, and isn't fitted.

What nobody knows yet

None of it has met a soldering iron. PoE has never met a switch or an injector, so detection, class and power-up are all untested. The PoE module's footprint is drawn from the maker's package drawing and hasn't been held against a real module. Nothing has seen a hipot tester, and rev A's network side was never laid out for one: its pours come within 0.25 mm of the transformer's line-side traces in places. Pull the PoE cable with USB plugged in and the 5 V rail should sag to about 4 V for a fraction of a millisecond before USB takes over, which may glitch CAN. That's a calculation, not a measurement. Today's firmware should run on it unchanged, because the LEDs and buttons are on the same pins, but nothing uses the I2C, the spare GPIOs or the PSRAM yet.

Why PoE took more than a module

The module is the easy bit: an isolated 802.3af part that hands the board 5 V. The network jack was the awkward one. Rev A's Bob Smith termination ties its four 75 Ω resistors straight together, which is fine without PoE and wrong with it: that looks like about 150 Ω across the PoE pairs, so a real switch would fail detection and a passive injector would heat the resistors. Each one now has a 10 nF capacitor in series, and the magnetics are a PoE+ rated part on the same land pattern. PoE also beats USB on purpose. A PoE module idling behind USB stops drawing the current that tells the switch something's there, the switch withdraws power, and unplugging the laptop then browns the board out.

  • The Dev Edition

    What changed from rev A, the header pinout, the power mux, PoE, and what is and isn't verified.

  • The front-panel board

    Its parts, and how to stand it off behind a 1U panel so the buttons and LEDs land in the right holes.

Watch the intro

CANary intro video
The intro video, rendered from the design files.On YouTube

Where it stands

The Dev Edition (rev B) doesn't exist yet. It's routed with no design-rule errors and nothing unconnected, and its fab files are made, but it has never been ordered, built or powered, its PoE has never met a switch, and nothing on it has been near a hipot tester. Rev A does exist, and one of its boards has now done the job it's for. Board #1 enumerated over USB first time, passed its own self-test six for six, and passes a host-side acceptance run of nineteen network checks over its network jack and down the USB cable. On 28 October 2026 it went onto a CAN bus with two d&b amplifiers. Both answered through the isolation barrier on both CAN jacks with no bus errors, the control application connected through the board and found them, and it drove them both ways: a mute and a gain change out, a front-panel mute back. What that doesn't cover: pulling the CAN cable and plugging it back in left the board deaf until it was restarted. The firmware now recovers by itself, but that fix has only run in simulation, not on the board. Pulling the network cable, power-cycling an amplifier and a long run haven't been tried. It was two amplifiers on a short lead on a bench, and neither of them is one of the older CAN-only amplifiers this is really for. The bench sequence of rail and isolation-resistance measurements was skipped on this board, and the indicator LEDs and the power-delivery status pin still need somebody to look at them. The amplifier test ran a development build: the released 0.2.0 firmware, the one the flasher serves, still hasn't been on a board. One board from the batch has been touched.

What's on it

Top view render of the CANary rev A board, showing the processor module at the top, the network controller and magnetics on the right, the isolated CAN transceiver at lower left, and three connector footprints along the bottom edge
Rev A's component side. Power enters top right, the processor module is top centre, the network controller and its magnetics are on the right, and the isolated CAN section is the darker region at lower left.
BlockPartsWhat it does
PowerUSB-C PD → CH224K → AP63200One USB-C connector is the only power inlet and the only programming port. A CH224K negotiates the supply and an AP63200 buck drops it to 3.3 V. There is no barrel jack and no PoE on this revision.
ProcessorESP32-S3-WROOM-1-N8Dual core with 8 MB of flash, running ESP-IDF. Native USB, so the same cable carries power, firmware and the console. The module sits at the board edge with its antenna overhanging, so its keep-out falls off the board rather than eating copper.
NetworkW5500 over SPI, discrete magneticsA hardwired TCP/IP controller rather than the processor's own MAC, driven at 20 MHz. Magnetics are discrete parts feeding a Neutrik etherCON, so the network jack is the same locking connector as the rest of a touring rack.
CANADM3053, isolatedTransceiver, digital isolators and an isolated DC-DC in one part. It carries the bus at a fixed 100 kbit/s onto two more etherCON jacks, and it is the boundary between the two ground domains on this board.

Rev A is 100 × 81 mm and four layers, with 76 placements, all of them on the top side, so the solder side is bare copper and the board can be assembled in one pass. Fifty lines on the bill of materials, forty-five of which carry a distributor part number that was checked against live stock rather than a catalogue.

Top view render of the CANary Dev Edition (rev B) board: rev A's layout with a 16-way box header near the top edge, the PoE module's pads down the right-hand edge, unfitted port pads between the left-hand jacks, and mounting holes
The Dev Edition's component side, for comparison, and not built. Rev A's placement and routing are kept, apart from the network-side copper PoE replaced. What's new: the front-panel header near the top, with its buffers and ESD parts to its left; the power mux and the 5 V input's parts to its right; the PoE module's pads down the right-hand edge, with its rectifiers below them; the unfitted CAN and termination pads between the two left-hand jacks; and four mounting holes, three in corners and one between the middle and right-hand jacks.

The barrier down the middle

The most important thing about this board is that, electrically, it's two boards. Everything on the network side shares one ground. Everything on the CAN side shares another. They're separated by seven millimetres of empty board with no copper crossing it, and the only things that span the gap are the isolator inside the ADM3053 and the transformer that feeds the far side its power.

An amplifier rack and the laptop running the control software are usually in different parts of a building, on different mains circuits, and the CAN bus is a long piece of copper joining them. Without isolation that bus becomes the lowest-resistance path between two earths, and the traffic on it is the least of your problems.

There's an awkward practical side to it, too. A single ground clip across the barrier defeats it, and a board that has had one on it will pass every functional test in the procedure and still be ruined. The bring-up document opens with that warning rather than saving it for the end, and the probe drawings shade the isolated region so it's obvious which side a meter lead is on.

The case

Rev A's case is one printed piece: a rounded tube that prints standing on its rear end, so every layer is a closed ring and nothing needs support. The board slides in from the front on printed rails, and two flush end plates close it with eight M3 screws into heat-set inserts. The front plate takes the three etherCONs' own panel screws.

It prints in glass-filled ABS in about five hours and 131 g on a 0.4 mm nozzle, with three hoops and four ribs printed inside it for stiffness. A small white PLA insert lights the status LEDs through the lid, and a cover sits flush in a pocket over the two service buttons and the CAN terminator switch, with a notch to lever it out with a small screwdriver. The rear plate steps in to meet the USB-C socket, which sits well inside the case because the antenna behind it needs the room. Everything is generated from one parametric script, and the repo carries the STEP and STL files and ready-sliced plates.

For a rack, there's a 2U panel that holds one case whole, front plate and all, with a flat blank to each side. A collar goes all the way round the tube for the first 12 mm behind the face, then carries on as a trough under it and over both curved sides for its full length, so the LED window, the switch cover and the lettering on the lid stay uncovered. The tube slides in from behind until its front plate meets a lip round a window in the panel, and four M3 × 12 go through the panel into the case's own inserts, in place of the front plate's M3 × 8. The three jacks and their labels show through the window just as they do on a desk, and nothing on the case or the board changes. 2U because the tube is 45 mm tall and a 1U panel is 43.7 mm. A 19-inch panel won't fit on the print bed, so it comes in three pieces, the collar in the middle and a blank with an ear to each side, bolted together through ribs behind the seams. All three print on one bed, face down with no support, in about eight hours and 252 g. There's a 10-inch version in one piece. The script won't write a panel unless the real case, end plates and all, fits the collar with clearance all round, a rod down each screw hole meets nothing, and nothing covers the lid or the jacks. None of this has been printed yet. In a rack the status LEDs on the lid face the unit above, not the front.

The 19-inch 2U rack panel from behind and above: one orange CANary case held in a dark collar in the middle of the panel, the collar wrapping its curved sides and leaving the middle of its lid open, its USB-C port facing the rear of the rack
The 19-inch panel from behind, with a case in it, rendered from the generated files. Not printed yet. The rack panel

What board #1 has done

One rev A board out of the batch, on one bench. Everything below either was seen to happen or hasn't been tried yet. There's no third column for "probably fine".

  • USB enumeratedverified

    First plug-in, no button sequence. This was the biggest risk on the batch: these boards were made before the USB routing was tidied, and the connector is the only way to power them.

  • Flash and processorverified

    8 MB confirmed, chip revision read back, firmware written and verified.

  • Network controllerverified

    Answered its version register at both 4 MHz and the full 20 MHz the application runs at, and a write-then-read walk proved the bus in both directions.

  • CAN transceiververified

    A frame went out of the processor, across the isolation barrier, onto the bus wires and back, with no transmit or receive errors. That also proves the isolated supply started, which nothing on the other side of the barrier can observe.

  • Live networkverified

    Link in 2.2 seconds, DHCP lease taken, bridge listening.

  • Protocol, end to endverified

    A host-side acceptance script ran nineteen checks against the board over the network: discovery, the full command set, and the two commands the board must not answer. All nineteen passed.

  • Discovered by the control applicationverified

    It appears in the interface list at its own address, with a green status.

  • USB network adapterverified

    Plugged into a Mac, the board shows up as a network adapter, hands the laptop an address without taking over its internet connection, and serves its settings page. The same nineteen checks pass down the USB cable.

  • CAN against a real busverified

    Two amplifiers on the bus, 28 October 2026. Both acknowledged and answered through the isolation barrier, on both CAN jacks, with no bus errors, and the bridge carried every scan.

  • Driving amplifiersverified

    The control application connected through the board and found both amplifiers. A mute and a half-decibel gain change went out to one, and a mute pressed on the other's front panel showed up in the application at once.

  • Restarting mid-sessionverified

    The board restarted under the control application (by accident), which found it again by itself 36 seconds later. It did put up a dialogue box that somebody had to clear first.

  • Recovering from a CAN cable pullnot yet

    Pulling the CAN lead and plugging it back in left the board deaf until it was restarted. Fixed in the firmware since, but the fix has only run in simulation.

  • Network pulls, amplifier power cycles and long runsnot yet

    Not tried yet, and neither has a bus longer than one lead or with more than two amplifiers on it.

  • Supply rails and isolation resistancenot yet

    Board #1 went straight to USB-C power, so the bench-supply sequence and the measurements that go with it were skipped.

  • Indicator LEDs and the power-delivery status pinnot yet

    Both need a person looking at the board rather than a script reading it.

What building it found

Faults that got past every simulation and test before them, then turned up within hours of meeting real hardware. They're why you build the thing.

A stack overflow nothing else could reach

Typing the self-test command at the board's console crashed it every time. The command builds a two-kilobyte report on the calling task's stack, and the console task had four kilobytes to hold that plus two device drivers. The same code passes at start-up, because start-up runs it on a larger stack. That's why several hundred automated checks, a full emulator boot and a simulated acceptance run had all gone green. Fixed.

A network adapter that never answered

The first time a laptop met the USB network build, it saw an active adapter, sent 166 packets and got none back. Four separate faults were stacked behind that, and every one of them reported success while doing nothing: the USB library never raised the "host connected" signal the code waited for, the address server was stopped by its own setup and never restarted, the settings page refused every visitor as foreign, and the board's advertised name was being read from memory that had already been freed (on the Ethernet build too). All four were fixed, and proven on the board, the same afternoon.

Deaf after a cable pull

With the control application connected, I pulled the CAN lead for a couple of minutes and plugged it back in. The amplifiers were fine. The board never heard from them again, for nine minutes, until it was restarted. The CAN controller had most likely gone bus-off (a live bus losing its contacts will do that), and the only code that brought it back ran when the control application asked for a reset, which it never does. The error LED stayed dark the whole time, because the state the controller was stuck in had no light pattern. The firmware now recovers by itself within about a second and blinks the error LED while it does, and writing the test for that turned up a second bug: one reset request had never been enough either. Proven in simulation, not on the board yet.

A fault that wasn't

This page used to list one more: the control application lists the board under the wrong transport, as a UDP client, when the board only takes TCP. Two fields in the discovery record looked misread, and it went on the list to fix. Then the board met real amplifiers, and the application connected over TCP and drove them anyway. The label still says UDP client and nothing seems to mind, so the fields stay as they are, and this note is here for whoever is tempted to "fix" them.

How it gets tested

The board tests itself. A separate firmware image walks the hardware (flash size, network controller at both clock speeds, a bus write and read-back, the CAN loopback across the barrier) and prints a result line per check plus a machine-readable summary.

A host script does the network half. It runs the real discovery exchange and the full command set against the board, over the network jack or the USB cable, including the two commands that must produce no reply at all. A simulation mode runs the same checks against a software model, so the rig was proven before any board existed.

The bench procedure is written down. Every expected value is tagged with where it came from (a datasheet, a calculation or a guess), so when a measurement disagrees you know whether to doubt the board or the document. The probe drawings are generated from the board file and refuse to build if a probe has moved off its pad.

The firmware's protocol code runs on a laptop too. It's kept free of the chip's SDK, so the same C compiles on a host, where several hundred checks, an end-to-end run on real sockets and two fuzzers exercise it on every change.

Help wanted

Put one on a bigger bus

Two amplifiers on a short lead got it this far. The next proof needs a rack of the older d&b amplifiers that only speak CAN, and the bench this was built on hasn't got one.

The control application now drives amplifiers through CANary on a real board, but both amplifiers it has met can also be reached another way, so they aren't the ones that need it. What's left is the part only a real rig can answer: the CAN-only amplifiers, a bus of real length with real termination and more than two things on it, and a show's worth of hours. If you've got that rig, a built board or the parts to build one, a report of what happened (working or not) is the most useful thing anyone could send me right now.

  • User guide

    Flashing, connecting it, wiring CAN, and reading the front-panel codes.

  • Bench bring-up

    The step-by-step procedure for a new board. Read §0 before powering one.

  • Building a board

    Fab outputs, the bill of materials, and the parts that are fitted by hand.

Open an issue Bench results, faults and questions all go here.

Where it goes next

Next up is putting the cable-pull fix on board #1 and pulling the cable again, this time with a console already watching, then the tests the amplifier day didn't reach: a network pull, an amplifier power cycle and a half-hour run. Then a release with all of that in it, so the firmware the flasher serves is the firmware that's been on a bus. After that comes the rest of the batch, and the measurements that got skipped.

Rev B used to be a list on this page, and it's turned into the Dev Edition. It has the power over Ethernet, and the pull-up on the network controller's reset line that rev A's processor leaves floating until firmware runs. The termination switch has a label on the silkscreen now, though which way round it reads still wants checking against board #1's. Protection on the network jack didn't make it in. Before anybody orders one, the PoE module's footprint wants printing at full size with a real module laid on it.