Driver for an inexpensive laser rangefinder module, made by AT, available on aliexpress.
Project description
Introduction
Driver for an inexpensive laser rangefinder module, made by Hi-AT, available on aliexpress
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.
Installing from PyPI
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install circuitpython-laser-at
To install system-wide (this may be required in some cases):
sudo pip3 install circuitpython-laser-at
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .venv
source .env/bin/activate
pip3 install circuitpython-laser-at
Installing to a Connected CircuitPython Device with Circup
Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:
pip3 install circup
With circup installed and your CircuitPython device connected use the following command to install:
circup install laser_at
Or the following command to update an existing version:
circup update
Usage Example
from board import UART
from laser_at import Laser
uart = UART()
uart.baudrate = 19200
laser = Laser(uart)
print(f"Distance is {laser.distance}")
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
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
File details
Details for the file circuitpython-laser-at-0.9.0.tar.gz
.
File metadata
- Download URL: circuitpython-laser-at-0.9.0.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29a3699775dd4cd02cb29b00192edc1d7366ac3dca9473dca361171515aa2a62 |
|
MD5 | 1ee0da36186c9cf528f9dd17e47900c0 |
|
BLAKE2b-256 | 3228d812f39f2841c63c92d4fc196f2f03248554e32499af1a3e8102ac5aa893 |
File details
Details for the file circuitpython_laser_at-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: circuitpython_laser_at-0.9.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c077047d23135cd83ea7aa2d3e8c59790e9d65040617ffc87245c495d940f2 |
|
MD5 | e80dc578b5070b010334fe163d773969 |
|
BLAKE2b-256 | 32a0d0747ba44c066e4a47511ef9e0b604aea78c35da857262f2e6d004a36634 |