Skip to content

giuaig/py-adxl345

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-adxl345

Description

py-adxl345 is a Python driver for ADXL345 chips. ADXL345 chips are 3-axes digital accelerometers from Analog Devices that can communicate on serial protocols (3/4 wire SPI or 2-wire I2C).

This python driver allows to read 3D acceleration values and manage other ADXL345 functions (configuration, fifo, ...).

Requirements

  • Require python-smbus to use the I2C protocol
  • Require py-spidev to use the SPI protocol

Download

Either download the zip archive

Or clone it using git

git clone https://github.com/alexismeneses/py-adxl345

Install

Run the following two command

python setup.py build

sudo python setup.py install

Usage

You have to use either I2C protocol using adxl345.i2c.ADXL345 class (recommanded) or to use SPI protocol using adxl345.spi.ADXL345 (experimental).

You can find some code usage in sample

More information

Constructor website

License

Copyright © 2014, Alexis Meneses

This software is licensed under the MIT License (see LICENSE file).

About

Python driver for ADXL345 accelerometer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%