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.2.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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vl6180x-multi-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4fa178bac4ce406c022b08e582fb84afd45f4fe84958c08492e7b5b4e01aca76
MD5 61fd58536254efd37c1c72264521b824
BLAKE2b-256 3b0fbc3c3d0b1485a8f5d222b125b05f024dcbc29a5930ca22c004e74e54ed32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vl6180x_multi-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f3eea9cadee455950edea1cf8e52565ab9af38be2288468560a148d50bec45d
MD5 b5899172e3feb9ec973503cea6e76834
BLAKE2b-256 1785beb9b2e1fb0b34928b1c5de6ff0147b44b2922d02eef05be9e3e82f93d07

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