Skip to main content

vl53l1x distance sensor driver for Raspberry Pi

Project description

vl53l1x-python

Python library for the VL53L1X Laser Ranger.

Installing

sudo pip install smbus2
sudo pip install vl53l1x

Usage

import VL53L1X

tof = VL53L1X.VL53L1X(i2c_bus=1, i2c_address=0x29)
tof.open() # Initialise the i2c bus and configure the sensor
tof.start_ranging(1) # Start ranging, 1 = Short Range, 2 = Medium Range, 3 = Long Range
distance_in_mm = tof.get_distance() # Grab the range in mm
tof.stop_ranging() # Stop ranging

See examples for more advanced usage.

0.0.3

  • Fix: Use i2c_bus param for use with alternate buses/soft i2c

0.0.2

  • Improved search for .so file to pick up arch-specific files

0.0.1

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

VL53L1X-0.0.3-cp37-cp37m-linux_armv7l.whl (144.8 kB view details)

Uploaded CPython 3.7m

VL53L1X-0.0.3-cp35-cp35m-linux_armv7l.whl (144.8 kB view details)

Uploaded CPython 3.5m

VL53L1X-0.0.3-cp27-cp27mu-linux_armv7l.whl (144.6 kB view details)

Uploaded CPython 2.7mu

File details

Details for the file VL53L1X-0.0.3-cp37-cp37m-linux_armv7l.whl.

File metadata

  • Download URL: VL53L1X-0.0.3-cp37-cp37m-linux_armv7l.whl
  • Upload date:
  • Size: 144.8 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for VL53L1X-0.0.3-cp37-cp37m-linux_armv7l.whl
Algorithm Hash digest
SHA256 6502f37a2d238e0af1d34298dba1e2da3efc4f2be255f456d7e200726f8fba28
MD5 325aeef8d6276ce8447abdf3462d1f14
BLAKE2b-256 acbdb7fffdd49d238b4d8ceb45c37de48d8c8ee12e4ea0a0798363ff8167a02e

See more details on using hashes here.

File details

Details for the file VL53L1X-0.0.3-cp35-cp35m-linux_armv7l.whl.

File metadata

  • Download URL: VL53L1X-0.0.3-cp35-cp35m-linux_armv7l.whl
  • Upload date:
  • Size: 144.8 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for VL53L1X-0.0.3-cp35-cp35m-linux_armv7l.whl
Algorithm Hash digest
SHA256 d2c207173549ec2932f8aeceb5b3f91d724106ed79ea0b524289568f7e69a52a
MD5 fd2516e44c9cb7d237c8c3c8a2491f68
BLAKE2b-256 f3a3c0fbc6e1bab594363aedc63a67692d6031c822faf14bcbb6344ecb239c81

See more details on using hashes here.

File details

Details for the file VL53L1X-0.0.3-cp27-cp27mu-linux_armv7l.whl.

File metadata

  • Download URL: VL53L1X-0.0.3-cp27-cp27mu-linux_armv7l.whl
  • Upload date:
  • Size: 144.6 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16

File hashes

Hashes for VL53L1X-0.0.3-cp27-cp27mu-linux_armv7l.whl
Algorithm Hash digest
SHA256 0e131e9fddfd91118a9ca62cf6da531b8e7200efa99763b9bd40f1613c2a30ce
MD5 2f0f8fe10a12a62c04a0e081ac1f2240
BLAKE2b-256 4944163be2d27ce451c79ff5259152e2f285d7041c3832eb1389c0ad5d3ff61b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page