Skip to the content
2 layers85.6 × 54 mmBusiness card pcb, the printed circuit board in 3D

A PCB business card that shows you your own pulse. Optical PPG sensor drives a ten-LED heart; NFC tag serves the vCard with the card switched off. ATtiny1616, MAX30102, CR2032. KiCad sources, firmware and power measurements.

Size
85.6 × 54 mm
Copper layers
2
Thickness
1.6 mm
Parts
59
Nets
46
Pads
166
Tracks, vias
227, 60
Pours
3
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
23 Apr 2026
Updated
21 Aug 2026

Overview

Business card pcb is an open-source printed circuit board by roepkefeller, from the roepkefeller/business-card-pcb repository on GitHub. It is a 2-layer board of 85.6 × 54 mm with 59 parts on 46 nets, routed with 227 tracks and 60 vias.

It is built around the ATTINY1616-MN, MAX30102 and TPS61221DCK, with the XC6206P182MR and BAT-HLD-001 among its other parts. Its parts include 15 resistors, 12 capacitors, 11 diodes, 5 ICs and 2 connectors. It belongs with the radio and wireless and sensors and measurement boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

5

README

README.md

Heartbeat Business Card

This is my business card. You put a finger on it and it shows you your own pulse.

I do biomedical instrumentation — near-infrared light through tissue, mostly fNIRS. Handing someone a piece of paper felt like a missed opportunity to just show them what that means. So the card has an optical pulse sensor on the front. It lights your fingertip up red at 660 nm, measures at 880 nm in the infrared where you can't see it, and beats a ten-LED heart in time with your own.

It also has an NFC tag, so if you'd rather not put your finger on a stranger's circuit board you can just tap your phone and get the vCard. That works with the card switched off — the tag runs on the phone's field.

Front of the assembled card

Back of the assembled card

Rev 1, assembled and working.

https://github.com/user-attachments/assets/9cdfd9b0-a152-4362-aa48-4a56a335289f


Contents


At a glance

Form factor85.6 × 54 mm — ISO ID-1, same as a credit card
Stackup2-layer FR4, 1.6 mm, purple soldermask, ENIG
AssemblySingle-sided, everything on top
MCUATtiny1616, VQFN-20, UPDI, 5 MHz
SensorMAX30102 optical PPG, I²C 0x57
NFCNT3H2111 (NTAG I²C plus 1k), I²C 0x55, PCB antenna
PowerCR2032 → slide switch → boost to 3V3 → LDO to 1V8
Output10 red LEDs in a heart, 1 green power LED
Measured3.1 mA idle, 4.4 mA with a finger on it, 0.06 µA off

System overview

Power

A coin cell is a lousy supply for anything that pulses — high internal resistance, and the voltage sags the moment the sensor fires its LEDs. So rather than run off 3.0 V and watch it droop, everything sits behind a TPS61221 boost at a steady 3.3 V. The MAX30102 then gets its own XC6206 LDO at 1.8 V on top of that, because its analog supply wants to be quiet while its LED driver pin sinks the actual current and is fine on the noisier rail. The sensor's analog ground returns through a ferrite bead.

The slide switch cuts everything, so off means off. A U.FL connector sits across the cell terminals so I can run the board from a bench supply during bring-up without a cell in the holder, and a 100 µF bulk cap on the switched rail buffers the bursts the cell can't follow.

rev 1 errata — the switch legend is backwards. ON and OFF are swapped in the silkscreen: the position marked OFF is the one that powers the card. The board itself is correct, only the label is wrong. Fixed in rev 2.

Current budget

Everything on the card is sized from one number: how much a CR2032 can deliver before its own internal resistance pulls the rail down. Worst case is all ten heart LEDs lit at once.

at 3V3
D1–D10, 1 kΩ, Vf ≈ 1.75 V1.55 mA each → 15.5 mA
D11, 4.7 kΩ0.29 mA
ATtiny1616 @ 5 MHz + MAX30102, active~5 mA
3V3 rail~20.8 mA

Referred through the boost at a 3.0 V cell and ~87 % efficiency:

text
Iin = 20.8 mA × 3.3 V / (3.0 V × 0.87) ≈ 26 mA from the cell

Droop is then just that current across the cell's internal resistance:

cellRintdroopterminal
fresh~15 Ω0.39 V2.6 V
aged~50 Ω1.3 V~1.7 V

Both survive — the TPS61221 keeps regulating down to 0.7 V once started — and the fresh-cell figure is what the LED resistors were chosen against.

The MCU clock matters more than it looks: at 20 MHz the ATtiny alone draws ~11 mA, almost as much as all ten LEDs together, which pushes the total to 34 mA and the droop to 0.5 V. Soft PWM for ten LEDs plus I²C runs fine at 5 MHz, so it runs at 5 MHz.

That was the design budget. What it actually draws is about a fifth of it.

The sensor

A MAX30102 — red and infrared emitters, photodiode, 18-bit ADC and a 32-sample FIFO in one package. It hands out raw reflectance counts; baseline removal, gain tracking and beat detection all happen on the ATtiny.

Both wavelengths run, for different reasons. Infrared does the actual work, because hemoglobin absorption at 880 nm gives the cleanest pulsatile signal through a fingertip. The red one is mostly theatre: it makes your fingertip glow, which is how you know the thing is looking at you. That's what makes people put their finger down in the first place.

While it waits for a finger the sensor runs at 50 Hz with the IR emitter turned down and the red one off entirely. A finger brings it up to 100 Hz with both emitters at full drive. That difference is 3.1 mA against 4.4 mA, which is worth having on a card that might get left switched on in a pocket.

NFC

NT3H2111, an NTAG I²C plus, with two ways into the same 1 kB of memory. The RF side is fully passive: tap a phone, get the vCard, works with no cell in the holder at all. The I²C side sits on the same bus as the sensor, so the MCU can rewrite the NDEF record at runtime — and the tag's field-detect pin goes to the MCU too, so the card notices being tapped and runs a lap of the heart. For phones that won't do NFC there's also a 10 mm QR code on the front silkscreen, pointing at my GitHub.

One thing that isn't obvious going in: a blank tag shows a phone nothing at all, however healthy it looks over I²C. The capability container ships as zeros and has to be written before any NDEF message can be read. The bring-up sketch does that once per board, carefully — block 0 also holds the I²C address byte and the static lock bits, so writing back what you just read there would move the tag to a different address, permanently.

The antenna is a spiral on the top copper using the Class 5 geometry from NXP AN11276, redrawn as a KiCad footprint. Two things drove the placement: a copper keepout spanning both layers under the coil, because copper opposite the antenna kills the coupling through eddy currents, and the coin cell sitting diagonally opposite, because a CR2032 is a big steel disc and detunes it.

The heart

Ten red 0603 LEDs in a heart outline, each with its own resistor and its own GPIO. No FET, no charlieplexing, no driver IC. It eats ten pins, which on a 20-pin part is most of them, but every LED can be dimmed independently — and that's the point, because a heart that just blinks looks like a novelty toy, while a heart with brightness sweeping around the contour looks alive.

The ATtiny has nowhere near ten PWM channels, and the three pins that do have timers are taken by I²C and the UART, so all ten are bit-banged: a 6-bit software PWM, one frame of 64 steps taking about 1.6 ms at 5 MHz. Fast enough not to flicker, cheap enough to run in a blocking loop between sensor reads.

The series resistors are 1 kΩ, putting each LED at about 1.5 mA. Dim by datasheet standards, still clearly visible indoors, and low enough that all ten can be on at once with no current budgeting in firmware. The green power LED runs at 4.7 kΩ.

A beat is a bright front rising out of the point and spreading up both sides at once, over a whole-heart glow that fades between beats. Two other styles are in the source — a front sweeping once round the contour, and the whole outline flashing together — but flashing reads as a novelty blinker, and something travelling is the entire reason for ten separate pins. Both the contour order and the mirrored pairs come out of the footprint centres in the KiCad file, since the reference designators don't run round the outline.

The back

The back of a two-layer board is mostly empty space, and a block of silkscreen text felt like a waste of it. PCB art seemed like the better use.

I went with Joy Division's Unknown Pleasures — best album cover ever made, as far as I'm concerned, and the story behind it is as good as the design. The image is a stack of successive radio pulses from PSR J1921+2153, CP 1919 back then: the first pulsar ever found, picked up at Cambridge in 1967 by Jocelyn Bell Burnell during her own PhD. The plot came a few years later, out of Harold D. Craft Jr.'s 1970 doctoral thesis at Cornell, drawn from Arecibo data. Stacking is the whole point of it: one image shows that the individual pulse shapes vary considerably while the 1.337 s period does not. A thesis figure, drawn that way because it made a real result legible at a glance, and good enough to end up on a record sleeve.

Craft programmed that plot himself, on a CDC 3200 at the observatory — including the routine that fills in under each curve so the ones behind stay hidden, which is the whole reason the image reads at all. The plotter output was then traced over in India ink back at Cornell. It's one of the earliest scientific figures that was programmed rather than drawn, and occlude() in my script does the same job his routine did.

I rebuilt it with my own data: an fNIRS recording of my own head, taken with hardware I built for my master's thesis, which is what led into my current PhD. SiPM detector, 3.5 cm source–detector separation. The individual heartbeats get pulled out of the recording and stacked into ridgelines the same way.

The design tool lives in hardware/pcb/back-silkscreen/: the raw recording and the Python that segments the beats, shapes them and renders a preview. The geometry that actually ships was emitted straight into the KiCad file as silkscreen lines, so the preview is for judging the composition, not a fabrication source.

It comes out as about 7300 line segments, which was the one part of this board I expected a fab to struggle with — 0.25 mm silkscreen lines packed that tightly sit close to what most of them quote as a minimum. It came back crisp.

Back silkscreen layer in KiCad

The artwork on its own in the layout editor.

Pin map

PinFunction
PA0UPDI
PA1, PA3–PA7Heart LEDs 1–6
PA2Sensor interrupt
PB0 / PB1I²C SCL / SDA, 4.7 kΩ pull-ups
PB2 / PB3USART0 TX / RX, on test points
PB4 / PB5Heart LEDs 8, 9
PC0NFC field detect
PC1Power LED
PC2 / PC3Heart LEDs 7, 10

Every pin is used. TX and RX come out on labelled test points rather than a header, because I'll use them a handful of times and then never again.

Programming is over UPDI through a keyed header — 1.27 mm through-hole raster, four positions with the second left empty, so the programmer physically can't go in backwards.

Firmware

Two sketches, both megaTinyCore, both at 5 MHz:

text
megaTinyCore:megaavr:atxy6:chip=1616,clock=5internal

firmware/heartbeat_card is the card itself: startup animation, a dim point chasing round the contour while it waits, the beat animation once a finger is down, and a lap of the heart when a phone taps the antenna.

firmware/pcb_bringup is the per-board test, and it's the one worth reading first — it has its own README. The heart doubles as the test display: ten checks, one per LED, filling from the point upwards, all ten lit is the pass criterion. The top LED of each half needs a human — one for a phone tap, one for a finger — so the last few can't be faked by a dead board. It also provisions the NFC tag on first run and prints a one-line RESULT you can paste into a build log.

That one is work in progress. The structure holds up and the report is genuinely useful, but the individual checks aren't robust yet — a pass currently means nothing is obviously dead, not that the board is good. Treat it as a smoke test rather than an acceptance criterion.

The signal chain is all integer maths: IIR baseline removal, an envelope tracker for automatic gain so it works across different fingers without recalibration, and a peak detector.

The detector's refractory period is the part that needed real measurement. A naive threshold reads the dicrotic notch as a second beat and reports roughly double your actual heart rate, and the PPK2 trace showed the obvious fix wasn't enough: the notch fired 320 and 360 ms after a real beat while the true interval was 600–760 ms, so a 300 ms guard let it straight through. It's now a 450 ms floor plus 60 % of the running interval — and the running average itself refuses anything under 450 ms, because otherwise an accepted double drags the average down until the adaptive guard shrinks to match and the doubling sustains itself.

What it actually draws

Measured on the assembled card with a Nordic PPK2 in source-meter mode, fed through the U.FL across the cell terminals — so these are cell-side figures, including the boost's own losses. Full write-up in docs/power-report.md.

statecurrent
Switched off0.06–0.13 µA
Idle, waiting for a finger3.10 mA
Finger down, beating4.0–4.8 mA, mean 4.4
Ten LEDs at full brightness+9.1 mA
Power-on inrush1.52 A peak, ~25 ms

Off really is off — 0.06 µA is at the floor of what the instrument can resolve, so shelf life is the cell's own self-discharge and nothing else. On a 220 mAh cell, idle runs about 71 hours; a 30 second demo costs roughly 40 µAh, so one cell is good for something like 5500 demos. Handing the card around is effectively free. The only way to flatten one is to leave the switch on.

Against the budget above: measured worst case in normal operation is 4.8 mA rather than 26 mA, and even the full-heart flash at startup only reaches 11.6 mA. The soft PWM means the LEDs are never continuously lit, so the design budget turned out about five times pessimistic. There is a lot of headroom in those LED resistors if I ever want a brighter heart.

The report also documents one open bug: the sensor doesn't drop back to its 50 Hz idle rate after a finger has been removed, which costs 0.65 mA. The finger-detect threshold is the likely culprit.

Getting it made

Production files are in hardware/pcb/business-card-pcb/jlcpcb/, generated from KiCad, alongside a schematic PDF, a front-and-back plot, a STEP export and an interactive BOM for hand assembly.

Everything reflows, in one pass. There are pads for an NFC tuning cap built into the antenna footprint in case the coil needed pulling onto 13.56 MHz — it didn't. The AN11276 Class 5 geometry lands close enough as drawn, so C12 stays unpopulated and phones read the tag without it.

Five footprints aren't in the stock KiCad libraries and live in business-card-pcb.pretty/: the AN11276 antenna, the NT3H2111 in its NXP TSSOP variant, the CR2032 holder, the slide switch and the UPDI header.

Layout in KiCad

All layers, with the board outline dimensioned: 85.6 × 54 mm, 2.5 mm corner radius, and the notch that clears the switch actuator.

References

Third-party app notes, datasheets and vendor code stay out of the repo and are linked instead.

Datasheets: MAX30102 · NT3H2111 · ATtiny1616 · TPS61221 · XC6206

The antenna footprint is my own KiCad work, derived from the AN11276 Class 5 dimensions.

License

Hardware under CERN-OHL-S-2.0, firmware under MIT. Use it, modify it, build it, sell it — just release hardware modifications under the same licence.

Parts

59
QtyValueFootprintReferences
111k/1%Resistor_SMD:R_0402_1005MetricR1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11
10LED 0603 redLED_SMD:LED_0603_1608MetricD1, D2, D3, D4, D5, D6, D7, D8, D9, D10
8TestPointTestPoint:TestPoint_Pad_D1.0mmTP2, TP4, TP5, TP7, TP8, TP22, TP23, TP24
410µ/10VCapacitor_SMD:C_0603_1608MetricC1, C2, C8, C9
3100n/10VCapacitor_SMD:C_0402_1005MetricC6, C7, C10
34.7k/1%Resistor_SMD:R_0402_1005MetricR12, R13, R14
21µ/10VCapacitor_SMD:C_0603_1608MetricC3, C4
1100n/10VCapacitor_SMD:C_0603_1608MetricC11
1100µ/10VCapacitor_SMD:C_1206_3216MetricC13
110k/1%Resistor_SMD:R_0402_1005MetricR15
11k@100MHzInductor_SMD:L_0402_1005MetricFB1
14.7µ/1.4AInductor_SMD:L_1008_2520MetricL1
14.7µ/10VCapacitor_SMD:C_0603_1608MetricC5
1ATtiny1616Package_DFN_QFN:VQFN-20-1EP_3x3mm_P0.4mm_EP1.7x1.7mmU1
1Antenna_Loopbusiness-card-pcb:NFC_Antenna_Class_5_40.5x24.5mmAE1
1BAT-HLD-001business-card-pcb:BAT_BAT-HLD-001BT1
1LED 0603 greenLED_SMD:LED_0603_1608MetricD11
1MAX30102OptoDevice:Maxim_OLGA-14_3.3x5.6mm_P0.8mmU2
1NT3H2111Package_SO:TSSOP-8_3x3mm_P0.65mmU5
1PCM12Button_Switch_SMD:SW_SPDT_PCM12SW1
1TPS61221Package_TO_SOT_SMD:Texas_R-PDSO-G6U3
1TestPointTestPoint:TestPoint_Loop_D2.50mm_Drill1.0mmTP3
1U.FL ConnectorConnector_Coaxial:U.FL_Hirose_U.FL-R-SMT-1_VerticalJ2
1UPDI Portbusiness-card-pcb:updi_portJ1
1XC6206P18Package_TO_SOT_SMD:SOT-23-3U4

Similar boards

  • 2 layers100 × 150 mmBadge RP2350 FPGA, the printed circuit board in 3D

    Badge RP2350 FPGA

    semitov/riscv-fpga-badge-2026

    Electronic badge PCB for RISC-V Summit Europe 2026 in Bologna, Italy.

    105 parts9CERN-OHL-W-2.0
  • 2 layers261.3 × 79.9 mmAlly13, the printed circuit board in 3D

    Ally13

    hatanoh/30p

    my various 30% keyboards

    99 parts4
  • 2 layers135.7 × 110.7 mmEx64, the printed circuit board in 3D

    Ex64

    hatanoh/cscs_family

    cscs64 / cscs52 keyboards

    86 parts3MIT
  • 2 layers32 × 76.1 mmDPicoTracker, the printed circuit board in 3D

    DPicoTracker

    Mineinjava/ffellowship

    Frequency Fellowship: Examining Radio Wave Propagation from a High Altitude Balloon

    49 parts1
  • 2 layers80 × 42.5 mmBebl v2, the printed circuit board in 3D

    Bebl v2

    wyolum/bebl_v2

    "Bar End Brake Light" , redux. v2 of Justin's original BEBL with mods.

    75 parts1
  • 2 layers114 × 51 mmController, the printed circuit board in 3D

    Controller

    longhoangcode/P8B-Controller

    Repository for files for an open source gamepad.

    42 partsCC-BY-SA-4.0
  • 2 layers100 × 34 mm7clock, the printed circuit board in 3D

    7clock

    Quard/7clock

    Simple budget clock using 7 segment display with cheap PIC microcontroller and RTC chip

    59 partsMIT

Questions

How big is the Business card pcb PCB?

It measures 85.6 × 54 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Business card pcb use?

59 parts, built around the ATTINY1616-MN, MAX30102, TPS61221DCK and XC6206P182MR. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Business card pcb KiCad files?

From the roepkefeller/business-card-pcb repository on GitHub, at the commit this page was made from: the board is hardware/pcb/business-card-pcb/business-card-pcb.kicad_pcb and its schematic hardware/pcb/business-card-pcb/business-card-pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Business card pcb design in my own project?

Its repository states no licence, so its author keeps all rights: ask roepkefeller before reusing the design.