{"schema_version":1,"id":"ducky64-arduino-lepton","name":{"en":"Lepton Thermal Camera","zh":"把 FLIR Lepton 热成像相机接到 ESP32-S3 的 Arduino 固件。"},"summary":{"en":"ESP32-S3 FLIR Lepton firmware with Arduino HAL and PlatformIO","zh":"把 FLIR Lepton 热成像相机接到 ESP32-S3 的 Arduino 固件。"},"purpose":"thermal camera","tier":"community","author":"ducky64","repository":"https://github.com/ducky64/arduino-lepton","license":"BSD-3-Clause","shape":"square","scenes":["tools"],"boards":[{"name":"ESP32-S3"}],"motion":false,"hardware":{"en":"ESP32-S3. Verify the exact board revision, wiring and power requirements in the upstream build guide.","zh":"ESP32-S3；请在上游构建文档中核对具体板型、供电与接线。"},"notes":{"en":"A driver layer for FLIR Lepton thermal cameras on the Arduino HAL, tested with a Lepton 3.5 and an ESP32-S3 on a custom board. The API is small: construct with I2C and SPI buses plus chip-select and reset pins, poll `isReady()`, then call `readVoSpi()` into a 160×120×2 buffer. Two examples ship with PlatformIO, a webserver that streams MJPEG or single frames in greyscale or colourised RGB888 using JPEGENC, and a serial console that prints each pixel as one digit. VoSPI is timing-sensitive, so the driver wants high priority under an RTOS; in some cases the camera never yields valid data and power-cycling does not help. Only Lepton 3.5 has been tested.","zh":"一块把 FLIR Lepton 热像仪接到 Arduino HAL 上的驱动层，在自制板上用 Lepton 3.5 配 ESP32-S3 跑通了。接口很短：用 I2C 和 SPI 加片选、复位脚建对象，轮询 isReady 后把一帧读进 160×120×2 的缓冲区。PlatformIO 自带两个例子，一个网页服务用 JPEGENC 输出灰度或上色的 RGB888，能单帧也能 MJPEG 推流；另一个串口台把每个像素印成一个字符。VoSPI 对时序很敏感，帧读不及时就会失步，所以 RTOS 下驱动要给高优先级。偶尔也会遇到相机一直吐不出有效数据、断电重启都救不回来的情况，且只在 3.5 上验证过。"},"readme_excerpts":[{"label":"Build","quote":"All examples should build right out of the box with PlatformIO"},{"label":"Limit","quote":"VoSPI is a timing-sensitive protocol"},{"label":"Limit","quote":"Only tested with Lepton 3.5"},{"label":"Display","quote":"streaming MJPEG, in greyscale or RGB888 (colorized) mode"}],"images":{"type":"gallery","primary":"https://esp32gallery.com/previews/ducky64-arduino-lepton/poster.jpg","poster":"https://esp32gallery.com/previews/ducky64-arduino-lepton/poster.jpg","sources":["https://esp32gallery.com/previews/ducky64-arduino-lepton/frames/view-002.jpg"]},"media_credit":{"status":"upstream-project-media","creator":"ducky64","source":"https://github.com/ducky64/arduino-lepton/tree/eefa590f5a73bce3a086dd295524953b3cb1b1bc","note":{"en":"Screenshots from the upstream README. Code and firmware were not executed. License notices are included.","zh":"来自上游 README 的真实截图；未运行代码或固件，预览包保留许可证声明。"},"reviewed":"2026-10-20"},"preview":{"browser_playable":false,"kind":"media_gallery","label":{"en":"Project screenshots","zh":"项目截图"},"width":960,"height":720,"shape":"square","source_commit":"eefa590f5a73bce3a086dd295524953b3cb1b1bc"},"stars":11,"pushed_at":"2024-10-14T01:58:07Z","added_at":"2026-10-20T14:44:01+08:00","urls":{"html":"https://esp32gallery.com/projects/ducky64-arduino-lepton/","html_zh":"https://esp32gallery.com/zh/projects/ducky64-arduino-lepton/","json":"https://esp32gallery.com/data/catalog/projects/ducky64-arduino-lepton.json","markdown":"https://esp32gallery.com/data/catalog/projects/ducky64-arduino-lepton.md"}}
