- All products
- Sensors & Modules
- LIDAR
- TFMini -S Micro LiDAR Module
- LIDAR
Features
- Measuring range up to twelve meters for long distance sensing
- High accuracy distance measurement for short and long ranges
- Distance resolution of one centimeter
- High frame rate up to one hundred hertz
- High ambient light immunity suitable for outdoor use
- Class one laser safety suitable for all environments
- Supports UART and I2C communication interfaces
- Compact size and lightweight design
- Low power consumption suitable for battery powered projects
Principle of Operation
The module emits an infrared laser pulse using a VCSEL light source. The laser beam reflects off a target object and returns to the receiver inside the module. A high precision timer measures the travel time of the laser pulse and calculates the distance using the speed of light. The measured distance data is transmitted through the UART or I2C interface.
Pinout

| Pin Number | Function | Wire Color |
|---|---|---|
| 1 | UART TX 3.3V TTL | Green |
| 2 | UART RX 3.3V TTL | White |
| 3 | Power 5V | Red |
| 4 | Ground | Black |
Applications
- Robotics obstacle detection and navigation
- Drones altitude control and landing assistance
- Industrial automation and distance monitoring
- Security and surveillance systems
- Traffic monitoring systems
- Agriculture crop and irrigation monitoring
- Motion detection and interactive systems
Circuit

| TFMini Pin | Arduino Pin |
|---|---|
| VCC | 5V |
| GND | GND |
| TX | D3 |
| RX | D2 |
Library Installation
- Open the Arduino IDE
- Click Sketch then Include Library
- Select Manage Libraries
- Search for TFMini
- Install the SparkFun TFMini Plus library
Example Arduino Code
#include "SoftwareSerial.h"
#include "TFMini.h"
SoftwareSerial SerialTFMini(2, 3);
TFMini tfmini;
void setup() {
Serial.begin(115200);
SerialTFMini.begin(115200);
tfmini.begin(&SerialTFMini);
}
void loop() {
int distance = 0;
int strength = 0;
tfmini.getDistance(&distance, &strength);
if (distance > 0) {
Serial.print(distance);
Serial.print(" cm ");
Serial.print("strength ");
Serial.println(strength);
}
delay(100);
}
Technical Specifications
- Operating range from zero point one to twelve meters
- Distance resolution one centimeter
- Frame rate up to one hundred hertz
- Ambient light immunity suitable for outdoor environments
- Operating temperature from zero to sixty Celsius
- Light source infrared VCSEL
- Supply voltage five volts
- Average current consumption one hundred forty milliamps
- Peak current two hundred milliamps
- Communication level three point three volt TTL
- Communication interfaces UART and I2C
- Dimensions forty two by fifteen by sixteen millimeters
- Weight approximately five grams
Comparison with Infrared Distance Sensors
The TFMini S is a LiDAR based distance sensor that offers a longer range higher accuracy and faster response compared to traditional infrared proximity sensors. Infrared sensors are better suited for short range applications while the TFMini S is ideal for long range and real time distance measurement projects.
Features
- Measuring range up to twelve meters for long distance sensing
- High accuracy distance measurement for short and long ranges
- Distance resolution of one centimeter
- High frame rate up to one hundred hertz
- High ambient light immunity suitable for outdoor use
- Class one laser safety suitable for all environments
- Supports UART and I2C communication interfaces
- Compact size and lightweight design
- Low power consumption suitable for battery powered projects
Principle of Operation
The module emits an infrared laser pulse using a VCSEL light source. The laser beam reflects off a target object and returns to the receiver inside the module. A high precision timer measures the travel time of the laser pulse and calculates the distance using the speed of light. The measured distance data is transmitted through the UART or I2C interface.
Pinout

| Pin Number | Function | Wire Color |
|---|---|---|
| 1 | UART TX 3.3V TTL | Green |
| 2 | UART RX 3.3V TTL | White |
| 3 | Power 5V | Red |
| 4 | Ground | Black |
Applications
- Robotics obstacle detection and navigation
- Drones altitude control and landing assistance
- Industrial automation and distance monitoring
- Security and surveillance systems
- Traffic monitoring systems
- Agriculture crop and irrigation monitoring
- Motion detection and interactive systems
Circuit

| TFMini Pin | Arduino Pin |
|---|---|
| VCC | 5V |
| GND | GND |
| TX | D3 |
| RX | D2 |
Library Installation
- Open the Arduino IDE
- Click Sketch then Include Library
- Select Manage Libraries
- Search for TFMini
- Install the SparkFun TFMini Plus library
Example Arduino Code
#include "SoftwareSerial.h"
#include "TFMini.h"
SoftwareSerial SerialTFMini(2, 3);
TFMini tfmini;
void setup() {
Serial.begin(115200);
SerialTFMini.begin(115200);
tfmini.begin(&SerialTFMini);
}
void loop() {
int distance = 0;
int strength = 0;
tfmini.getDistance(&distance, &strength);
if (distance > 0) {
Serial.print(distance);
Serial.print(" cm ");
Serial.print("strength ");
Serial.println(strength);
}
delay(100);
}
Technical Specifications
- Operating range from zero point one to twelve meters
- Distance resolution one centimeter
- Frame rate up to one hundred hertz
- Ambient light immunity suitable for outdoor environments
- Operating temperature from zero to sixty Celsius
- Light source infrared VCSEL
- Supply voltage five volts
- Average current consumption one hundred forty milliamps
- Peak current two hundred milliamps
- Communication level three point three volt TTL
- Communication interfaces UART and I2C
- Dimensions forty two by fifteen by sixteen millimeters
- Weight approximately five grams
Comparison with Infrared Distance Sensors
The TFMini S is a LiDAR based distance sensor that offers a longer range higher accuracy and faster response compared to traditional infrared proximity sensors. Infrared sensors are better suited for short range applications while the TFMini S is ideal for long range and real time distance measurement projects.