Acceleration of Gravity Tilt Module for Arduino
#5
i bought two of those adxl345's from ebay
http://www.ebay.ca/itm/191674294902

i plugged into the i2c-1 connection on the pi bus, pins 3 and 5
it does work under linux (on both my pine64 and my CHIP)
i made this script read it:
https://github.com/jodybrown/adxl345/blo...adxl345.sh

it also works on arduino (used code from https://learn.adafruit.com/adxl345-digit...r/overview)

sadly, it does not seem to do anything under android, either in the hdmi image or the lcd image.
maybe it has to be connected to different pins or something. i notice in the code above it says TWI but i had it connected to I2C.
i did try to connect to 27/28 but that did nothing.

using i2cdetect nothing shows up for 0x1d, just 0x53...
  Reply


Messages In This Thread
RE: Acceleration of Gravity Tilt Module for Arduino - by jodybrown99 - 08-06-2016, 10:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RPi.GPIO python module for Pine A64/A64+ aquilegia 98 131,641 12-15-2022, 08:40 PM
Last Post: Fadazo
  Porting Arduino project advice primeminister 1 2,828 07-14-2016, 05:16 PM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)