Acceleration of Gravity Tilt Module for Arduino
#3
i think that sensor might actually work...
that device tree says for gsensor:
gsensor_twi_addr = <0x0000001d>;

and the datasheet for the ADXL345 says

Quote:I2C

With CS tied high to VDD I/O, the ADXL345 is in I2C mode, requiring a simple 2-wire connection as shown in . The ADXL345 conforms to the UM10204 I2C-Bus Specification and User Manual, Rev. 03—19 June 2007, available from NXP Semiconductor. It supports standard (100 kHz) and fast (400 kHz) data transfer modes if the timing parameters given in and are met. Single- or multiple-byte reads/writes are supported, as shown in . With the SDO/ALT ADDRESS pin high, the 7-bit I2C address for the device is 0x1D, followed by the R/Figure 8Table 11Figure 10Figure 9W bit. This translates to 0x3A for a write and 0x3B for a read. An alternate I2C address of 0x53 (followed by the R/W bit) can be chosen by grounding the SDO/ALT ADDRESS pin (Pin 12). This translates to 0xA6 for a write and 0xA7 for a read.
notice the address 0x1D part.
if you get one, let us know if it works.
  Reply


Messages In This Thread
RE: Acceleration of Gravity Tilt Module for Arduino - by jodybrown99 - 07-13-2016, 06:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RPi.GPIO python module for Pine A64/A64+ aquilegia 97 134,672 02-23-2022, 02:56 PM
Last Post: ncs
  Porting Arduino project advice primeminister 1 2,890 07-14-2016, 05:16 PM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)