Post Created date
Problem in reading data from MPU6050 using I2C protocol
christop wrote: Ah, I see there's an issue with signed values. Take the last sample: z1=58 z2=-120 Acc_z=-120 It looks like I2C_Read_Ack() returns data as a signed 8-bit value...
Tuesday, 17 July 2018 - 23:38
Problem in reading data from MPU6050 using I2C protocol
dbrion0606 wrote: I would rewrite : void Read_Accel_Values() { MPU_Start_Loc_Accel(); // Define the start address from where to read data (ACCEL_XOUT_H...
Tuesday, 17 July 2018 - 22:43
Problem in reading data from MPU6050 using I2C protocol
clawson wrote: dtostrf( data, intpart, floatpart, float_ ); sprintf(buffer,msg,float_);If I live to be a million I don't think I'll ever understand that. Why the...
Tuesday, 17 July 2018 - 17:16
Problem in reading data from MPU6050 using I2C protocol
awneil wrote: Try printing out the raw bytes as they come from the bus - instead of doing any processing within the AVR.   The problem remains even after printing just raw...
Tuesday, 17 July 2018 - 16:44
Problem in reading data from MPU6050 using I2C protocol
awneil wrote: So you have a known-working reference point, then.   Compare & contrast your code with that sketch to see where your code is going wrong ...   Indeed...
Tuesday, 17 July 2018 - 16:31
Problem in reading data from MPU6050 using I2C protocol
dbrion0606 wrote:   That -90 ° rotation around X or Y axis, swapping Y -resp X- and Z -  would be a way of knowing whether this failure is Z axis specific, or affects...
Tuesday, 17 July 2018 - 16:19
Problem in reading data from MPU6050 using I2C protocol
Indeed Z_axis is the vertical axis  But I don't think there is a cancellation  of gravity because I just kept the sensor on a table without touching it nor applying...
Tuesday, 17 July 2018 - 14:50
Problem in reading data from MPU6050 using I2C protocol
Hi again, I've made the changes you told me David on my code but the problem is still unsolved. I also included some debug outputs to my code.   Serial Debug Output :...
Tuesday, 17 July 2018 - 13:45
Problem in reading data from MPU6050 using I2C protocol
Thank you for your reply,  In fact the functions were returning I2C status but I thaught it would be more simple to understand my code if I remove those portions of...
Sunday, 15 July 2018 - 17:32