I am currently having some trouble with an Arduino project. These are the sensors/hardware that I am using:
mpu6050 breakout board (https://www.sparkfun.com/products/11028)
sensorstick 9dof breakout board (https://www.sparkfun.com/products/10724)
Flexiforce pressure sensor-just in analog pin
16 channel multiplexer (https://www.sparkfun.com/products/9056)
What I want to do is read raw data from these sensors simultaneously (or close to). I have been able to read data off of each sensor individually and I have been able to read data off of them all at once but not consistently. I know this is probably something to do with my multiplexer or arduino code. The biggest problem now is that I am able to only read data from one mpu6050 as they both share the same address. The address is hard wired so I don’t want to change the address which would require desoldering and soldering (I’m not very skilled with soldering!). I will eventually be using 5 mpu6050 sensors so I cannot just set one high one low and put them on sda,scl and sda1,scl1. I would really really appreciate any help on the subject. My code is attached.
Thank you in advance for any help!
mpu6050_sensorstick_flexiforce.ino (8.25 KB)