Tag: TF-Luna

1 articles found.

TF-Luna LiDAR Distance Sensor Library for Proteus V1.0

TF-Luna LiDAR Sensor Library for Proteus V1.0: the module with its STATUS panel and the Advance pop-up

Hello friends, I hope you all are doing great. Today, I am going to share the new TF-Luna LiDAR Distance Sensor Library for Proteus V1.0. The TF-Luna from Benewake is a tiny single-point LiDAR: it shines modulated infrared light at a target and measures the distance from the reflection, from 20 cm to 8 m, up to 250 times a second. Robots use it to avoid walls, drones to hold their height, and makers to measure a tank, a door or a parking space. Now you can test those projects in Proteus. Behind the part sits our own model, written from Benewake's manual. It has both interfaces - the UART with its 9-byte frames and its commands, and I2C with the register file and the data-ready pin - chosen by pin 5 at power-on, just like the real module. The signal strength falls with the distance and with a dark target, the module sends 0 when the signal is too weak, and close up it enters its dead zone. You move the target, pick a preset, sweep it, bring it closer, paint it black or put it on an edge. You get two devices: a Simple device with a live STATUS panel and an Advance device with a pop-up window and the test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a distance sensor is easy to fake: a number on a pin. We wanted more. Our TF-Luna speaks both of the real module's languages, frame by frame and register by register, so a sketch at the wrong baud rate, with the wrong pin 5, or one that trusts a reading of 0, fails exactly as it does with the real module. It took our team a ...