Take the 2-minute tour ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

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
add comment

3 Answers

up vote 4 down vote accepted

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

https://github.com/koen-dejonghe/ev3-scratch-helper-app

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 (http://sourceforge.net/p/lejos/wiki/Home/), 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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.