imroun1992 Posted November 9, 2013 Report Share Posted November 9, 2013 Hello, I'm using MPU6050 Sensor, i want to read out temperature from the mpu6050 but i can't read correctly temperature values. when i acquired temp_h and temp_l. temperature = (temp_h << 8) | temp_l; how to convert into degrees Celsius thank u Quote Link to comment Share on other sites More sharing options...
luisrodenas Posted December 17, 2013 Report Share Posted December 17, 2013 I am sure you have solved it by now. Anyway it is mentioned in the datasheet. You have to divide the temperature reading by 340 and then add +36.53. The result is Celsius. Care because your variable has to be a float, etc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.