It's very cool that you managed to use the magnetometer to detect flipping the Puck over.
I've got one here that I screwed to a piece of wood (with a screw right in the middle of the case), and then I hid a magnet in the wood. You can then use the magnetometer with Math.atan2 to actually get a rotation value as you turn it - not sure if that'd be useful here?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Nice - thanks for posting it up!
It's very cool that you managed to use the magnetometer to detect flipping the Puck over.
I've got one here that I screwed to a piece of wood (with a screw right in the middle of the case), and then I hid a magnet in the wood. You can then use the magnetometer with
Math.atan2
to actually get a rotation value as you turn it - not sure if that'd be useful here?