Been playing around with the Hannah and just getting a feel for it. I’m playing with the different components on the board, and was wondering what others are getting for some of the readings.
Accelerometer - X: 2-8, Y:249-255, Z:60-63. This is when sitting upright.
Temperature Sensor - 27 C. This seems a bit high, as I really don’t think it’s 80 F a house that is set to 72 F (and the thermostat reading 73 F). It does seem to be working since the reading does lower when placed near an AC vent.
Bear in mind that the accel is signed: I’m sure this is a nasty way of doing it but…
if (x>127) x=-(256-x);
if (y>127) y=-(256-y);
if (z>127) z=-(256-z);
…will get them into the right ballpark.
As the default accel mode is +/-2g, Z being 60-63 indicates a 1g acceleration in the Z axis. Without changing your code, if you invert the hannah Z should go to about 192 (or, with the code above, -64).
I’m not very trusting of the temp sensor, in my experience it appears to read a bit high too…