javascriptnode.jslego-mindstorms

Javascript for lego Mindstorms


I've been assigned to a project aiming at programming Lego Mindstorms with JavaScript. However, I can't find many good resources regarding the use of JS with Mindstorms. Does anyone have any ?

Also, I don't really get how I can, for example, make the wheels turn using JS. From what I understood I need to use Node.js.


Solution

  • If you can use http://www.ev3dev.org/ as an alternative firmware, you can install and run node.js on the ev3. ev3dev is a debian linux based distribution and offers a wide range of packages.

    One catch you will be stuck a node.js-0.10, since newer node.js (0.12) versions use a newer version of v8 (js engine) and that does not support the old arm-9 that runs the ev3 anymore (or more precisely it now requires vfp-3 that only arm-v7 cpus have).