• Yes, it is possible to run Tensorflow on the Puck, but you'll have to build your own firmware.

    By default the Puck contains a networking stack so you can connect it to the internet with WiFi/GSM/etc and that uses up enough space that you can't have that and Tensorflow installed.

    But compiling your own firmware is pretty straightforward - use the instructions on https://github.com/espruino/Espruino then edit https://github.com/espruino/Espruino/blob/master/boards/PUCKJS.py and replace:

         'NET',
         'GRAPHICS',
         'CRYPTO','SHA256','SHA512',
         'AES',
    

    with

    'TENSORFLOW`'
    

    and you're good to go.

    Otherwise you could hard-code some gesture recognition by looking at the values in the accel event. Detecting big changes in acceleration in each axis (eg big +X to big -X) would be a good start I reckon.

    There's also the gyro, which could be good for detecting twistsing motion

About

Avatar for Gordon @Gordon started