Javascript for lego Mindstorms

8.1k views Asked by At

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.

3

There are 3 answers

0
ensonic On BEST ANSWER

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).

0
JKandra On

Have you looked into Robot JavaScript. This is a Windows based compiler downloaded from the Microsoft App Store that allows you to compile JavaScript directly into an EV3 robot for execution. No need to alter the EV3 operating system. This uses the Firmware from LEGO.

0
Kuvaaja On

Lego don't allow javascript on LEGO MINDSTORMS EV3 Home Edition. But I don't know about third party softwares.

I hope support for javascript will come soon.