Skip to main content

Python SDK for the DEPZ USB sensor line — HC-SR04 ultrasonic, VL53L8CX/CH 8x8 ToF, BNO086 IMU.

Project description

depz-sensor-sdk

Python SDK for the DEPZ USB sensor line — four USB CDC-ACM sensors that speak one shared framed protocol:

  • HC-SR04 — ultrasonic distance
  • VL53L8CX — 8×8 multizone Time-of-Flight, the base ToF imager (host runs the ST ULD)
  • VL53L8CH — the VL53L8CX superset, adding Compact-Network-Histogram output
  • BNO086 — 9-axis IMU (host runs the SH-2 stack)

Sync API with a background reader thread: open a device, configure it, consume a stream of decoded, timestamped results. A TypeScript SDK (@depz/sensor-sdk) mirrors this one byte-for-byte via shared golden test vectors.

Install

pip install depz-sensor-sdk

Linux: your user needs serial access (group dialout); ModemManager can grab CDC-ACM ports — disable it or add a udev rule if opens time out.

Quick start

from depz_sensor_sdk import open_device
from depz_sensor_sdk.vl53l8 import Vl53l8Cx, RESOLUTION_8X8

dev = open_device()                    # first DEPZ sensor by USB id; raises if none
if isinstance(dev, Vl53l8Cx):
    dev.init(progress=print)           # ~25 s: downloads the sensor firmware
    dev.set_resolution(RESOLUTION_8X8)
    dev.set_ranging_frequency_hz(15)   # must be >= 2 Hz
    dev.start_ranging()
    for frame in dev.frames():
        print(frame.grid())            # 8×8 numpy array of mm

open_device() finds the device by USB VID/PID; pass a serial (open_device(serial="...")), an index, or an explicit port. depz-sensor list shows what's connected.

See docs/guide.md for the full guide and docs/api.md for the API reference.

License

MIT. Bundled VL53L8 sensor-firmware blobs are © STMicroelectronics (BSD-3-Clause); see NOTICE.

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

depz_sensor_sdk-0.1.1.tar.gz (241.1 kB view details)

Uploaded Source

Built Distribution

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

depz_sensor_sdk-0.1.1-py3-none-any.whl (229.4 kB view details)

Uploaded Python 3

File details

Details for the file depz_sensor_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: depz_sensor_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 241.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for depz_sensor_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b10e55bdae9a0915403fbbb90007ad9e9a9b806d485cb0537da5fe8528b6a7ac
MD5 8a977233b6daa9f137d0330677bf92c1
BLAKE2b-256 6e199499295b1e187212a041046dc102186af86787581169667b729b417865c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for depz_sensor_sdk-0.1.1.tar.gz:

Publisher: publish-pypi.yml on depz-ai/depz-sensor-sdk-and-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file depz_sensor_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: depz_sensor_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 229.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for depz_sensor_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a153ab5f70717fe120108edb0a4cec6bc601e02eb3e5b59db272c5736e62fd1f
MD5 92638fb65315e8c83704e45be2006a83
BLAKE2b-256 bc6ea9f53d1f85c622e0aa574fc87248c25c5afbb314b876305bd00b0348ff96

See more details on using hashes here.

Provenance

The following attestation bundles were made for depz_sensor_sdk-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on depz-ai/depz-sensor-sdk-and-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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