Code to read measurements from a Tf-Luna LiDAR sensor.
Project description
TF-Luna LiDAR Python Driver
The TF-Luna sensor is a LiDAR sensor, which can be read either with I2C or Serial.
This repository contains the code permitting to use the TF-Luna sensor with the serial interface.
This repository is a fork of tfluna-python, and is a rewrite of the driver to a class-based structure.
The new code is also more careful when it comes to handling the serial interface: this driver is indeed intended to be used (only) as a Python resource, i.e. as follows (more details in the example folder):
import tfluna
import timeout_decorator
with tfluna.TfLuna(baud_speed=115200, serial_name="/dev/serial0") as tfluna:
tfluna.get_version()
tfluna.set_samp_rate(10)
#tfluna.set_baudrate(57600) # can be used to change the baud_speed
distance,strength,temperature = tfluna.read_tfluna_data()
- TF-Luna + Raspberry Pi Wiring -
The TF-Luna can be wired to the Raspberry Pi via the mini UART port:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tfluna-driver-0.1.0.tar.gz.
File metadata
- Download URL: tfluna-driver-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b99c6be320a648e694c6f5bfead280167716b0d7a6b8d9857df2dac8d42da7a
|
|
| MD5 |
746b1b68ec9a7ccf03ba5d7dfe4e0753
|
|
| BLAKE2b-256 |
1720972da674fe18f1116c60929d7837bc3236b92f5d512fde218d33a43876df
|
File details
Details for the file tfluna_driver-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tfluna_driver-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7daa5649e3f2ecc5ee0b89ed46b83cf3e33ff63bc8d8f60a1ce0e8550a45372
|
|
| MD5 |
7a9e9e7acc820f3670073cb3995e0da7
|
|
| BLAKE2b-256 |
4f2afe10459fb057f8a975f998ef54f72d3a5d5155bdecf6f8d97730397b68cd
|