# Firebrat > Firebrat is an open-source thermal camera: firmware that turns an MLX90640 thermal sensor (32×24 pixels, I2C) and a LilyGO T-Display-S3 or any ESP32-S3 board into a camera you can watch on its LCD, in a browser over WiFi, or in a browser over USB. Its web UI is built with bitwrench.js and driven from the device. Licence: BSD-2-Clause. Key facts: - Hardware: LilyGO T-Display-S3 (ESP32-S3R8, 170×320 ST7789 LCD) or any ESP32-S3 with 4 MB+ flash; MLX90640 at I2C address 0x33, probed on SDA/SCL 18/17, 43/44 and 8/9. - Builds (PlatformIO): `t-display-s3` (with screen), `t-display-s3-headless`, `esp32s3-headless`. - Up to 16 full frames/s (default; 32 Hz sensor refresh, 1 MHz I2C); palettes iron, rainbow, gray, hot, arctic; interpolation nearest, bilinear, bicubic (Catmull-Rom, default); image quality pipeline: chess-pattern fix, motion-adaptive temporal filter (auto-tuned per frame rate, or manual blend/motion), spatial median (off/cross/3x3, default cross); tunable live in the web UI. - WiFi setup: USB console (`wifi "SSID" "password"`) or Web Bluetooth page; the BLE setup window is time-limited. - Web UI: the device sends bitwrench bwserve JSON messages (mount, patch, batch, call) over Server-Sent Events (`/bw/events`), USB serial (`stream on`, lines prefixed `UI:`) or Bluetooth LE notifications (compact 8-bit frames, up to ~15 fps); the page's `thermal` remote paints frames. - HTTP: `GET /api/frame` (JSON temperatures), `GET /api/status`. - Snapshots/recordings: web app buttons (PNG, CSV, WebM video, JSON frames); console `snap` (SNAP:{json}); host CLI `tools/firebrat.py snap|record|render|cmd`. Recording format `firebrat-frames` v1 (base64 int16 centi-degrees per frame). - The camera serves plain HTTP on the local network; the HTTPS website cannot reach it over WiFi, so the website offers a USB (Web Serial) viewer instead. - Tests: `make test` (C++ imaging core natively with Unity, JS painter/protocol/site/consistency with node:test, Python host tool with unittest); `make test-hw` against a camera on USB. CI on every push. - Security: no authentication or TLS on the local web app and Bluetooth view; WiFi changes only during a Bluetooth setup window; no telemetry (see SECURITY.md, PRIVACY.md). - Version 0.1.3, BSD-2-Clause. ## Docs - [README](https://github.com/deftio/firebrat/blob/main/README.md): hardware, wiring, builds, WiFi setup, console commands, protocol, troubleshooting - [Website](https://deftio.github.io/firebrat/): overview, live demo, interpolation and palette comparison, FAQ - [Live camera](https://deftio.github.io/firebrat/camera.html): viewer over USB (Web Serial) or Bluetooth (Web Bluetooth) - [WiFi setup](https://deftio.github.io/firebrat/setup.html): Web Bluetooth provisioning page - [AGENTS.md](https://github.com/deftio/firebrat/blob/main/AGENTS.md): how the code is organised and how to change it - [How it works](https://deftio.github.io/firebrat/how-it-works.html): setup, every connection (screen, WiFi, USB serial, Bluetooth), how the UI and consoles are served over each, the bwserve messages, settings and security - [Docs page](https://deftio.github.io/firebrat/docs.html): the README rendered on the website - [CONTRIBUTING.md](https://github.com/deftio/firebrat/blob/main/CONTRIBUTING.md), [SECURITY.md](https://github.com/deftio/firebrat/blob/main/SECURITY.md), [PRIVACY.md](https://github.com/deftio/firebrat/blob/main/PRIVACY.md) - [CHANGELOG.md](https://github.com/deftio/firebrat/blob/main/CHANGELOG.md): changes per version; [releases](https://github.com/deftio/firebrat/releases) ## Source - [Firmware](https://github.com/deftio/firebrat/tree/main/src): main, thermal (sensor), display (LCD), net (WiFi, HTTP, SSE, UI composition), ble (provisioning), cli (USB console), settings - [Device web files](https://github.com/deftio/firebrat/tree/main/web): bootstrap page and the thermal painter - [Website sources](https://github.com/deftio/firebrat/tree/main/site): pages as bitwrench TACO, styles as data, page scripts ## Optional - [bitwrench.js](https://github.com/deftio/bitwrench): the UI library and the bwserve protocol used by the camera - [MLX90640 datasheet (Melexis)](https://www.melexis.com/en/product/MLX90640/Far-Infrared-Thermal-Sensor-Array) - [LilyGO T-Display-S3](https://github.com/Xinyuan-LilyGO/T-Display-S3)