Anyone used ADXL345?I got a trouble in changing its address in I2C transmission.

Oh ....
According to the sheetdata, we can choose from its two addresses by changing the level of Pin SD0.
I have tried setting Pin SD0 high level and low level, while the address is 0x53 all the time.

:disappointed_relieved: It has been bothering me for several days ...

Thank you very much!!

Do you have a module with the ADXL345 ? which module ?

You can run the I2C scanner : http://playground.arduino.cc/Main/I2cScanner to check the I2C address.

The CS should be tied to 3.3V for I2C mode. The SDO can be tied to GND or 3.3V, not to 5V. I hope you didn't use 5V for it. Set those pins, turn on the power, and the I2C address should change.

Thanks for your answer!!!

CS has been tied to 3.3V.

But I have tried, the I2C scanner always showed that the address is 0x53...whether the SDO was tied to GND or 3.3V...

Then the ADXL345 is either defective, or you have incorrectly wired it.

I have 6 sensors here, all of them can’t change the address.

So maybe you are right I have incorrectly wired it.

While I have wired it just according to the datasheet.

Do you know what problems I’m possible to have?

Thanks very much!

UerRob:
maybe you are right I have incorrectly wired it.

While I have wired it just according to the datasheet.

Do you know what problems I'm possible to have?

Perhaps you could post a schematic of your setup, and a link to the datasheet.

Is this on a module? Have you the schematic for the module?

thank you !!
here’s the schematic

1.png

We need the module schematic. Where did you get the module?

I found the datasheet and a picture.

While I can’t understand the module schematic…
Maybe it’s in the datasheet.

Thanks for all above!!
I haven’t solved the troublesome problem… ohoh…

ADXL345.pdf (649 KB)

1.jpg

Anybody here?

It seems a challenging question .

:slight_smile:

We really do need the module schematic in order to be of any further help. The picture is not useful.
You might try contacting the module vendor regarding your questions.