LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My child is learning programming using Scratch in school. Can she program her Mindstorms using Scratch?

share|improve this question
If you are talking about the NXT, you can actually use assembly, C, or C++ to program it (see this question). I don't know about Scratch, though. – InkBlend Mar 23 '12 at 0:28
up vote 5 down vote accepted

If you wish to program the EV3 with Scratch, then check out this project on github:

This software is a so-called helper app, that interfaces between the Scratch 2.0 offline editor and the Lego Mindstorms EV3.

The EV3 must be booted from Lejos (, requires a wifi dongle and wireless setup.

The helper app will find the EV3 brick on the wireless network, and will execute commands invoked in Scratch as RMI requests on the EV3. The helper app also reports the status of the motors and sensors back to Scratch.

Below is an example program in Scratch, that allows you to control the robot with the arrow keys (after having pressed 'g'), or (after having clicked on the 'start' sprite) let the robot walk around until it meets an object that is too close, at which point it will make a left turn.

Scratch Car program

The robot itself should look something like this : Scratch Car Robot

Have fun, and let me know what you think.

share|improve this answer

No, but you can use a very similar programming language: Enchanting. (I haven't tried it yet. It was recommended by the programming instructor).

share|improve this answer

Mitch Resnick at the MIT Media Lab is the developer of both Scratch and the original Mindstorms programmable brick, and the original Mindstorms programming interface was very similar to Scratch. If you have one of the original Mindstorms Robotics Invention System sets (and a PC of the proper vintage on which to run the software) she would probably find it similar enough to use without much trouble. (I recently rejuvenated my old Mindstorms sets with a $30 laptop bought online)

share|improve this answer

Scratch for LEGO Mindstorms EV3

One way is to use the open-source online programming environment Open Roberta Lab: there is also a wiki included for detailed information. Or just google Open Roberta at wikipedia.

Everything is for free.

share|improve this answer

Open Roberta wiki:

Open Roberta Community:!forum/open-roberta

Best Thorsten

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.