1. Introduktion
This manual provides comprehensive instructions for the proper use, setup, operation, and maintenance of the MakerHawk TOFSense-F2 Lidar Sensor. Please read this manual thoroughly before operating the device to ensure optimal performance and safety.
2. Produktet er slutview
2.1 Nøglefunktioner
- Højpræcisionsmåling: Offers a range of 0.05-25m with an accuracy of ±3.0cm.
- Hurtig opdateringshastighed: 100Hz refresh frequency for dynamic environments.
- Kompakt og let: Weighs 7.5g, dimensions 22.7 x 28 x 13.6mm.
- Versatile Communication Interfaces: Supports UART, IIC, and I/O.
- Robust Interference Resistance: Designed with anti-interference algorithms and optimized optics for stable performance in challenging conditions (ambient light, dust, fog).
2.2 Inkluderede komponenter
- TOFSense-F2 Lidar Sensor Ranging Module
- Connection Cable (4-wire JST style 1.25mm connector, 20cm)

Figure 1: TOFSense-F2 Lidar Sensor and included connection cable. The sensor is a compact black module with an optical lens, and a 4-wire cable is shown below it.
3. Specifikationer
| Parameter | Værdi |
|---|---|
| Modelnummer | TOFSense-F2 |
| Måleområde | 0.05 - 25 meter |
| Nøjagtighed | ±3.0 cm |
| Opdateringsfrekvens | 100 Hz |
| Felt af View (FOV) | 1-2 grader |
| Strømforbrug | 250 mW |
| Anti-Glare Capability | Up to 100Klux |
| Dimensioner (L x B x H) | 22.7 x 28 x 13.6 mm |
| Vægt | 7.5 g (sensor only), 12.3 g (item weight including cable) |
| Kommunikationsgrænseflader | UART, IIC, I/O |
| Connector Type | Plug-In (4-wire JST 1.25mm) |

Figure 2: Visual representation of key TOFSense-F2 specifications including accuracy, range, power consumption, refresh rate, FOV, and anti-glare.

Figure 3: The TOFSense-F2 sensor held between two fingers, illustrating its compact size and lightweight design. Dimensions are shown as 22.7mm x 28mm x 13.6mm.
4. Opsætning og tilslutning
4.1 Pin-definition
The TOFSense-F2 module uses a 4-pin connector for power and communication. Refer to the table below for pin definitions:
| Pin nummer | Definition |
|---|---|
| PIN-kode 1 | UART_TX / IIC_SCL / IO_L |
| PIN-kode 2 | UART_RX / IIC_SDA / IO_H |
| PIN-kode 3 | GND (jord) |
| PIN-kode 4 | VCC (strømforsyning) |

Figure 4: The connector port of the TOFSense-F2 sensor, showing the 4 pins and their corresponding functions for UART, I2C, and I/O communication.
4.2 Tilslutning til en værtsenhed
Connect the TOFSense-F2 sensor to your host device (e.g., Arduino, Raspberry Pi, Pixhawk) using the provided 4-wire cable according to the pin definitions. Ensure correct voltage supply (VCC) and ground (GND) connections to prevent damage.
- UART-forbindelse: Connect PIN 1 (TX) to the host's RX, and PIN 2 (RX) to the host's TX.
- IIC (I2C) Connection: Connect PIN 1 (SCL) to the host's SCL, and PIN 2 (SDA) to the host's SDA.
- I/O-forbindelse: Use PIN 1 (IO_L) and PIN 2 (IO_H) for digital input/output as required by your application.
Caution: Incorrect wiring can damage the sensor or the host device. Always verify pin assignments before applying power.
5. Betjeningsvejledning
5.1 Distance Measurement Principle
The TOFSense-F2 operates on the Time-of-Flight (ToF) principle. It emits a light pulse and measures the time it takes for the pulse to travel to an object and reflect back to the sensor. This time difference is then used to calculate the distance to the object.

Figure 5: Diagram illustrating the Time-of-Flight (ToF) distance measurement principle. An emitted light pulse travels from the sensor to an object, reflects, and returns to the sensor, allowing distance calculation.
5.2 Kommunikationsprotokoller
The sensor supports UART, IIC, and I/O communication. Detailed protocol specifications and example code for integration with common platforms (e.g., Arduino, Raspberry Pi, Pixhawk) can typically be found on the manufacturer's website or relevant open-source communities (e.g., Ardupilot.org for Pixhawk).
- UART: Standard serial communication. Configure baud rate, data bits, parity, and stop bits as per sensor documentation.
- IIC (I2C): Two-wire serial interface. The default I2C address is 0x08.
- I/O: For simple digital signaling or control.
5.3 Miljøhensyn
The TOFSense-F2 is designed with robust anti-interference capabilities, including resistance to ambient light (up to 100Klux), dust, and fog. However, extreme conditions may still affect performance. Ensure the optical lens is clear and unobstructed for accurate readings.

Figure 6: Illustration highlighting the TOFSense-F2's robust anti-interference features, including anti-glare, dust-proof, and anti-fog capabilities, ensuring stable operation in challenging environments.
6. Ansøgninger
The TOFSense-F2 Lidar Sensor is suitable for a wide range of applications due to its precision, speed, and compact design:
- Drone Altitude Hold: Precise height measurement for stable flight.
- Robot Obstacle Avoidance: Detecting objects in the path of autonomous robots.
- Stacking Detection: Monitoring material levels in industrial settings.
- Personnel Detection: Presence sensing in smart traffic systems or security.
- Smart Traffic Systems: Vehicle detection and traffic flow monitoring.
- Intelligent Gesture Control: Non-contact interaction.

Figure 7: Collage of images depicting various applications for the TOFSense-F2 sensor, including drone altitude hold, robot obstacle avoidance, stacking detection, personnel detection, smart traffic systems, and intelligent gesture control.
7. Fejlfinding
- No Readings / Inaccurate Readings:
- Check all wiring connections for proper pin assignment and secure contact.
- Ensure the sensor lens is clean and free from dust or obstructions.
- Bekræft strømforsyningen voltage er inden for det angivne driftsområde.
- Confirm communication protocol settings (baud rate for UART, I2C address for IIC) match the sensor's configuration.
- Test in different lighting conditions to rule out extreme ambient light interference, although the sensor has high resistance.
- Sensor Not Detected by Host:
- Double-check power and ground connections.
- Ensure the correct communication interface (UART/IIC) is selected and configured on both the sensor and the host.
- For I2C, confirm the address (0x08 default) is not conflicting with other devices on the bus.
- Intermitterende læsninger:
- Tjek for løse forbindelser eller beskadigede kabler.
- Ensure the target object is within the specified measurement range (0.05-25m).
- Minimize vibrations or rapid movements of the sensor or target if not accounted for in the application logic.
8. Vedligeholdelse
- Rensning: Regularly inspect the optical lens for dust, dirt, or smudges. Clean gently with a soft, lint-free cloth. Avoid abrasive materials or harsh chemicals.
- Opbevaring: Store the sensor in a dry, dust-free environment when not in use.
- Håndtering: Handle the sensor with care to avoid physical damage. Do not expose to excessive force, extreme temperatures, or moisture.
- Firmwareopdateringer: Tjek producentens website for any available firmware updates that may improve performance or add features. Follow update instructions carefully.