makerportal / tfluna-python

Python codes for TF-Luna LiDAR module that interface with a Raspberry Pi computer
21 stars 12 forks source link
lidar plot python-codes python-lidar python3 raspberry-pi tf-luna

TF-Luna LiDAR with Raspberry Pi

Python codes for configuring and reading the TF-Luna Light Detection And Ranging (LiDAR) module interfaced with a Raspberry Pi computer.

Tutorial: https://makersportal.com/blog/distance-detection-with-the-tf-luna-lidar-and-raspberry-pi

Buy a TF-Luna from our Store: https://makersportal.com/shop/tf-luna-lidar-module

#

- TF-Luna + Raspberry Pi Wiring -

The TF-Luna can be wired to the Raspberry Pi via the mini UART port:

TF-Luna RPi Wiring


- TF-Luna Ranging Test -

The script entitled 'tfluna_test_plot.py' outputs a plot similar to the following:

TF-Luna Ranging Test


- Real-Time Ranging Visualization -

The script entitled 'tfluna_test_realtime.py' outputs a real-time output of distance and signal strength, similar to the following:

TF-Luna Real-Time Ranging