Collision avoidance with Lidar implementation with the TFMini Plus or TFMini-S as with sensors use for collision detection Lidars are more precise in measurement and less on false positives unlike the Ultrasonics hence is ideal for longer range detection with this one upto 10m . also this LIDAR sensor uses 3V logic and require Logic converters to operate there are 2Ch and 4Ch Bidirectional Option . in this sample we shown using the 4Ch. but if available go with the 2ch option.
Note: there are instructables online showing the LIDAR Directly hookup to the Arduino (Please use the Logic converter) plugging it directly would damage the sensor in the long run.
RX-10 ,TX-9 use Logic converter // TX-Green-3A RX-White-3B// 5A-D9 5B-D10
Lidar PWM Activation D4 is your Lidar switch Aux input 1000ms RC PWM is Off and 2000mm RC PWM is On, LIDAR switch this can be paired with your Aux switch lets say missions so the LIDAR is only Active when Mission is Active.
PWM Stop Aux D3 Trigger detection this can be connected to one of the free aux channels ie (Mainly puts the vehicle on Position hold or do other action when obstacle is detected at the given range )
PWM Steer Aux D7 Trigger detection this can be utilize as steering as it can be set points towards or away from the direction of Lidar
ADC D11 D12 D13 this serves as an ADC input and can be utilize on the Logic programing of Synerduino STM or blink some LEDs
Firmware hex file and hex uploader
supports 328P boards Nano and Promini
Synerduino Lidar Sketch for Processing .org and Arduino