Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davmoz/tf-luna-micropython
A simple micropython i2c library for TF-Luna LiDAR Module.
https://github.com/davmoz/tf-luna-micropython
benewake distance-sensor i2c lidar micropython pycom
Last synced: about 2 months ago
JSON representation
A simple micropython i2c library for TF-Luna LiDAR Module.
- Host: GitHub
- URL: https://github.com/davmoz/tf-luna-micropython
- Owner: davmoz
- Created: 2021-03-28T00:02:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-13T08:56:40.000Z (over 3 years ago)
- Last Synced: 2024-04-22T12:36:05.617Z (9 months ago)
- Topics: benewake, distance-sensor, i2c, lidar, micropython, pycom
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 10
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-micropython - tf-luna-micropython - A simple MicroPython I2C library for TF-Luna LiDAR Module. (Libraries / Sensors)
README
# tf-luna
A simple micropython i2c library for TF-Luna LiDAR Module.**Repo-status**: See [Implemented functions](#implemented-functions)
## Getting started
To enable i2c, connect pin 5 to GND, see [Datasheet](https://www.robotshop.com/media/files/content/b/ben/pdf/tf-luna-8m-lidar-distance-sensor-instructions-manual.pdf)
To run main.py, connect RXD/SDA to P7 and TXD/SCL to P8
| Pin & Function | Description |
| --------------------- | ------------------ |
| 1 VCC | Vin (5V) |
| 2 RXD/SDA | Receiving/Data |
| 3 TXD/SCL | Transmitting/Clock |
| 4 GND | GND |
| 5 Configuration Input | Ground: I2C mode
/3.3V: Serial port
Communications mode |
| 6 Multiplexing output | Default: on/off mode output
I2C mode: Data availability
signal on but not switching value mode |## Implemented functions
* Distance
* Chip temperature
* Signal Amplitude
* Set Min/Max range
* Reboot
* Reset to factory defaults
* Change sampling rate / freq## To-Do
* Trigger mode
* Change slave address
* Tick
* Error
* UART