905 nm
905 nm
30 x 30
Up to 10 m
2 cm
Up to 30,000 points per second
2.5 W
-20C to 60C
-40C to 85C
5% to 95% RH (non-condensing)
Applications
| The TFMiNi Micro LiDAR Sensor Module is ideal for various applications, including |
Robotics and autonomous systems
Drones and UAVs
Autonomous vehicles and ADAS
Industrial automation and monitoring
IoT devices and smart sensors
Augmented and virtual reality systems
TFMiNi Micro LiDAR Sensor Module DocumentationOverviewThe TFMiNi micro LiDAR sensor module is a compact, low-power, and high-precision LiDAR (Light Detection and Ranging) sensor designed for various IoT applications, including robotics, drone navigation, surveying, and environmental monitoring. This module provides accurate distance measurements and 3D point cloud data, making it an ideal choice for obstacle detection, mapping, and gesture recognition.Technical SpecificationsOperating Frequency: 1550 nm
Range: Up to 10 meters (33 feet)
Resolution: 1 cm (0.4 inches)
Accuracy: 2 cm (0.8 inches)
Sampling Rate: Up to 100 Hz
Power Consumption: 180 mA (typical)
Interface: UART, I2C, SPICode Examples### Example 1: Basic Distance Measurement using UART (Arduino)In this example, we will show how to connect the TFMiNi micro LiDAR sensor module to an Arduino board and read distance measurements using the UART interface.Hardware RequirementsArduino Board (e.g., Arduino Uno)
TFMiNi micro LiDAR sensor module
Breadboard and jumper wiresSoftware RequirementsArduino IDE (version 1.8.x or later)Code
```c++
#include <SoftwareSerial.h>#define TFMiNi_RX 2 // UART RX pin
#define TFMiNi_TX 3 // UART TX pinSoftwareSerial TFMiNiSerial(TFMiNi_RX, TFMiNi_TX);void setup() {
Serial.begin(115200);
TFMiNiSerial.begin(115200);
}void loop() {
TFMiNiSerial.write(0x01); // Send command to read distance data
TFMiNiSerial.write(0x00);
delay(10);
int distance = TFMiNiSerial.read();
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");
delay(50);
}
```
### Example 2: 3D Point Cloud Data using I2C (Raspberry Pi)In this example, we will demonstrate how to connect the TFMiNi micro LiDAR sensor module to a Raspberry Pi and read 3D point cloud data using the I2C interface.Hardware RequirementsRaspberry Pi (e.g., Raspberry Pi 4)
TFMiNi micro LiDAR sensor module
Breadboard and jumper wiresSoftware RequirementsRaspberry Pi OS (version 2020-02-05 or later)
Python 3.xCode
```python
import smbus
import timeI2C_ADDRESS = 0x10bus = smbus.SMBus(1) # Use I2C bus 1def read_point_cloud():
data = bus.read_i2c_block_data(I2C_ADDRESS, 0x00, 100) # Read 100 bytes of point cloud data
points = []
for i in range(0, len(data), 3):
x = data[i] << 8 | data[i + 1]
y = data[i + 2] << 8 | data[i + 3]
z = data[i + 4] << 8 | data[i + 5]
points.append((x, y, z))
return pointswhile True:
points = read_point_cloud()
print("Point Cloud Data:")
for point in points:
print(f"({point[0]}, {point[1]}, {point[2]})")
time.sleep(0.5)
```
Note: In this example, we assume the TFMiNi micro LiDAR sensor module is configured to output point cloud data in the following format: `x (2 bytes), y (2 bytes), z (2 bytes)`. The code above reads 100 bytes of data and unpacks it into a list of 3D points.