一张无需电池的 LED PCB 名片,由触碰它的手机供电。
A PCB business card with a batteryless LED, powered by the phone that taps it

原始链接: https://www.kevin.md/the-business-card-that-lights-up.md/

作者设计了一款独特的信用卡大小的名片,其材质为定制电路板。除了亮面的黑色外观,这张名片还内置了一个 NFC 芯片,当靠近手机感应时,会自动跳转至指定网站。为了增添一丝“魔法”感,作者在打印的喷火龙尾部加入了一颗红色 LED 灯。这颗灯通过手机 NFC 射频场采集能量来发光,因此无需额外配备电池。 该项目面临一个重大障碍:所选的 NTAG I²C Plus 是一款空白桥接芯片,与标准的消费级 NFC 应用不兼容。在现成的软件无法格式化卡片后,作者通过 Apple 的 Core NFC 框架编写了一个定制的 iOS 应用,从而绕过了这一限制,实现了与芯片的底层直接通信。 最终,这张卡片成为了无电池交互式硬件的功能性概念验证。此次经历再次印证了硬件设计中最具挑战性的部分往往在于软件集成的“最后一英寸”,同时也凸显了仅靠用户交互所提供的能量即可“唤醒”设备的潜力。

关于一款无电池、NFC 供电 LED 名片的 Hacker News 讨论,凸显了 DIY 硬件项目日益增长的趋势。尽管利用智能手机 NFC 场为 PCB 名片供电的概念很受欢迎,但社区对此反应不一。 项目创建者解释称,该电路板完全是通过 Python 脚本而非手动布局设计的,并利用 NXP NTAG I2C 芯片为 LED 收集能量。然而,该帖子的风头被围绕项目文档的负面反馈所掩盖。许多用户批评作者使用人工智能撰写博客文章,认为内容缺乏人情味,且缺失技术爱好者社区所期望的真实感。其他人则对缺乏共享设计文件或清晰的文档来验证项目真实性表示失望。 尽管存在质疑,讨论也涉及了现代 PCB 制造的便捷性,指出低成本组装服务(如 JLCPCB)使得此类复杂的硬件项目变得非常实惠。参与者还探讨了未来可能的迭代方向,例如电子墨水显示屏或可穿戴 NFC 饰品,同时强调社区的兴趣依然高度集中于人类创作的内容以及切实可行的开源设计。
相关文章

原文

TL;DR: I made a circuit-board business card with an NFC chip and a batteryless LED powered by the phone tapping it. The hardware worked, but ordinary iPhone NFC apps couldn’t format the blank NTAG I²C Plus chip. I wrote a tiny Core NFC app that sends the chip’s native commands directly, and now each tap opens my site and lights Charizard’s tail.

I wanted a business card that wasn’t a piece of paper. Not out of some deep philosophy—I just thought it would be fun to hand someone a circuit board. So I designed one: credit-card sized, glossy black, with gold artwork and my name on it. Standard so far. The two things that make it not-just-a-card are both invisible until you bring a phone near it.

The first is an NFC chip. Tap the card to a phone and it opens kevintang.xyz—the same technology as a tap-to-pay card or a transit pass, running at 13.56 MHz[1]. There’s a spiral of copper wound seven times around the edge of the board; that’s the antenna, and getting it to resonate at the right frequency is most of the work. That part I expected.

The second thing is the part I can’t stop thinking about. There’s a little Charizard printed on the card, and a red LED sits right at the tip of its tail—so tap the card to a phone and its tail catches fire. There’s no battery on the card. There’s no coin cell, no wire, nothing to charge. The LED is running entirely on energy the phone is throwing off.

A black circuit-board business card styled like a component datasheet, a small red LED glowing near the top; below it a phone runs a custom "NFC Card Writer" app showing the URL being written to the card, with two more cards resting on a dark couch.

The card mid-write—my own little app pushing the URL onto the chip—with the harvest LED lit from nothing but the phone’s field. Several more waiting their turn.

Here’s what’s actually happening, and it took me a while to stop finding it magical (I haven’t, really). An NFC phone doesn’t just listen for a tag—it broadcasts a strong radio field to power the tag, because the tag has no battery either. The chip in a normal NFC sticker wakes up on that borrowed energy just long enough to answer, then goes dark the moment the phone leaves. What I didn’t appreciate until I built one is that some chips will hand you the leftover power on a pin, to do whatever you want with. NXP’s datasheet lists a typical harvested output of about 5 milliamps at 2 volts under one test setup[2]—not much, but plenty to light an LED, or blink a low-power sensor, or wake a tiny microcontroller for a fraction of a second.

And the way it answers is stranger than it sounds: the tag never transmits a signal of its own. It replies by changing how much of the phone’s field it absorbs, instant to instant, and the phone feels those little tugs on its own signal and reads them as ones and zeros. The analogy I keep coming back to is a mirror. A mirror makes no light—it only reflects a source. A passive NFC tag makes no radio of its own—it reflects the phone’s, flickering it into a message. The phone brings all the energy; the card just decides what to bounce back.

(This, incidentally, is the NFC-versus-RFID distinction I used to fumble: NFC isn’t a rival to RFID, it’s the short-range, 13.56 MHz corner of it—close range on purpose, so the card talks only to the thing you deliberately touch it to.)

I’d always thought of NFC as a way to make the phone do something: open a link, pay for coffee, check in. But this flips it. The tap makes the card do something. For the half-second your phone is near it, the card is a live device—an inert rectangle of fiberglass that comes alive in your hand because you brought a battery near it. Once you’ve felt that, you start seeing NFC taps differently. You’re not reading the tag. You’re powering it.

It’s not a brand-new idea—U.S. Bank shipped a credit card a few years ago whose logo glows during a contactless payment, and it was popular enough that they ran short of them[3]—but it’s rare, and it feels like a small miracle every time. And it points at a whole category of objects: things that don’t need a battery because they only need to be alive for the instant you’re touching them with a phone you were already holding.

I designed the whole board as code, which I’d recommend to anyone who, like me, finds dragging traces around with a mouse maddening. KiCad—the free PCB tool—has a Python API, so the entire card is generated by a script. Every trace, the antenna coil, the position of each letter: it’s all computed. Want the coil to have one more turn? Change a number, re-run, done. The board is reproducible the way a program is reproducible, which for a hardware novice is enormously reassuring—there’s no precious hand-drawn artifact I’m afraid to touch.

I couldn’t resist a couple of jokes for anyone who’d flip the card over. The back is laid out like a component datasheet—the dense reference document every hardware part ships with—complete with the actual resonance math for the antenna printed right there in the silkscreen, and two real exposed test points a curious engineer could probe with a meter to check my numbers. And on the front, where a chip card has its little gold square of contacts, mine has only a drawing of one—that same eight-pad footprint printed into the board with nothing underneath it. The real NFC chip is hidden on the back; the thing that looks like the chip is a decoy. Anyone who’s laid out a circuit board clocks it instantly—everyone else just sees a chip card. It’s there for whoever looks closely.

Render of the black back of the card, laid out like a component datasheet: a gold "KEVIN TANG" heading, sections of small print, the antenna's resonance math, a gold Charizard whose tail sits at the start of the coil, the spiral antenna itself, and two labeled test points, TP1 and TP2, with dimension callouts.

The back, straight from the design files—laid out like a real datasheet, resonance math and all, with TP1/TP2 you can actually probe. The Charizard’s tail is where the LED lives.

Then I sent it to a factory. This is the genuinely wild part of modern hardware: I uploaded my files to JLCPCB, and for about seventy-five dollars they manufactured ten copies and soldered the chip and the LED onto each one[4]. Ten assembled circuit boards, in the mail, for the price of a nice dinner. A few days later, this little blue box showed up:

A hand holding the blue JLCPCB shipping box that contained the assembled circuit-board business cards.

Inside were ten beautiful cards, and I was very pleased with myself. For about a day.

I tapped the first card to my phone. The LED flickered—so it was getting power, the antenna worked, the hard electrical part was fine—but nothing happened. No link. The card had power but no message.

That’s expected: a blank chip needs you to write the URL onto it. So I opened NFC Tools, the standard app everyone uses for this, held the card to my iPhone, and got: “NFC tag not supported.”

I had made a rookie mistake in chip selection. The chip I’d picked, the NTAG I²C Plus[2], is not really a plain sticker tag. It’s a bridge chip—designed to sit inside a gadget and talk to a microcontroller over a wire, with the NFC part as a bonus. It’s the same chip that gives me the energy-harvesting pin I wanted for the LED, which is exactly why I chose it. But it ships blank, without the NDEF formatting that tells a consumer app where a URL record belongs. NFC Tools uses iOS’s high-level NDEF path, which treated my blank chip as unsupported instead of formatting it.

Fine, I thought. I’ll try an Android instead—its NFC stack is far more permissive about this kind of thing. I dug out my backup phone, went to install the app, and discovered that my cheap prepaid Android doesn’t have an NFC radio at all. The model officially supports NFC; my particular carrier’s version of it had the chip left out to save a dollar. The phone literally cannot do NFC. There is no app for missing hardware.

The ordinary iPhone app wouldn’t; my Android couldn’t. Ten gorgeous cards, and no way to put a single word on any of them.

The thing that got me unstuck was realizing the consumer apps weren’t failing because the chip couldn’t be written—they were stopping at the high-level NDEF check. Underneath, this chip answers the same basic memory commands as common NFC tags. It’s command-compatible where it counts. The apps were bouncers checking IDs at the door; the chip inside would happily take my order.

And iOS, it turns out, will let you send a tag raw commands—if you’re willing to write the app yourself. Apple’s Core NFC framework has a low-level mode where you talk to the tag directly instead of asking iOS to interpret it for you[5]. So I wrote a very small iPhone app—about sixty lines that matter—that does exactly one thing: open an NFC session and send the write commands by hand. First the little header that declares “I’m a URL tag,” then my web address, spelled out four bytes at a time across the chip’s memory, each command acknowledged before the next.

I built it onto my phone, opened it, tapped a card, and watched it count up the pages: writing, writing, done. Then I locked the phone, tapped the card again like a stranger would, and a banner popped up offering to open my site. It worked. It has worked on every card since.

One quirk: I have to hold the card right against the top edge of the phone or the write fails. The coupling is tight, and I’m fairly sure the reason is that glowing LED—it’s drinking some of the same power the chip needs to do its job, so there’s less margin than a plain tag would have. A fun problem to have. It’s on the list for the next revision: a little less glow, a little more range, and decide how I feel about that trade.

What this drove home—again—is that the hard part of a hardware project is often the software at the very end: the last inch between “the object physically exists” and “the object does the thing.” The electronics were textbook. The antenna math worked on the first try. What nearly beat me was a compatibility checkbox in an app that had never heard of my chip.

But that’s not what I think about when I hold the card. What I think about is the glow. It’s a flat piece of fiberglass with no power source, and it comes alive because you waved a phone at it. I set out to make a business card that opens a website, which is a mildly clever party trick. I ended up more interested in the few milliwatts of borrowed light—because that same trick, the object waking up on power it doesn’t own, is the seed of a hundred other things I now want to build.

Anyway. If we meet and I hand you a black card, tap it. And watch the tail.

[1] Near-field communication — Wikipedia (NFC operates at 13.56 MHz) ↩

[2] NT3H2111/NT3H2211 NTAG I²C plus datasheet — NXP Semiconductors (energy harvesting output, ~5 mA typical) ↩

[3] U.S. Bank Shopper Cash Rewards Visa launch — Business Wire (LED card that illuminates during contactless payment) ↩

[4] JLCPCB — PCB fabrication and assembly service ↩

[5] sendMiFareCommand — Apple Developer documentation (sending native commands to an NFC tag) ↩

联系我们 contact @ memedata.com