|
1 | | -# T-Lite-Internal-FW (M5StickC-Plus + MLX90640 Thermal HAT) |
| 1 | +# M5Stick T-Lite Firmware |
2 | 2 |
|
3 | | -### SKU:K126 |
| 3 | +Firmware for the [M5Stack T-Lite (SKU K126)](https://docs.m5stack.com/en/app/T-Lite), |
| 4 | +a thermal camera built from an M5StickC Plus and an MLX90640 Thermal HAT. |
4 | 5 |
|
5 | 6 |  |
6 | 7 |
|
7 | | -## Related Link |
| 8 | +## Supported hardware |
8 | 9 |
|
9 | | -- [Document & Datasheet](https://docs.m5stack.com/en/app/T-Lite) |
| 10 | +| Main unit | Thermal sensor | |
| 11 | +| --- | --- | |
| 12 | +| M5StickC Plus | MLX90640 Thermal HAT | |
| 13 | +| M5StickC Plus SE | MLX90640 Thermal HAT | |
10 | 14 |
|
11 | | -## License |
| 15 | +The same firmware image runs on both main units. T-Lite does not use the internal |
| 16 | +IMU, which is absent from the Plus SE. |
| 17 | + |
| 18 | +## Features |
| 19 | + |
| 20 | +- Thermal image display with multiple layouts and color palettes |
| 21 | +- Temperature range, refresh rate, noise filter, and emissivity settings |
| 22 | +- Wi-Fi setup from a phone using an access point and QR codes |
| 23 | +- Browser control, temperature data, and MJPEG streaming over the local network |
| 24 | +- Access by IP address or mDNS hostname |
| 25 | +- Battery level and charging status in the upper-right status row |
| 26 | +- Runtime heap, task stack, and Wi-Fi diagnostics at `/health` |
| 27 | + |
| 28 | +## Wi-Fi setup |
| 29 | + |
| 30 | +1. On T-Lite, open **Network > WiFi Setting > AP mode**. |
| 31 | +2. Scan the displayed Wi-Fi QR code with a phone. To connect manually, select |
| 32 | + `T-Lite_xxxx` and enter `12341234` as the password. |
| 33 | +3. After the phone joins the T-Lite network, scan the new QR code or open |
| 34 | + `http://192.168.4.1/wifi`. |
| 35 | +4. Select a nearby network from the SSID list, enter its password, and save. |
| 36 | +5. Reconnect the phone to the same local network as T-Lite. |
| 37 | + |
| 38 | +If the SSID list is still being populated, wait for the page to refresh or select |
| 39 | +**Refresh networks**. When all phones leave the setup access point, T-Lite shows |
| 40 | +the Wi-Fi connection QR code again. |
| 41 | + |
| 42 | +## Browser access |
| 43 | + |
| 44 | +After Wi-Fi setup, the Network menu provides QR codes for local access. |
| 45 | + |
| 46 | +| Method | Address | |
| 47 | +| --- | --- | |
| 48 | +| IP address | The address assigned by the local router | |
| 49 | +| mDNS | `http://t-lite-xxxx.local/` | |
| 50 | + |
| 51 | +The home page links to browser control, text and JSON temperature data, system |
| 52 | +health, and the MJPEG stream. If the network or phone does not support mDNS, use |
| 53 | +the IP address instead. |
| 54 | + |
| 55 | +The mDNS hostname changed from `T-Lite_xxxx.local` to `t-lite-xxxx.local`. Update |
| 56 | +saved bookmarks created with older firmware. |
| 57 | + |
| 58 | +## Battery indicator |
| 59 | + |
| 60 | +The battery icon shares the upper-right status row with the Wi-Fi and cloud icons. |
| 61 | + |
| 62 | +| Appearance | Meaning | |
| 63 | +| --- | --- | |
| 64 | +| Green | Battery is charging | |
| 65 | +| White | Battery is not charging | |
| 66 | +| Gray | Charging state is unavailable | |
| 67 | +| Dash inside the icon | Battery level is unavailable | |
12 | 68 |
|
13 | | -- [MIT](LICENSE) |
| 69 | +The filled portion represents the estimated battery level and updates about once |
| 70 | +per second. A USB connection does not always mean that the battery is actively |
| 71 | +charging. |
| 72 | + |
| 73 | +## Build |
| 74 | + |
| 75 | +This project uses [PlatformIO](https://platformio.org/). The framework is pinned to |
| 76 | +Espressif32 6.12.0, which includes Arduino-ESP32 2.0.17. |
| 77 | + |
| 78 | +Build the release firmware: |
| 79 | + |
| 80 | +```sh |
| 81 | +pio run -e release |
| 82 | +``` |
| 83 | + |
| 84 | +Upload it to a connected device: |
| 85 | + |
| 86 | +```sh |
| 87 | +pio run -e release -t upload |
| 88 | +``` |
| 89 | + |
| 90 | +For verbose runtime logging, use the `debug` environment: |
| 91 | + |
| 92 | +```sh |
| 93 | +pio run -e debug |
| 94 | +``` |
| 95 | + |
| 96 | +The application image is generated at `.pio/build/release/firmware.bin`. It is an |
| 97 | +application-partition image for address `0x10000`; use the PlatformIO upload command |
| 98 | +above when writing a complete device. |
| 99 | + |
| 100 | +## Links |
| 101 | + |
| 102 | +- [T-Lite documentation and datasheet](https://docs.m5stack.com/en/app/T-Lite) |
| 103 | +- [M5StickC Plus SE specifications](https://docs.m5stack.com/en/core/StickC-Plus_SE) |
| 104 | + |
| 105 | +## License |
14 | 106 |
|
| 107 | +[MIT](LICENSE) |
0 commit comments