Go Down

Topic: Anyone used ADXL345?I got a trouble in changing its address in I2C transmission. (Read 389 times) previous topic - next topic

UerRob


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.

:smiley-sad-blue:  It has been bothering me for several days ...

Thank you very much!!

Peter_n

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.
If you are waiting for me to reply, send me a Personal Message. I missed a few new posts.

UerRob

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...


jremington

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

UerRob

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!

JimboZA

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.
No PMs for help please.
Arduino with e'net at http://jimboza.gotdns.com:8085/
DO NOT power servos from Arduino 5V: give them their own power and connect the grounds.

MarkT

[ I won't respond to messages, use the forum please ]

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy