SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By sflaggbme
#199124
I have project in which I’m trying to collect data from more than two accelerometers.

I have 10 MPU 6050 chips I’d love to use, but only seem to be able to set the LSB either high or low, ie allowing me to address only two.

I added a pair of MMA8452 chips in the same manner, but that only gives me 4 sensors.

I thought I had a way around it and ordered 2 MPU-9255 and 2 MPU-9250 chips, only to discover they are the same chips and use the same address as the MPU6050 chips.

So again, I’m stuck at 4 sensors. I’m using I2C, but I saw something about an SPI 4 wire interface, which maybe? can get me a manner to address a few more?

My problem is I just need to collect a few additional points in some manner, any suggestions as to how?

Thank you for any insight here.
By jremington
#199146
only seem to be able to set the LSB either high or low
That is all you need. Address all the sensors with the same address, but connect different port pins to each sensor's AD0 line to control high/low.

Make sure that only one of the sensors has the proper address at any one time, and only that one will be addressed. You will have to keep track of which sensor is being addressed, of course.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]