The TFMini is a ToF (Time of Flight) LiDAR sensor capable of measuring the distance to an object as close as 30 centimeters and as far as 12 meters! As with all LiDAR sensors, your effective detection distance will vary depending on lighting conditions and the reflectivity of your target object, but what makes this sensor special is its size. Measuring only 42x15x16mm, the TFMini allows you to integrate LiDAR into applications traditionally reserved for smaller sensors such as the SHARP GP-series infrared rangefinders. Because this sensor is now I2C connecting multiple sensors is now possible. Over 100 sensors can be connected but note that each sensor will require approximately 800mA so size your power supply accordingly.
This version of the TFMini is even easier to use thanks to the addition of the included Boost Board making this micro LiDAR Module capable of connecting to SparkFun's Qwiic Connect system! The TFMini comes with a cable that connects the LiDAR module to the boost board and another that connects them to the Qwiic system. If you are looking to use a breadboard with your TFMini we recommend picking up a Qwiic Adapter to hook you up.
If a board needs code or communicates somehow, you're going to need to know how to program or interface with it. The programming skill is all about communication and code.
Skill Level: Competent - The toolchain for programming is a bit more complex and will examples may not be explicitly provided for you. You will be required to have a fundamental knowledge of programming and be required to provide your own code. You may need to modify existing libraries or code to work with your specific hardware. Sensor and hardware interfaces will be SPI or I2C.
See all skill levels
If it requires power, you need to know how much, what all the pins do, and how to hook it up. You may need to reference datasheets, schematics, and know the ins and outs of electronics.
Skill Level: Competent - You will be required to reference a datasheet or schematic to know how to use a component. Your knowledge of a datasheet will only require basic features like power requirements, pinouts, or communications type. Also, you may need a power supply that?s greater than 12V or more than 1A worth of current.
See all skill levels
Based on 2 ratings:
While testing the LiDAR would go into an error condition (returns only 0xfffe, or 0xfffd) and not recover until after a power reset. I added code to send a reset to the LiDAR if an error was detected but that didn't work. I am still playing with it and there may be a solution I have not discovered yet. Also, in the sample code if byte 0 of the LiDAR data is zero then it is an error. I think this is wrong because the LiDAR is sending the data of its previous frame due to it being busy on the current frame. Due to the difference in frame rate and polling rate this will occur quite often but the data is valid unless distance data contains an error code.
The readings are inconsistent, even sitting still, there is no data available 50% of the time even if just polling 2/sec. When this occurs it is returning previous data. The accuracy of the data is off consistently, for lidar I would expect better but is conststently off by several centimeters meaning this couldnt be used for piloting in large rooms.
Data valid: mode:3 strength: 1102 Distance: 170cm 66.9290in Data: 10AA09803 complete Data valid: mode:3 strength: 1102 Distance: 170cm 66.9290in Data: 00A909803 previous data Data: 004209323 previous data Data: 10420B023 complete Data valid: mode:3 strength: 10223 Distance: 66cm 25.9842in Data: 10420D223 complete Data valid: mode:3 strength: 10342 Distance: 66cm 25.9842in Data: 101E09500 complete Data valid: mode:0 strength: 1044 Distance: 30cm 11.8110in Data: 001F09500 previous data Data: 001F09500 previous data Data: 001F09200 previous data Data: 10AA09803 complete Data valid: mode:3 strength: 1102 Distance: 170cm 66.9290in Data: 10A909803 complete Data valid: mode:3 strength: 1102 Distance: 169cm 66.5353in