Two Grove - ADXL345 - 3-Axis Digital Accelerometer (16g) on Arduino UNO R3

Im an absolute beginner at this stuff so bare with me.

Im trying to connect two Grove - ADXL345 - 3-Axis Digital Accelerometer(±16g) to my Arduino.

Can anyone assist me in doing this? I can access one via the 0x53 address/pin (Not sure if those are one and the same thing), but I cant seem to figure out how to connect the other one?

Also, is there a "best" library to use when interacting with them? There seems to be a few different options depending on where you are looking.

Which Arduino?

From the datasheet (https://www.analog.com/media/en/technical-documentation/data-sheets/adxl345.pdf)

  1. For SPI, you can connect the device's CS pin to a different pin of the Arduino. However, it seems that your device is using I2C.
  2. For I2C, you can choose from two different I2C addresses. From the schematic, the selection pin is hard wired to GND so you will need to do some surgery and pull that pin (12) high to get a different I2C address.

Regarding libraries, I would start with those on the product page that you linked. As I don't have the board, I have never had a need to look at libraries for it (or at the datasheet for that matter).

Schematic from Grove - 3 Axis Digital Accelerometer(±16g) | Seeed Studio Wiki

Such a stupid design. :open_mouth:
If you want to use this for SPI or change I2C address, surgery and soldering is needed. If that's not your "thing" either you need one accelometer from another brand, like adafruit, where you can change address. Or arduino board which has more than one I2C bus...

Or an I2C multiplexer.

Arduino Uno R3

Yeah, Grove has many of them, that's why they didn't put selector pad on this module... :wink:

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.