Hi every one I'm new to the forum and this is my first post :
I'm trying to get accelerometer data from MPU6050 module using I2C protocol
So I've built my own functions using avr-C programming to print data on Serial monitor
but when I'm reading data the read data of the accelerometer Z-axis output oscillates between 0.9x and 0.xx without I make any movement to the sensor (the sensor is placed on a table without any external forces)
I've attached to this post my code.
Any help will be so appreciated
PS: The problem isn't hardware related because I've tested another code using arduino IDE and it was working fine.