monteslu / node-red-contrib-gpio

A set of node-red nodes for connecting to johnny-five IO Plugins
MIT License
41 stars 31 forks source link

temperature figure is wrong #13

Closed gotititu closed 8 years ago

gotititu commented 8 years ago

Hey there,

Got my hand on Rpi 3 and MPU6050, my first ever Rpi. I am Pretty new to nodejs, node-red. Came across your flow and successfully deployed (took whole day).

Just a small glitch I am facing, temperature figure are not right

9/4/2016, 3:09:05 PMe3ff4517.253528msg.payload : Object{ "accelerometer": { "x": -10660, "y": -12160, "z": 88 }, "temperature": -2416, "gyro": { "x": -201, "y": 204, "z": -244 } }

Great Work. Thanks

gotititu commented 8 years ago

Sorry my bad, I should have read the data sheet. Need to divide by 340 and then add 36.53 for degree celsius