Skip to content

twyatt/pi-adxl345

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Breakout Board

Screenshot

Screenshot

Instructions

Schematic

ADXL345 Schematic

Computer

  • Compile project
    • OS X/Linux: $ ./gradlew distZip
    • Windows gradlew.bat distZip
  • ZIP file will be located in build/distributions
  • Copy pi-adxl345.zip to your Raspberry Pi

Raspberry Pi

$ unzip pi-adxl345.zip
$ cd pi-adxl345
$ sudo bin/pi-adxl345

Troubleshooting

You can install i2c-tools by running:

$ sudo apt-get install i2c-tools

Then, confirm that your ADXL345 is recognized by running:

$ sudo i2cdetect -y 1

You should get an output similar to:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- 53 -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

About

Simple Java application to interface with the ADXL345 accelerometer breakout on a Raspberry Pi over I²C using Pi4J.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages