Pages: [1]   Go Down
Author Topic: For Help -> one Arduino to read several ADXL345s  (Read 389 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Recently I'm on a project that I need to read several ADXL345s . So how can I make it with just one microcontroller, such as uno or 2560 ?
Logged

Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

IIRC it's an I2C chip, so you can connect many on the same bus (on Arduino UNO i2c pins are A4 and A5, but please don't take my word for it, check the shematics).
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25859
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Without extra hardware, or software I2C, you can only have two of these connected at one time, because you have only two possible addresses.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you ~~
but…I'm just not very familiar with ADXL345, what do you mean by "2 addresses"?
I knew one is 0x53 (am I right?), and what is the other address?


or is there some Software IIC library that can be downloaded?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25859
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In I2C mode, the CE pin (chip enable) is the address select pin, and gives you one alternate address.
The other value will be in the data sheet.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for the advises~~~I'll learn more from the datasheet later
Logged

Pages: [1]   Go Up
Jump to: