The Problem
The traditional business card is a static object — a 3.5×2 inch piece of paper that communicates nothing about the person handing it over. For an electrical engineer, this is a missed opportunity. Every networking event, every client meeting, every chance encounter is a moment where you could demonstrate your skills instead of just claiming them.
C.A.R.D was designed to close that gap. The card itself is the portfolio piece.
The Solution
C.A.R.D integrates a complete embedded system into the form factor of a standard business card. The centerpiece is a fluid dynamics animation: 441 LEDs arranged in a 21 × 21 Charlieplexed matrix display a real-time simulation of liquid responding to gravity. Tilt the card forward and the "fluid" flows to the bottom. Rotate it and the fluid sloshes accordingly. The animation is driven by live accelerometer data from the LIS2DH12TR, updated continuously and rendered through the RP2350A.
The interaction is immediate and visceral — no app to open, no QR code to scan. The card is on. The card is performing. And when someone is ready to follow up, a single tap of any NFC-enabled smartphone reads the embedded ST25DV04KC tag and pulls up your contact information.
The Card
Everything fits on a 93 × 52 mm, 1.6 mm thick, two-layer board. The 441 display LEDs sit on the back copper layer, and a status LED brings the total to 442. The microcontroller, accelerometer, and NFC tag sit on the front.
| Block | Part | Role on the card |
|---|---|---|
| Microcontroller | RP2350A | Dual Cortex-M33: one core runs physics, the other scans the LEDs |
| LED display | 441 LEDs, 21 × 21 | Charlieplexed from 22 GPIO lines, 2.25 mm pitch |
| Accelerometer | LIS2DH12TR | Gravity direction for the fluid, on I2C at 0x18 |
| NFC tag | ST25DV04KC | Holds contact details for phones, on I2C at 0x53 / 0x57 |
| Flash | ZD25WQ32CEIGR | 32 Mbit (4 MB) firmware storage |
| Clock | ABM8-272-T3 | 12 MHz crystal |
| Power | LIR2032 cell, TP4057, DW01A, USB-C | Rechargeable battery, charging over USB-C, and protection |
Engineering Challenges
Routing 441 LEDs on 2 Layers at 1.6mm
The most demanding constraint of this design is the board itself. With only two copper layers on a 1.6mm board, routing the Charlieplexed LED matrix requires careful planning of every trace. Charlieplexing N GPIO pins enables N²−N LEDs with no additional drivers, but each LED shares lines with others, demanding precise trace topology to avoid unintended illumination and minimize trace crossing.
Real-Time Physics on a Rechargeable Cell
The fluid simulation must run smoothly enough to feel natural while drawing only what an LIR2032 rechargeable cell can supply. The RP2350A's dual Cortex-M33 cores allow the physics calculation and the LED scanning to be split across cores, maintaining frame rate without sacrificing power efficiency. Optimizing the simulation parameters — viscosity, gravity response, update rate — for perceptual quality at minimum compute cost is an ongoing firmware challenge.
NFC Antenna Near a Copper Plane
NFC antenna performance degrades significantly when placed near conductive copper pours. Designing the ST25DV04KC antenna loop geometry to maintain adequate read range on a board saturated with LED traces requires careful attention to antenna clearance, ground pour cutouts, and coil geometry.
Running the Card Before It Exists
Revision E1 was finished in KiCad 9.0, but overseas fabrication costs kept it from being built. Instead of waiting, I built S.I.M. (Simple Implementation Machine), which loads the E1 schematic and PCB files and runs the card's real firmware against them.
S.I.M. (Simple Implementation Machine) is a simulator built from the card's KiCad design files. It runs the same firmware source the RP2350 will run, against a model of this exact board, so wiring and firmware problems show up before anything is fabricated.
The usual path is to fabricate the board, then find out whether the firmware works on it. For a self-funded project, each spin of that loop costs real money and weeks of shipping.
Dev boards and generic emulators help, but only up to a point. They run code against a reference chip, not against this board. They can't know that the I2C pull-ups hang off a GPIO, or that three pins marked no-connect are tied to ground.
Those board-specific details are exactly what breaks first at bring-up. A simulator built from the design files can catch them before fabrication, while fixing them is still free. S.I.M. ran the fluid demo end to end, and along the way it surfaced five board-level issues that would normally appear only during bring-up of a fabricated board, after the money is spent.
How S.I.M. Works
S.I.M. builds a model of the board from the E1 PCB file, then runs the card's firmware source against it. Four pieces make it work:
1. Reading the board. Python scripts parse the .kicad_pcb and write a board description: which GPIO drives which LED line, where all 441 LEDs sit, and each part's position and rotation. The same pass writes led_map.h, so the firmware and S.I.M. share one LED map. The schematic was used once, to cross-check the GPIO nets.
2. Compiling the firmware. Instead of emulating the ARM chip, S.I.M. recompiles the firmware's C source to WebAssembly against a simulated Pico SDK with the same headers and function names. A cycle counter charges estimated Cortex-M33 costs, so timing doesn't depend on the viewer's computer.
3. Running the board. The engine runs both cores in virtual time. Every pin change triggers a circuit solve of the charlieplexed matrix, giving which LEDs conduct and how much current each gets. I2C traffic succeeds only if the bus would physically work, then reaches register-level models of the LIS2DH12 and ST25DV04K.
4. Showing the result. A 3D card, drawn entirely from the PCB data, can be tilted and shaken, and its gravity feeds the accelerometer model. A command-line runner uses the same engine and can gate a CI pipeline.
Before trusting its findings, I tested S.I.M. with firmware containing four planted mistakes. It flagged every one.
Driving 441 LEDs from 22 Pins
The display uses charlieplexing: 22 GPIO lines, each through a 22 Ω resistor, can address up to 22 × 21 = 462 LEDs. The card uses 441 of those combinations, and every LED has its own unique anode/cathode pair.
Scanning. The firmware drives one line high as the anode at a time. It pulls low the cathode lines for the LEDs that should be on, and leaves every other line floating. Each line is the anode for 19 to 21 LEDs, so one scan slot can light up to 21 LEDs at once.
Brightness. Each LED gets 16 brightness levels through 4-bit binary code modulation. The full array refreshes about 450 times a second, fast enough to look steady.
Current. LEDs in the same slot share one anode pin's current, so brightness depends on how many are lit together. One LED alone draws about 5.8 mA. With 19 lit, each gets about 0.74 mA, roughly an eighth as much. At 3.3 V, the LEDs' forward voltage leaves only about 0.7 V across the driver and resistor, so there is little headroom to work with.
What S.I.M. Caught
Five issues came out of the E1 design files. None needs a board change to work around, but two would have looked like dead parts on a fresh board.
| Issue | What would have happened on real hardware | Fix |
|---|---|---|
| GPIO26, 27, and 28 are flagged no-connect in the schematic but wired to ground on the PCB | Driving any of them high shorts the pin to ground | Firmware never drives them; correct the flags in the next revision |
| The I2C pull-ups (R1, R3, 5.1 kΩ) are powered from GPIO29, not 3.3 V, by design | The accelerometer and NFC tag stay silent until firmware drives GPIO29 high, which looks like dead parts | Drive GPIO29 high before starting I2C |
| The RP2350's reset-default pull-downs stay on the LED lines | Unlit LEDs glow faintly (ghosting) | Disable pulls and input buffers on GPIO0 to 21 |
| Any anode line can exceed the pin's 12 mA rating when many of its LEDs are lit together: about 14 mA with 19 LEDs in the fluid demo, and 13.6 mA with just 13 in the maze demo | The line's voltage sags and those LEDs dim; no damage expected | Cap lit LEDs per scan slot in the shared display driver, so every firmware stays within rating |
| The accelerometer sits on the front at −45°; the LEDs face the back | Tilting the card sends the fluid the wrong way | Rotate the readings in firmware; confirm on hardware |
The rotation used for the last fix, assuming the axis figure in the datasheet:
A second firmware, a ball-tilt maze, ran through S.I.M. without turning up any new board issues. It did change how the current finding reads: a different picture pushed a different line, GPIO2, over its 12 mA rating with only 13 LEDs lit. The over-current isn't one bad line. Any line can exceed its rating depending on what's drawn, so the fix belongs in the shared display driver, not in each demo.
Firmware Architecture
The firmware splits the work across the RP2350's two cores, and neither is close to full. Each core has close to 90% of its time free for NFC handling and future features.
| Core | Job | Rate | Load |
|---|---|---|---|
| Core 0 | Fluid simulation: 200 particles reacting to gravity | 60 updates/s | About 7% |
| Core 1 | LED scan with 4-bit brightness | About 450 refreshes/s | About 12% |
The fluid demo uses 16 KB of static RAM. The accelerometer is read over I2C1 (SDA on GPIO22, SCL on GPIO23), with its interrupt lines on GPIO24 and GPIO25.
The same source builds unchanged with Pico SDK 2.1.1 for the real RP2350 (the pico2 board target) and with the simulated SDK for S.I.M. The code that runs in simulation is the same source that builds the 75 KB image for the chip.
What Simulation Can't Prove
S.I.M. checks wiring, logic, and timing against the design. It recompiles the firmware rather than emulating the ARM chip, so PIO, DMA, direct register access, and the flash chip aren't covered. Some questions only a fabricated board can answer:
NFC read range. Antenna performance near the LED traces and copper pours depends on real RF behavior.
Battery life. Power draw and runtime on the LIR2032 need measurement on an assembled board.
Real LED variation. Forward voltage and brightness differ from part to part, so the current figures above are estimates.
Accelerometer orientation. The −45° correction assumes the datasheet's axis figure and needs a tilt test.
Assembly defects. Solder bridges, misplaced parts, and a slow crystal start are physical problems.
S.I.M. doesn't replace bring-up. It shrinks bring-up to these questions, instead of these plus every wiring surprise.
Current Status
Revision E1's schematic and layout are complete in KiCad 9.0. Fabrication is on hold until funding allows. In the meantime, S.I.M. runs the real firmware against the E1 design files: the accelerometer-driven fluid simulation runs end to end, and S.I.M. surfaced five board-level issues that are now handled in firmware. Power measurements and NFC range tests will follow the first assembled prototype.
What's Next
The next step is to fabricate E1 and run the firmware that already works in simulation.
1. Fund and order E1 boards.
2. Bring them up using the issue list above as a checklist.
3. Test NFC read range, tilt orientation, and battery life on real hardware.
4. Publish power measurements and compare real behavior against S.I.M.
Want to help get E1 built? Support the build.
Open Source and Inspiration
C.A.R.D is released under the MIT License. All KiCad design files and firmware source are publicly available for the community to study, fork, and build upon.
This project draws direct inspiration from the Flip Card project by Nicholas L. Johnson, whose pioneering work demonstrated the viability of interactive PCB business cards with embedded LED displays. We are grateful for his open-source contribution to the hardware community.
Credits. PCB design by Trammell Montgomery and Joshua Smith. S.I.M. by Trammell Montgomery.
Flip Card by Nicholas L. Johnson:
https://github.com/Nicholas-L-Johnson/flip-card
C.A.R.D (Montgomery Research Labs):
