I've just recently begun working with the Puck.js v2 board. I updated the firmware to "espruino_2v07" immediately after powering it up. I'm starting a project hoping to count revolutions on a rotating spindle with the Puck's onboard LSM6DS3TR-C. Two questions:
1) Is counting revolutions this way even possible (versus using a more traditional optical encoder or magnetic sensor approach)?
2) When I manually execute "Puck.accel();" in the command line repeatedly (without moving the sensor at all), I get a huge range of output. Why is "Puck.accel();" returning such a variation in values?
Sometimes I'll just get a dead response and have to cycle the power to fix:
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.
Hi Everybody,
I've just recently begun working with the Puck.js v2 board. I updated the firmware to "espruino_2v07" immediately after powering it up. I'm starting a project hoping to count revolutions on a rotating spindle with the Puck's onboard LSM6DS3TR-C. Two questions:
1) Is counting revolutions this way even possible (versus using a more traditional optical encoder or magnetic sensor approach)?
2) When I manually execute "Puck.accel();" in the command line repeatedly (without moving the sensor at all), I get a huge range of output. Why is "Puck.accel();" returning such a variation in values?
Sometimes I'll just get a dead response and have to cycle the power to fix:
And sometimes the gyro output seems totally random (without physically moving the Puck at all):
Thanks!