# Lepton Thermal Camera

把 FLIR Lepton 热成像相机接到 ESP32-S3 的 Arduino 固件。

ESP32-S3 FLIR Lepton firmware with Arduino HAL and PlatformIO

把 FLIR Lepton 热成像相机接到 ESP32-S3 的 Arduino 固件。

- id: ducky64-arduino-lepton
- author: ducky64
- repository: https://github.com/ducky64/arduino-lepton
- license: BSD-3-Clause
- shape: square
- scenes: tools
- boards: ESP32-S3
- browser_playable: no
- preview: Project screenshots
- 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

## Hardware

ESP32-S3. Verify the exact board revision, wiring and power requirements in the upstream build guide.

ESP32-S3；请在上游构建文档中核对具体板型、供电与接线。

## English

```
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.
```

## 中文

```
一块把 FLIR Lepton 热像仪接到 Arduino HAL 上的驱动层，在自制板上用 Lepton 3.5 配 ESP32-S3 跑通了。接口很短：用 I2C 和 SPI 加片选、复位脚建对象，轮询 isReady 后把一帧读进 160×120×2 的缓冲区。PlatformIO 自带两个例子，一个网页服务用 JPEGENC 输出灰度或上色的 RGB888，能单帧也能 MJPEG 推流；另一个串口台把每个像素印成一个字符。VoSPI 对时序很敏感，帧读不及时就会失步，所以 RTOS 下驱动要给高优先级。偶尔也会遇到相机一直吐不出有效数据、断电重启都救不回来的情况，且只在 3.5 上验证过。
```
