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 — three USB CDC-ACM sensors that speak one shared framed protocol:
- HC-SR04 — ultrasonic distance
- VL53L8CX / VL53L8CH — 8×8 multizone Time-of-Flight (host runs the ST ULD)
- 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file depz_sensor_sdk-0.1.0.tar.gz.
File metadata
- Download URL: depz_sensor_sdk-0.1.0.tar.gz
- Upload date:
- Size: 238.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eda3c8a2ad2b6b102e772ff7334da805afb5e9342fd1a667d0544f6b07bd0688
|
|
| MD5 |
c5375ad1edd9ffa9628d70c0a97f2d4a
|
|
| BLAKE2b-256 |
bba4db768ec90a7b5b351f9ef64c244d9be4c3b0a2c3a86db81947b9c50fcbea
|
Provenance
The following attestation bundles were made for depz_sensor_sdk-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on depz-ai/depz-sensor-sdk-and-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
depz_sensor_sdk-0.1.0.tar.gz -
Subject digest:
eda3c8a2ad2b6b102e772ff7334da805afb5e9342fd1a667d0544f6b07bd0688 - Sigstore transparency entry: 2084608190
- Sigstore integration time:
-
Permalink:
depz-ai/depz-sensor-sdk-and-viewer@1e3d44bffc756c1cb765c6163fcd1ba42eb649ef -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/depz-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1e3d44bffc756c1cb765c6163fcd1ba42eb649ef -
Trigger Event:
push
-
Statement type:
File details
Details for the file depz_sensor_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: depz_sensor_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 228.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e798b6f62f028b083e3a7a9c88c700abeba4967f7a50fa7c48604353da5096c5
|
|
| MD5 |
d9858c2443528353747509fc60b2a12f
|
|
| BLAKE2b-256 |
f6d4073bad0329b496c762f95938ad5086bce36e93efdd96e3bf524cf97e8f72
|
Provenance
The following attestation bundles were made for depz_sensor_sdk-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on depz-ai/depz-sensor-sdk-and-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
depz_sensor_sdk-0.1.0-py3-none-any.whl -
Subject digest:
e798b6f62f028b083e3a7a9c88c700abeba4967f7a50fa7c48604353da5096c5 - Sigstore transparency entry: 2084608195
- Sigstore integration time:
-
Permalink:
depz-ai/depz-sensor-sdk-and-viewer@1e3d44bffc756c1cb765c6163fcd1ba42eb649ef -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/depz-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@1e3d44bffc756c1cb765c6163fcd1ba42eb649ef -
Trigger Event:
push
-
Statement type: