• Right, I will continue coding, and update here. This project might split into a couple of branches, depending on usage. One is that I managed to fit the ellipse to a sphere on my laptop using python and numpy, which does everything one might need with accuracy.

    In order to be able to calibrate on the run, I wanted to have this implemented on the puck itself, so that it can calibrate itself. I ran into an issue, though, which is that I made it save some readings, and then some computations, and it ran out of memory. I figured I'd try running basically the same code on the banglejs2, sourcing the data directly from the puck via bluetooth, and this worked better. However, the code for either puck or banglejs2 is not finished, for lack of libraries, but I have started implementing a simple diagonalization procedure in javascript which won't depend on any libraries. I'd love to pack this up into an app available for the banglejs, as well as a library for the puck. I will maybe have some format related questions when it comes to that.

    In any case, this is part of a project I have been thinking about, which is to use the puck as a running footpod, and get (hopefully) an accurate speed. I hope to post some code on that soon. I might take the puck with me on a run and collect data, to see what calibration is needed out there, and work from there. I certainly shouldn't calibrate the magnetometer at home, since I have two big magnets sitting on my desk.

    Doing continuous calibration "on the run" like that would be great. This might be difficult while running, though, since the puck would for the most part have the same part facing up (given that I won't be doing somersaults on the way, or taking falls at regular intervals, let's hope).

About

Avatar for jeansnorth @jeansnorth started