Skip to main content

Multiple VL6180X time of flight distance sensors on the same I2C bus.

Project description

Multiple VL6180X sensors on the same I2C bus

Introduction

This module allows operating several VL6180X Time Of Flight sensors on the same I2C bus. This is achieved by reallocating each sensor' address. The project is intended to run on RaspberryPi. Specifically, it was tested on RaspberryPi 4 with Python 3.7

Prerequisites

The example below is using Raspberry PI default I2C bus and two GPIOs to control two sensors:

Running the example

  1. Clone the repository:
git clone https://gitlab.com/vitus133/vl6180x_multi && cd vl6180x_multi
  1. Create and activate Python virtual environment, install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Install the package
pip install -e .
  1. Run the example
cd example/
python range.py

Project details


Download files

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

Source Distribution

vl6180x-multi-1.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vl6180x_multi-1.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file vl6180x-multi-1.0.1.tar.gz.

File metadata

  • Download URL: vl6180x-multi-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.3

File hashes

Hashes for vl6180x-multi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 312c9c6465fa4ca392876112f4d7a730c934f4d8ac111bdae988a846294155f1
MD5 ad5c264d876bd44b3963096e3cec3882
BLAKE2b-256 42becaa1397b2fbc0c2697a3776cf70d0125338bd718d01f435bc99868e0c3a4

See more details on using hashes here.

File details

Details for the file vl6180x_multi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: vl6180x_multi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.3

File hashes

Hashes for vl6180x_multi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc47790c7a9eb1073bb79f8fe206b70cf32ebaa16c6547b259fd2b7b18addf7e
MD5 e9717059d6218d0f3c934064bac9e357
BLAKE2b-256 6b44376f0dab49d8a146764afc1b2331555bd1bda1d870513435b44bef682341

See more details on using hashes here.

Supported by

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