M5Stack Unit Thermal2 (U149)
Read a 32 × 24 thermal map, then test a privacy-conscious heat-event detector. Start by printing temperatures; learned classification is a proposed extension.
Projects and experiments
Read the first thermal grid before building a detector
Use M5Stack’s Arduino example to print live temperature statistics from U149.
Does a thermal heat event beat a simple threshold?
An unrun plan to test warm-region false alarms, distance and optional learned classification.
Is this for me?
For makers who need to detect warm objects or changes without recording an ordinary photograph: a workbench monitor, room-activity experiment or equipment-temperature logger. The useful raw material is a low-resolution temperature grid. It is not a camera for reading text or recognizing faces; a 32 × 24 grid does not identify people reliably. Any safety-critical overheating alert requires separate validation.
What you can do with it
First observable result: connect U149 to a compatible 5 V M5Stack host such as CoreS3, run the official M5Unit-Thermal2 Arduino example, and print the center, average, median, highest and lowest pixel temperatures to the serial console. Point the sensor at a warm, nonhazardous object; the numbers should respond, and the example’s button should toggle the unit LED/buzzer. If update() does not return frames, check power, pins and I²C address before adding models. Official starter code · Step-by-step guide
Proposed build: a thermal workbench event logger that records a timestamp only when a persistent warm region enters a marked zone. Start with a threshold baseline. A learned classifier is an optional later experiment; the official examples do not provide a trained activity model. Compare the approaches
What the complete setup costs
USD at M5Stack international shop, checked 16 Nov 2026: exact Unit Thermal2 U149 $69.90 and exact CoreS3 K128 host $59.90. The unit includes its 20 cm Grove cable; it has its own thermal sensor and buzzer. First-year starter using an existing programming computer = $69.90 + $59.90 + a $5–15 editorial allowance for a suitable USB-C data cable/power + $0 required local subscription = $134.80–144.80. If a compatible 5 V host, USB cable/power and computer are already owned, incremental hardware is $69.90. A new computer or different host is unquoted and cannot be counted as zero. U149 quote · K128 quote
Optional learned-model training on an existing computer can use local software, but model/tool compatibility and its compute expense are unverified. Optional cloud APIs or hosted logging may add usage fees; no plan or trial is assumed. Excludes tax, shipping, electricity and labor. Stock shown by the official store is a point-in-time indicator, not a delivery guarantee.
How to start — and what you need to learn
Arduino/C++ and I²C basics. Install M5Stack board support and the official M5Unit-Thermal2 library. Connect the included Grove cable to a documented I²C/5 V port, upload the library example, open Serial and verify changing temperature values. Use the sketch’s actual SDA/SCL pins for CoreS3. The library calls Wire.begin(..., 400000) and thermal2.begin() with default 0x32. Library example
There is a documentation conflict: the current reference/library say default I²C 0x32, while the official store lists 0x33. Scan the attached unit or inspect the exact firmware/protocol before assuming an address. The library also exposes button, LED and buzzer calls. Sampling, calibration, mounting and host-side model conversion are later learning work; no hands-on setup time is claimed.
When another product is a better choice
Choose a normal camera such as Pi AI Camera if recognizing objects or reading details matters. Choose Thingy:53 for a broader rechargeable motion/audio/environment sensor kit. U149 gives a thermal grid and onboard alarm processing but costs more than a simple presence sensor; use a one-pixel or PIR sensor if the only question is whether something moved. These are editorial fit judgments, not measured rankings.
What we know — and what still needs testing
Documented: exact U149 thermal array, ESP32-PICO-D4, I²C temperature-read example, LED/buzzer, price and included cable. A heat-zone logger and any ML classification are our untested proposals. We have not measured frame rate, distance, accuracy, false alarms, power draw or privacy leakage. The disagreement between official 0x32 and 0x33 addresses is disclosed; actual shipped firmware behavior must be checked. Vendor range/refresh figures describe device specifications, not application performance.
Architecture
Input: the MLX90640 senses infrared radiation across a 32 × 24 array. The U149 ESP32-PICO-D4 manages the thermal readings and documented aggregate/alarms and caching. Over the included Grove connection, a separate 5 V I²C host reads the grid or statistics; the Arduino example prints them to Serial. A host application can then apply a simple threshold and optionally an independently trained classifier. Proposed logging, model inference, network upload and storage happen on the chosen host, not by default inside U149. Hardware reference · Host library example
The factory firmware and library expose an I²C protocol and button/LED/buzzer functions. A published internal-firmware repository exists, but this profile does not claim a particular shipped binary matches its HEAD. Logical arrows in the accompanying diagram are not PCB traces or measured timing. Protocol
Documented capabilities
M5Stack documents 32 × 24 thermal pixels, a 110° × 75° field of view, -40 to 300°C measurement range, 0.5–64 Hz selectable refresh and a 5 V / 0.5 A supply specification. The unit has its own ESP32-PICO-D4, passive buzzer, RGB LED and function/reset buttons. The example returns per-pixel, average, median, highest and lowest values; LED and buzzer can respond to button events. These are vendor specifications and code paths, not our measured accuracy or range. Reference · Example
SDKs, APIs & extensibility
Data/application access: the official MIT-licensed Arduino library exposes temperature arrays/statistics, button state and LED/buzzer control to a host over I²C; raw thermal frames can support custom host-side processing. The linked protocol allows lower-level integration. Library and license · Protocol
Firmware access: M5Stack publishes an internal-firmware repository and factory test, but the exact shipped image, full dependency licenses and board-file reuse terms need checking before redistribution or flashing. The linked enclosure structure files are not evidence of internal chip placement. No NPU or officially supplied thermal classifier is documented for U149. Training/custom inference is a host-side proposal whose model/data needs testing. Firmware repository · Structure files
Limitations
The sensor reports apparent surface temperature, not a visible photograph or a person’s identity. A warm mug, lamp or pet may resemble a human heat blob at this grid size. False triggers, emissivity, reflections, ambient drift, distance, occlusion and the chosen threshold can change outcomes; test the actual scene. The vendor’s -40 to 300°C range and up-to-64 Hz setting do not establish accuracy at every target/distance or a reliable alarm. Compare with a physical thermometer for the intended target if temperature is important. Reference
Official address information conflicts: reference/library 0x32 versus store 0x33. Do not wire or ship against an unverified address. The 5 V supply rating does not prove tolerance of arbitrary 5 V MCU logic pins; use the supported Grove host. An ESP32 is present in the module, but a general custom-model-on-module workflow is not documented. Store · Library
Privacy & data flow
The official starter reads temperature data to the local host and prints local Serial output; no account/cloud step is specified for that flow. This is documentation evidence, not a network audit. A 32 × 24 thermal map omits photographic detail but can reveal presence, movement or routines. Retention, network sharing, notifications and model training data are choices in the proposed host application. Collect only consented test scenes and define deletion before logging a shared space. Starter