I am building a simple "Tiltometer" for a cycling project.
I have it all working and my MPU 6050 data gets stored to my SD card OK.
But then I want to add a Time & Date from a Tiny RTC and I have the issue of the address conflict.
If I put the ADO line on the MPU6050 to 3.3v high an I2C scan then (as expected) shows 3 addresses (2 from the RTC and the revised/alternate address of the MPU, but my data logging script says no MPU6050 present (because the MPU6050.h is looking in the wrong place/address??)
If I revert everything the Data logging app has no trouble accessing the MPU and storing on the SD card.
I am a novice so please bear with me.
How do I get the MPU6050 handler to use the alternate address to find the MPU chip when I lock ADO high?
Al help gratefully received. But in any responses please pretend you are talking to an idiot, because when it comes to this stuff...you are.
The code probably assumes the default I2C address, so you will have to find out where that value is stored, and change or override it. Forum members can help if you post the code, using code tags, and post a link to the MPU-6050 library you are using (there are many).
Some libraries have a begin() method that allows you to set the I2C address, but there are other possibilities.
The "link below" is the begin of the text of that link. The new Arduino forum has a number of those tricks, and not all of them are clear. Click on the green text, then continue to click to the real tutorial.
OK, sorry folks I have fixed it. I found the address definition in the *.h file and changed it there.
All working. Happy Bunny. Sorry to have troubled you. Many thanks.
We already knew what was going on. In the very first reply, jremington said welcome in the first sentence and in the second sentence he told how to solve the problem.
Since we don't know what you have or which library or sketch you use, we wanted to get a grip on it in case you could not solve it.