
为手机做配件时,常规思路是开发一个配套 App 来通信。但如今的 App 可能就是明日的废弃软件,为了让自己的红外相机拥有更长的寿命,[Cezar Chirila] 选择让它直接通过 WebUSB 与浏览器对话。
硬件方案相当常规:一颗 FLIR 传感器连接 RP2040 微控制器。除了电源稳压电路之外几乎没有其他外围电路——因为独立项目上许多本该自己实现的功能,USB 主机设备本身就已经具备。使用时只需打开支持 WebUSB 的浏览器访问一个落地页,即可直接使用相机。整个项目已开源,代码托管在 GitHub 仓库中。
Hackaday 编辑部一直是 WebUSB 的支持者,理由正是这个项目所展示的:尽管这些年浏览器淘汰了不少特性——谁还记得 BLINK 和 MARQUEE 这些 HTML 标签——WebUSB 大概率不会成为其中之一。如果能让微控制器把落地页以 HTML 文件的形式共享一个小型 USB 存储设备,体验还能更上一层楼。
如果预算有限,市面上也有更便宜的热成像相机可选;但这个项目展示的思路——用标准浏览器接口替代专用 App——对任何希望延长硬件寿命的创客来说都值得借鉴。
本文来源:https://hackaday.com/2026/10/15/a-thermal-camera-that-uses-webusb/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。
When creating a peripheral for a mobile phone, an obvious path is to create a companion app with which to talk to it. But as we all know today's app is tomorrow's non-functional abandonware, so to give his infrared camera a long life, Cezar Chirila made it talk WebUSB to a browser instead.

The hardware is conventional enough, a FLIR sensor talking to an RP2040. There's very little in the way of supporting circuitry save for a power supply regulator, as so much that might be on a standalone project is already present in the USB host device. Running the thing is as simple as going to a landing page in a browser that supports WebUSB, and using the camera. The whole lot is in a GitHub repository, if you're interested.
We're big fans of WebUSB, for exactly the reason it's been used here. While there are a few browser features which have been deprecated over the years - who remembers the BLINK and MARQUEE HTML tags - it's likely WebUSB won't be one of them. This could only be topped by having the microcontroller share a small USB disk with the landing page as an HTML file. Meanwhile if you're strapped for cash, there are cheaper thermal cameras out there.