Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ADXL355 Python Driver

Typed, transport-agnostic Python 3.10+ support for the Analog Devices ADXL355.

from adxl355 import ADXL355, PowerMode, Range
from adxl355.testing import MockTransport

transport = MockTransport()
transport.set_identity_ok()
device = ADXL355(transport)
device.probe()
device.set_range(Range.G2)
device.set_power_mode(PowerMode.MEASUREMENT)
print(device.read_acceleration_g())

Install optional Linux adapters with adxl355[spi] or adxl355[i2c]. See the repository root documentation for lifecycle, hardware wiring, and cross-language behavior details.

Hardware offset calibration

from adxl355 import ADXL355, Axis, calculate_offset

current = device.read_offset(Axis.X)
offset = calculate_offset(measured_raw=1200, expected_raw=0, current_offset=current)
device.write_offset(Axis.X, offset)
print(device.read_offset(Axis.X))

One offset count equals 16 raw acceleration LSB. Writes are volatile, require a successful probe, enter standby when necessary, and restore the prior power mode. See ../docs/calibration.md for orientation, sampling, temperature, rollback, and accuracy limitations.

Electrostatic self-test response

from adxl355 import ADXL355, SelfTestConfig

result = device.run_self_test(SelfTestConfig(sample_count=64, settle_samples=8))
print(result.abs_delta_g)

The sequence measures an ST1-only baseline followed by ST1+ST2 stimulation using bounded DATA_RDY polling. The driver temporarily uses ±2 g and 125 Hz, then restores SELF_TEST, RANGE, FILTER, POWER_CTL, and the cached range. Default configuration reports the measured response without inventing normative pass/fail limits. Applications may provide fixture-specific thresholds when they own and document that policy.

Download files

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

Source Distribution

adxl355-0.1.0a3.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

adxl355-0.1.0a3-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file adxl355-0.1.0a3.tar.gz.

File metadata

  • Download URL: adxl355-0.1.0a3.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for adxl355-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 99db8bc6f4b1eb9dc19d4d48e79f6f2318c3e598c3fa8a2e4f129644e7453eed
MD5 8d7d067e3451648fc3d74870bbd22d82
BLAKE2b-256 e42477d4f86b3ec925bf9149d0682217e7e303f13ce479d68150c7fb06f0942b

See more details on using hashes here.

Provenance

The following attestation bundles were made for adxl355-0.1.0a3.tar.gz:

Publisher: release.yml on oaslananka/adxl355

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

File details

Details for the file adxl355-0.1.0a3-py3-none-any.whl.

File metadata

  • Download URL: adxl355-0.1.0a3-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for adxl355-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 dad7a169bf50fd2b93484a5fbc7b9691a75a4b4c77ec9e3b6fc80969b7a828e4
MD5 9ea866e18b6b465a5fc6bd22803d5275
BLAKE2b-256 dc5249631f375890441002b118711972a192a4c0f7aff2ad5255746bad236d7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for adxl355-0.1.0a3-py3-none-any.whl:

Publisher: release.yml on oaslananka/adxl355

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

Release history Release notifications | RSS feed

This release

0.1.0a3 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page