Close
0%
0%

BenchPod

An open hardware bench tool that plugs into your CI and AI: CAN, analog I/O, power control, and a Python SDK, with pytest and AI MCP server

Similar projects worth following
Embedded teams often end up with a bench full of equipment that's hard to share, automate, and use remotely. Setting up tests often means being physically present, and that doesn't scale well across a team.

BenchPod is an attempt to make that easier. One board with sensor simulation over I2C and SPI, CAN bus, analog input and output, programmable power control, a logic analyzer, and an FPGA for fast protocol mocking, connected over WiFi so it can be shared across a team or accessed remotely. A Python SDK and pytest integration make it straightforward to go from manual bench work to automated tests without changing your setup.

With the MCP Server, Claude, Codex or any AI system that supports MCP servers can now control Devices Under Tests (DUTs) using BenchPod's MCP server. You tell your favorite AI to flash, turn on, enable GPIOs, and check the UART logs and it'll independently do all these steps for you.

BenchPod v2

v2 is a complete redesign from v1. The goal is the same — a single board that consolidates the instrumentation you'd normally spread across a bench — but the architecture is substantially upgraded based on what v1 taught us.

Compute

The main MCU switched from RP2350B to STM32H563ZIT6 (LQFP-144). The primary reason is native Ethernet: the H563 includes a 10/100 MAC that talks directly to a LAN8742A PHY, with an HR911105A MagJack handling the physical port. The STM32 also gives us six hardware SPI buses, hardware crypto, and a more mature ecosystem for the kind of SCPI-over-TCP instrument control we're building toward.

The iCE40UP5K FPGA returns from v1, again with its own W25Q64 flash for autonomous bitstream load at power-up. In v2 it takes on more: logic analyzer capture, ADC/DAC orchestration, and a planned SWD finite state machine for DUT programming. An APS6404L 8MB QSPI PSRAM sits alongside it for capture buffering.

WiFi is handled by an ESP32-C3-MINI-1, now explicitly treated as a dumb WiFi NIC running esp-hosted or AT firmware. The STM32 manages it over SPI.

Analog input

The analog front-end was the weakest part of v1. v2 replaces the 8-bit, 60 MSPS ADC with an MCP33131D-10, a 16-bit SAR ADC running at up to 1 MSPS. The signal chain is: a compensated ÷12 resistive attenuator, an OPA810 input buffer, a THS4551 fully differential amplifier driving the ADC, and an ADR4540 4.096V precision reference. Input protection is LBAT54SLT1G Schottky clamp pairs. Connectors are SMA (RF3–RF6) instead of BNC.

A relay-based calibration injection path uses four G6K-2F-Y reed relays driven by a TPL7407LA, allowing the DAC output to be switched into the ADC input for in-situ calibration without external connections.

Analog output

The DAC is a DAC8551 (16-bit SPI), buffered through OPA2992 op-amps with TMUX1104 analog mux routing. A TPS65131 dual-rail boost converter and LM27761 negative charge pump generate the bipolar supply rails needed for rail-to-rail output swing. An LM7705 provides the negative supply bias for the op-amp output stages. The XTR116UA handles 4–20 mA current loop output with a BCP56 pass transistor.

Power

Three TPS259470A eFuses protect the switchable power paths. INA238 monitors (replacing v1's INA219) track current and voltage on each rail. The internal power tree uses a TPS82130 3A MicroSiP buck for 3.3V digital, AP2112K LDOs for 1.2V, 1.8V, 2.5V, and 3.3V analog rails, and a TPS7A1901 LDO for the precision analog supply. A TPS2116 handles power mux for input supply selection.

Connectivity and DUT interface

Ethernet via RJ45 (HR911105A) is the primary host interface. USB-C remains for firmware updates and initial config. The SN65HVD230 CAN transceiver returns, now wired to the STM32 directly. DUT-facing I/O includes I2C, SPI, UART, and GPIO, with SN74LVC2G66 analog switches for switchable pull-ups and SRV05-4 TVS arrays for ESD protection. Four TCA9554 I2C I/O expanders (replacing v1's single PCA9555) add GPIO without burning STM32 pins.

BenchPod Schematic rev3.pdf

Adobe Portable Document Format - 1.26 MB - 09/09/2026 at 17:34

Preview

  • EMI pre-compliance at my desk (and the Powerline adapter)

    Edward Viaene • 16 hours ago • 0 comments

    I've been doing some EMC pre-compliance testing on BenchPod before it goes to an actual lab. The idea is to find the obvious problems at my desk first, so the lab visit doesn't turn into an expensive debugging session. This setup (I have more) consists of a TinySA and a TekBox RF current-monitoring probe clamped around the Ethernet cable, about 5 cm from the jack. It measures the common-mode current on the cable, which is usually the main antenna on a board like this.

    Whenever I pushed a 20 Mbit/s test stream through the pod, the noise between 30 and 80 MHz went up by about 10 dB. I first thought it was our Ethernet front end and spent a lot of time on the magnetics and the layout. A BeagleBone on the same switch port did the same thing, which should have been a hint.

    It turned out to be a powerline adapter plugged into the same switch, right next to the port I was using. The switch forwards the test frames to the adapter, which then sends them over the mains. With the adapter connected, the 30-80 MHz median was +6.3 dBuA. With it unplugged, it dropped to -2.0 dBuA, the same as no stream at all (see the graph below).

    Don't ask me how many hours it took me to figure this out, but on the bright side, the TekBox probe I bought to get to the bottom of this is a very nice piece of equipment for this kind of work.

    I also broke my TinySA while switching cables. Plugging a cable in sent a pulse through the probe into the input. It now has a 10 dB attenuator, and I disconnect it before moving the clamp. Apparently, they're sensitive.

    My other setup involves antennas, which is extra fun because I get to pick up air traffic control and satellites in addition to my BenchPod.

  • Missing codes in the ADC around 0 V

    Edward Viaene • 11/13/2026 at 04:24 • 0 comments

    I've been pretty busy working on BenchPod in the last few weeks. I'm going to try to catch up with the Hackaday log. There's an interesting issue I came across with the ADC last week. Right now, I'm doing pre-compliance testing (or rather pre-pre-compliance testing) using tinySA, a TekBox RF Current Monitor Probe, and a few antennas that will arrive soon, but more about that later!

    The Missing codes in the ADC around 0V

    While testing the analog input, I noticed that the MCP33131 appeared noisier at low sample rates than it should be: about 2.8 counts RMS on a quiet input instead of under 1. A code-density test showed it isn’t noise. Right at the zero crossing, a couple of codes almost never show up, and the two sides of zero are offset from each other. A signal sitting near 0 V keeps flipping across that gap, so it looks like noise.

    The size of the gap depends on how long this ADC idles between conversions. It’s about 4 counts at 10 kS/s, 2.6 at 100 kS/s, and 1.35 at 400 kS/s (see the graph below). I first suspected the board, so I went through the op amps, the reference capacitor (ceramic vs. tantalum, since that was used in their reference diagram), and the gateware timing, and compared against a second BenchPod. After this didn't change the outcome in any way, I then bought Microchip’s own evaluation board and read it with a Pico 2 using the same timing as our gateware. It shows the same step, so the conclusion: it comes from the chip and not from our board.

    The fix is a dummy conversion a few microseconds before each real one. That brings the step down to about 1.2 counts at every sample rate. I reached out to Microchip support, and they confirmed that a dummy conversion after standby is their recommended practice. In the meantime, the Python SDK has capture_adc(oversample=True), which brings the noise near 0 V from 2.7 down to 0.2 counts at 10 kS/s.

    All in all, pretty interesting, but it took me a bit of time and an extra 100 USD for the evaluation board, which in the end behaved in the same way

  • A few free BenchPod's I'm giving away for testing and evaluation

    Edward Viaene • 09/24/2026 at 19:44 • 0 comments

    The new batch just arrived. I have a few more BenchPod rev3 boards left to give away for free to anyone who wants to try AI-driven hardware-in-the-loop testing or run hardware CI with pytest. 🎁

    The idea of BenchPod is that it's a networked bench instrument that lets AI agents and your CI pipeline flash, stimulate, and measure real hardware, so your firmware gets tested on actual boards and not just in simulation.

    The analog side has:
    - 16-bit ADC, up to 1 MSPS, ±30 V input range
    - 16-bit DAC with 3.3 V, 5 V, and ±12 V ranges
    - 4-20 mA current-loop output
    - Multi-second capture and replay using an FPGA, so you can record at the same time a real analog and digital signal and inject it back into your board

    Request one at https://www.embeddedci.com/request-benchboard

    Forgive me for the AI-generated video below :)

  • Benchpod Rev 3 and more boards

    Edward Viaene • 09/09/2026 at 17:29 • 0 comments

    A few weeks of silence because I went on holiday, and the moment I came back, all my time went into fixing hardware bugs in Benchpod so I could have revision 3 manufactured. A full changelog below. A lot of changes came from testing out the board and noticing something we wanted to have changed, like DUT being powered on for a few milliseconds when BenchPod is powered on.

    I've also designed and manufactured a pcb version of our open source solar simulator, which can do much more than 5V. It quickly became more complex than I thought it would be, so it'll get its own project on Hackaday with more details on the board. It can be used in combination with BenchPod to do solar array simulations. The board BOM is less than 25 USD, which is quite neat, given that a real solar simulator quickly costs thousands of dollars (and is also more precise, so we have more like a poor men's solar simulator than a real precision instrument).

    With a solar simulator goes a PMS (Power Management System), so I also built a simple PMS pcb that we can use with it, but it most likely needs a few iterations (it's only low voltage right now).

    That's it for now. There are going to be a few more side projects that spin off from BenchPod, which you can find as Hackaday projects. Besides BenchPod, there's the solar simulator, the power management system, and also there'll be an AI vision board sidekick for BenchPod (need to see what the robot-DUT is doing), which is a high-speed board based on an STM32MP251 (and it's true: the DDR shortages are real!).

    Here's the Changelog of BenchPod V3:

    Power & Regulation

    • Added 5V USB-A as an alternative to the screw terminal (my favorite - yay!)
    • Fixed an error in the negative-rail regulator that had it targeting the wrong voltage.
    • Moved relay coil power from the analog rail to digital 5V to keep switching noise off the sensitive rail.
    • Fixed power default state so it boots into a safe voltage instead of an undefined one.
    • Swapped undersized bypass caps.
    • Tightened the overvoltage so it actually trips within the eFuse's safe limit.
    • Improved FPGA PLL supply filtering per the vendor's own hardware checklist (too many pages and you for sure miss something the first time).

    Fixed Power-On Faults

    • Found and fixed a bug where eFuses were falsely enabled at power-on.
    • The same root cause was also energizing all four relays at power-on (confirmed by audible clicking at power up)

    Protection & Reset

    • Fixed ordering of reset-line protection components — the clamp needs to sit closer to the connector, not the MCU.
    • Matched the transient suppressor's voltage rating to the board's actual max.
    • Added USB-C power-budget sensing so firmware can see what the source can supply.

    Digital / Logic Analyzer

    • Fixed logic analyzer pull-ups that were pulling 1.8V signals toward 3.3V (forgot to use the correct switched voltage instead of plain 3.3V)
    • Added NRST control pin to reliably pull-down NRST on the DUT when we want to flash (we didn't have a strong pull-down, so this will be controlled by a GPIO instead of LogicAnalyzer pin)

    Sourcing / BOM

    • It's clear that certain parts go out of stock by the time you want to fab a new revision, so had to replace a few components and footprints (but to smaller footprints, which is a win for our dense board!)

    Mechanical / Fab

    • 3x grounded mounting holes (the one next to the WiFi only gets a hole, no ground because of keep-out zone).
    • Made the board a few mm bigger, because of the usb-a connector (which is huge!).

    Verification

    • Asked Claude Opus and Fable multiple times to validate my netlist, schematic, and BOM. Fable even came up with an overlooked issue from the previous revision, so I traded some tokens for a more reliable board!

  • Making a Solar Simulator

    Edward Viaene • 07/30/2026 at 22:45 • 0 comments

    Working on another demo that uses BenchPod's ADC/DAC capabilities. This time, a solar panel simulator!

    Our DAC can replay voltages to simulate a solar panel, but it can't be a current source. For that, we need to hook up our DAC to an opamp and a MOSFET. To read the current back in our ADC, I added 4 x 0.01-ohm shunt resistors and an INA282 to amplify the current reading (which is output in mV). Here's a photo of the solution. On breadboard: TLV9152 (left), IRLZ44N with heatsink (middle), INA282 (right) + 4 shunts on a perfboard. INA282 OUT goes to BenchPod ADC. DAC goes to TLV9152.

    Here are a few screenshots of the result. With the DAC outputting and ADC inputting, we created a control loop. We have an I-V transfer curve to let the voltage sag at a specified current, just like a real panel. The load here is a 5 Ω (10W) resistor (the golden colored rectangle in the photo above).

    The same 5 Ω resistor is wired up in both screenshots; only the transfer curve changes. Under full sun (4.9 V, 1A panel), it settles at 827 mA @ 4.169 V, a sag of just 731 mV, because the load is only drawing 83% of the panel's short-circuit current. Drop to half sun (same panel, Isc halved) and the identical load now demands 93% of what's left, pushing it well over the knee: 466 mA @ 2.353 V, a 2.4 V sag (same panel, Isc halved and Voc down slightly, as it goes in reality).

    That disproportion is the knee: ten more points of current draw (83% → 93% of Isc) costs the panel thirty-five points of voltage (15% → 50% sag). 

    The I-V curve is what a panel can physically deliver: the light falling on it sets how much current is available (Isc in our demo). A real cell sets how much voltage survives once you start drawing that current, and the load (not the panel) decides which point on the I-V curve you end up at.

  • Simultaneously Capture with DAC, ADC, and Logic Analyzer with FPGA

    Edward Viaene • 07/22/2026 at 19:13 • 0 comments

    Finalized the ice40 Verilog code to have the capability to run DAC, ADC, and Logic Analyzer at the same time. You can create a waveform and watch the target react on the same timeline, rather than three loosely synced captures.

    Moving the trigger into the ice40 fabric is ~1000× tighter than if we'd do it in the server software. We're using an API call to store the data in the 8 MB PSRAM IC, then fire up the DAC/ADC/LA process, which in turn also writes its data back to the PSRAM (we divide the PSRAM for DAC/ADC/LA).

    The result is shown in the screenshot below. It's a Logic Analyzer capture with the DAC active, replaying a step motor with a fault. We can see with the logic analyzer at what timing the Device Under Test responds. Pretty good for a $6-8 FPGA chip (it's the ICE40UP5K-SG48I)

  • ADC And DAC Capabilities

    Edward Viaene • 07/16/2026 at 16:14 • 0 comments

    Update this week: mainly working on the firmware part: validating ADC & DAC, and running test cases with a Device Under Test, controlling and monitoring a Step Motor.

    First of all, ran a FFT analysis using the calibration path (DAC -> ADC) and also did some noise analysis with some near field probes (amplifier from gpio.com: https://gpio.com/collections/low-noise-amplifiers/products/ultra-low-noise-amplifier-pga-103-2-ghz-unconditionally-stable-gain-20db). Everything looks pretty clear. Here's the results of the calibration path:

    Then, a few tests to capture the step motor output in our web UI (embeddedci.com)

    Normal scenario:

    Power cut-off scenario (including timings of the step pulsing so we can verify the difference between actual cut-off and DUT noticing):

    Stall scenario:

    They are stored in our library as well, so we can replay them without the actual step motor (simulating the step motor for the DUT):

  • Correlating digital and analog on a single trigger

    Edward Viaene • 07/09/2026 at 20:44 • 0 comments

    The goal: show digital and analog in a single view.

    The test: to show how to verify stepper motor timing on a Device Under Test (an STM32F446RE). Logic and analog are sampled off the same clock (using an iCE40 FPGA on the BenchPod). 

    We have a 48MHz oscillator on the board. Unfortunately, I didn't get all the code running at 48 MHz immediately, so we're split between 24 MHz and 48 MHz in the deployed ICE40 code. Mainly, the SPI interface for receiving commands would need a serious rewrite if we wanted to run that at 48Mhz, and it doesn't need to, so those parts are running at 24Mhz.

    There are 14 Logic Analyzer pins available to either output timing or to use for a specific protocol, such as UART. This is all at runtime, so you can say pin 3 and 4 are now RX and TX for UART, and I want to see the output on pins 9 & 10, because that's where I have my step direction and step input connected.

    To monitor the current of the coils (or 1 coil in this example), we use a shunt resistor and an INA282 to amplify the analog signal. That way, we can see the analog data from the coil and match it with our digital signal from the step motor.

    The captured data is written over quad SPI to the PSRAM, where the STM32 can read it. The iCE40 is driving a signal on a pin for the STM32 to read, to ensure they're not both talking to the PSRAM at the same time, so the STM32 has to wait until the writes are complete. The data is then sent from the stm32 to the dashboard via a WebSocket over Ethernet. As described earlier in the previous log, we're using lwIP for all this.

  • Networking with ESP32 and STM32H563 without ESP-AT

    Edward Viaene • 07/03/2026 at 16:49 • 0 comments

    The BenchPod v1.0.0 setup was pretty simple: RP2350B with AT commands over UART to the ESP32 module for WiFi. In v2.0.0, I needed a different approach because we added Ethernet and wanted a streamlined solution.

    The STM32H563 has an Ethernet MAC, so the obvious solution would be to do lwIP in the firmware. That's all pretty well-documented, so it's easy to implement. We communicate over RMII to the LAN8742 PHY, and from that point, it's all physical layer. Doing AT at this point with the ESP32 sounds like maintaining 2 different approaches to networking.

    This brings us to esp-hosted-mcu (https://github.com/espressif/esp-hosted-mcu). Using this, we can keep lwIP, use 2 interfaces, and maintain 1 codebase for both WiFi and wired Ethernet. The lwIP interface for WiFi flattens the packet, wraps it in the esp-hosted framing, and puts it on the SPI bus to the ESP32, which then sends it out over WiFi. This gives us 1 IP layer inside the STM32, with the ESP32 just forwarding the packets. The AT protocol is no longer needed (esp-hosted has its own binary control channel for scan/connect instead), and the WiFi link shows up as just another native netif to lwIP.

    Still had to chase down some non-obvious bugs. IP packets have checksums, and in lwIP, checksum generation was disabled because it'd be handled by the STM32's Ethernet MAC in hardware. The catch is that lwIP's checksum setting is global by default, so when I brought up WiFi, those packets went out with zero checksums too. The ESP32 side of the SPI link has no hardware to generate them. I had to sniff the DHCP packets to figure out why nothing was coming back (a missing checksum on the outgoing frame):

    e8:3d:c1:21:2e:70 ... length 336, bad cksum 0 (->ba75)! 

    That "bad cksum" is the IP header checksum, which is mandatory, so the frame is dropped, and no DHCP offer ever comes back. The fix was to enable per-netif checksum control (LWIP_CHECKSUM_CTRL_PER_NETIF): the Ethernet netif keeps offloading to the MAC, while the WiFi netif computes IP/UDP/TCP checksums in software. That solved it.

    Also worth mentioning: the ESP32-C3 ships blank, and we only wire UART, EN, and BOOT lines to reach the STM32, because we want to flash over USB (which is connected to the STM32). That means the STM32 has to flash the ESP-hosted slave firmware into the ESP32 itself over its ROM bootloader before any of this networking works. The MCU bootstraps its own WiFi chip by loading the ESP32 binary from its flash and flashing it over UART.

  • Analog Calibration With Agilent 34401A

    Edward Viaene • 07/02/2026 at 15:33 • 0 comments

    This has been quite a journey. Measurement instruments can be very expensive, and I didn't want to immediately go there for our prototype. The solution was to buy a calibrated Agilent 34401A on eBay with a certificate and figure out how to hook it up to my machine so I could use it to calibrate the BenchPod.

    I bought a GPIB-USB-HS to connect the Digital Multimeter to my MacBook, but quickly realized there's no macOS support, so I connected it to my Raspberry Pi 4 instead. I tried using Linux-GPIB to read the voltages, but couldn't get it working because the bytestream I was getting wasn't what the library expected. Almost ready to buy another adapter, I plugged it back into my MacBook and asked Claude Opus 4.8 if it could get it to work on macOS. To my surprise, after a few minutes, it had written a Python module using pyusb that used the correct sequence to get it to work. There we go! Cheap solutions that work are the best! I put the repo online for anyone who wants to use the Agilent 34401A or similar cross-platform using Python. It's available at https://github.com/embeddedci-com/ni-gpib-usb-hs

    Back to the calibration part of BenchPod: with the Agilent connected via USB and the BenchPod online, I could manually execute the commands and compare them to the data from the Multimeter, but couldn't give Claude a go at it. I explained in the prompt how to access both tools, and it did the calibration for me, quickly switching the relays and doing a DAC sweep to get me the outputs. Here's a screenshot of the end result in Claude Code:

View all 22 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates