A Python3 library for accessing ADXL345 accelerometer using i2C on the Raspberry Pi
Assuming that the address of ADXL345 accelerometer is 0x53, you can access data with:
>>> from PyADXL345 import PyADXL345
>>> adxl345 = PyADXL345.ADXL345()
>>> adxl345.enableAll()
>>> axes = adxl345.readRaw()
sudo apt-get install python3-smbus
sudo python3 setup.py install
- Read from axes in RAW data, in G, in m/s^2, low pass filtered, rounded
- Activity/Inactivity/Single Tap/Double Tap/Free Falling
- Get Activity and Tap axis input source
- Pitch & Roll
- Calibration
- FIFO
See LICENSE
See CHANGELOG
Please report any issues or bugs here: https://github.com/giuaig/PyADXL345