Hello Arduino community.
I am working on a university project using an MPU6050, I am currently reading values of the MPU6050 but now I want to add another to my project.
How would I go about doing this?
Thanks
Nathan
Hello Arduino community.
I am working on a university project using an MPU6050, I am currently reading values of the MPU6050 but now I want to add another to my project.
How would I go about doing this?
Thanks
Nathan
That has been discussed a number of times on this forum. Please use the search function.
Since this chip uses the I2C link, I suppose the MPU60 only uses a hard-wired address. But its description at Sparkfun talks about an auxiliary master I2C bus. You might examine that closely to see if you could force it to do your bidding. Also, I didn't see a specific enable pin labelled as such on the board, but perhaps one of the inputs would prevent it from responding to a command. Then you could wire up two of them, same address, but use two arduino pins to enable one or the other in turn.
A cheap and reliable way would be to add a ProMini to the circuit, just to process the second MPU60 on its own I2C bus and relay the info vis SW serial to the main processor. Prominis can be had for under $2.50, and the extra processor in the circuit might be useful for offloading other work from the main processor. I am working on a navigation system that got too big for one nano chip, so I added a promini. Helped a lot.
You can change the I2C address. Easily Changing I2C Address Of MPU6050 Accelerometer + Gyroscope - Sensors - Arduino Forum
Thank you both for your reply's, I have read many forums and web pages on how to do it, and all they seem to say is, set on mpu to ic2 address (0x68) and the other to (0x69) I have done this but I am unsure now of how the arduino will chose to read from one mpu then the other.
I will ckeck the link out now.
Thank you both for your help
have done this but I am unsure now of how the arduino will chose to read from one mpu then the other.
You program the Arduino to read one sensor, then the other.
Edit: Please read "How to use this forum" and post your code. Your question suggests that you do not understand the workings of the one you are using, so it is appropriate to ask questions about it.