I am building a measuring tool for school project and have found this tutorial
I am new to arduino this being my first project, and i have never worked with a I2C bus before.
I looked on videos on youtube, looked in the data sheet for the arduino, and gyroscope, and I have read a loot about how I2C works (I think i got how it works but there maybe something i still don't get)
I hooked the MPU ground to the arduino ground. the Vcc too the Vcc, and the SCL on the gyroscope to analog input 4, and the SDA to analog input 5.
So for using the code from the tutorial i can get a response from the arduino but it looks like this
It constantly shift between 2 different reads. (seen top and bottom of the picture). Fx the temperature would constantly shift every other read from 69 degrees to 75 degrees. (which was no way the right read)
At some point it would shift the numbers it changed between. the temperature started with 24 to 36 degrees, but the pattern was the same, a constant shift between to numbers.
This even continued after I unplugged all the wires, so the arduino was no longer in contact with the gyroscope, this makes me to believe the problem is around the sending/receiving code or I2C connection.
If anyone would like to help me or understand what i am missing from the tutorial/I2C setop i would realy like your help.
