MPU6050
Posted: Wed Oct 11, 2023 7:23 am
Hi
Although flagged as v9 and example is written for v9 if opened in v10 it affects it too.
Basic chart simulating the MPU6050 component. It initialises then enters a loop. Inside the loop it samples the sensor then Gets all readings as both floating point and integer values.
Simulation speed = fast (with updates)
Temperature:
Component shows range of -40 to +80 and component display varies between -40 and +40
Floating point = 36.415xxx to 36.762xxx
Integer = constant 36
Gyro:
Component shows range of -250 to +250 and component display varies between -250 and +250
Floating point = -249.992xx to +249.992xx
Integer = -32766 to 32766
Above is for x/y/z with each axis returned to zero before next
Accelerometer:
Component shows range of -2 to +2 and component display varies between -2 and +2
Floating point = constant 0.0
Integer = -32766 to 32766
Above is for x/y/z with each axis returned to zero before next
As you can see there are issues in reading both temperature and Accelerometer "Real" values
Regards
Although flagged as v9 and example is written for v9 if opened in v10 it affects it too.
Basic chart simulating the MPU6050 component. It initialises then enters a loop. Inside the loop it samples the sensor then Gets all readings as both floating point and integer values.
Simulation speed = fast (with updates)
Temperature:
Component shows range of -40 to +80 and component display varies between -40 and +40
Floating point = 36.415xxx to 36.762xxx
Integer = constant 36
Gyro:
Component shows range of -250 to +250 and component display varies between -250 and +250
Floating point = -249.992xx to +249.992xx
Integer = -32766 to 32766
Above is for x/y/z with each axis returned to zero before next
Accelerometer:
Component shows range of -2 to +2 and component display varies between -2 and +2
Floating point = constant 0.0
Integer = -32766 to 32766
Above is for x/y/z with each axis returned to zero before next
As you can see there are issues in reading both temperature and Accelerometer "Real" values
Regards