Catalog PyPI
PACKAGE EXPLORERView in registry

adxl355

PyPI

Cross-platform ADXL355 accelerometer driver

accelerometeradxl355embeddedi2craspberry-pisensorspi
Versions collected1
Direct dependencies5From release 0.1.0a3
Last observed20 Oct, 20:07 UTC

README

Version 0.1.0a3 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.0a32 Aug 20265

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
oaslananka/adxl355

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7ad97daeb8b64e69e89ee3b2270c92f851accbd4c82dd05a82324b4f529c93a4