Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Mindstorms RCX

I've got 30 unopened Lego Mindstorms kits that I'd love to use in my intro programming class to do some simple robotics stuff at the end of the year. We're using Python in the class, so I'd prefer there to be a way for the kids to write the programs in Python. Unfortunately, these are old kits with RCX bricks - not the newer NXT ones, so most of the projects like NXT_Python can't help me. Is there any way to make that happen?

like image 974
Kyle Schmidt Avatar asked Apr 08 '10 01:04

Kyle Schmidt


2 Answers

Running Python on the brick itself is probably hard (for the reason others already stated - size of the interpreter, available RAM on the brick for example) but this might be of interest:

According to this thread you should be able to use pylnp (remote) combined with BrickOS (on the brick; formerly legOS).

like image 89
ChristopheD Avatar answered Nov 06 '22 02:11

ChristopheD


I doubt it.

The RCX bricks used an 8 bit microcontroller. While it might be possible to run some sort of a Python interpreter on it, I haven't seen one ported to it.

The closest you can get is Java:

http://lejos.sourceforge.net/

So theoretically, you could look at Jython and try to run class files compiled with it on the lejos JVM... Sounds like a long shot, though. The microcontroller in an RCX brick just doesn't have a whole lot of room for a big runtime.

like image 2
Ori Pessach Avatar answered Nov 06 '22 03:11

Ori Pessach