Search code examples
raspberry-piaccelerometerstoring-data

Multiple accelerometers on a raspberry pi


I want to use 4 accelerometers in an experiment. I will be using a raspberry pi. How can I distinguish the data from each sensor?

This is the accelerometer I am using http://uk.rs-online.com/web/p/products/9054665/

There are 2 addresses... does this mean that only 2 accelerometers can be connected to the raspberry pi?


Solution

  • You are essentially correct with your assumption. You can only connect two of those to a single I2C bus because the address selection pin on the device gives you two I2C addresses to work with.

    To get over that you need to use some sort of bus multiplexing like I2C Multiplexer for the Raspberry Pi or choose different chip to have two more.

    That is the Multiplexer: https://www.tindie.com/products/land_boards/i2c-multiplexer-for-the-raspberry-pi-rpi-i2c-hub/?gclid=Cj0KCQjwtJzLBRC7ARIsAGMkOAnhjKFbSYeAyNId95C7TkhljkFLbamsbI0yzYC2Lta5JC1zexQsUnMaAm4MEALw_wcB