Hello everyone, I am using multiple arduinos on the same rocket each with a single task as an experiment. 2 of the arduinos will require data from a mpu6050 accel/gyro sensor. I was thinking of using 2 separate sensors, but can’t I connect both arduinos to the same sensor since they both just need to get the same sensor value? Sorry if this is a dumb question, I’m still new to this and my understanding of sensor data may be wrong, but I feel like since the sensor just spits out these values and nothing else, different processors can take it in. Thanks!
It is time for you to look at networking. There are a lot of possibilities RS485, Ethernet, wi-fee, etc. Then depending on your protocol each unit can periodically place its sensor data on the buss. The reason for this is it allows you to work with each sensor, debug the software etc. If the bus gets longer then a few inches you are set to several thousand feet. This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil
While the I2C bus specification does allow for "multi master" operation so two Arduinos could talk to one sensor, the Arduino library doesn't allow it.
Either buy two sensors or program one Arduino to do both tasks.