📏 Product Overview – Hat ToF Laser Distance Sensor
Hat ToF is a compact, high-precision laser distance sensor module designed specifically for the M5StickC platform. It integrates the ST VL53L0X time-of-flight (ToF) ranging chip and a 940nm VCSEL laser emitter to deliver fast and accurate distance measurements. By calculating the round-trip time of a laser pulse, it can measure absolute distances up to 2 meters in under 30 milliseconds.
Unlike traditional infrared sensors, Hat ToF provides consistent accuracy regardless of the target’s reflectivity. This makes it ideal for applications such as obstacle detection, gesture recognition, and 3D sensing. Whether you're building a smart robot, an interactive interface, or a depth-aware camera system, Hat ToF ensures reliable performance in real-time environments.
✨ Features
- 📐 High-precision laser distance measurement
- 📏 Measurement range: 0.3 to 2 meters
- 🎯 Accuracy: ±3%
- 🔦 940nm VCSEL laser emitter
- 🛡️ Eye-safe Class 1 laser (IEC 60825-1:2014 compliant)
- 📡 I2C communication protocol (default address: 0x29)
- 💻 Compatible with Arduino IDE, UiFlow1, and UiFlow2
📦 What’s in the Box
- 1 × Hat ToF module
- 1 × Sticker
🎯 Recommended Applications
- 🚧 Obstacle detection for robotics and automation
- 🖐️ Gesture recognition for interactive interfaces
- 📐 Laser-based distance measurement systems
- 🧠 3D structured light imaging and depth sensing
- 📸 Camera autofocus and depth mapping assistance
📐 Technical Specifications
| Specification | Parameter |
|---|---|
| Communication Interface | I2C @ 0x29 |
| Measurement Range | 0.3 ~ 2m |
| Accuracy | ±3% |
| Module Dimensions | 24.0 × 20.0 × 13.7 mm |
| Net Weight | 3.8g |
| Package Dimensions | 138.0 × 93.0 × 15.0 mm |
| Gross Weight | 6.2g |
📘 Learning Tips
📄 Circuit Schematics
🔌 Pin Mapping
| StickC | G0 | G26 | 3.3V | GND |
|---|---|---|---|---|
| ToF HAT | SDA | SCL | 3.3V | GND |
📏 Module Dimensions
📑 Datasheets
💻 Software & Examples
Arduino
UiFlow1
UiFlow2
🧩 EasyLoader
| EasyLoader | Download | Note |
|---|---|---|
| Hat ToF EasyLoader | Download | / |
🔗 Compatibility
Hat ToF is fully compatible with the following M5Stack cores:
- StickC
- StickC-Plus
- StickC-Plus2
It connects via PORT.G0/G26 using the I2C protocol, making it easy to integrate into modular IoT and robotics projects.