LEGO Mindstorm & Ruby


(kki) #1

Hi all.

Someone know if it is possible to program LEGO minicomputer
with RUBY and how?

Thanks.


(Charles Comstock) #2

kki wrote:

Hi all.

Someone know if it is possible to program LEGO minicomputer
with RUBY and how?

Thanks.

I’ve heard tell there is a framework, and I’m pretty sure it was
partially presented at RubyConf 2003, but I dunno where the code is.
Maybe some of the blogs that covered the conference have more info?

Charlie


(Shashank Date) #3

“kki” 1@libero.it wrote in message

Someone know if it is possible to program LEGO minicomputer
with RUBY and how?

I am the author of this library on RubyForge:

http://rubyforge.org/projects/lego-mindstorms/

It requires DRb and works only on RCX 2.0 (USB Port interface).
(Although it can be easily modified to not use DRb).

Give it a whirl and please let me know how it goes.

– Shashank
P.S> You can also get my presentation on this topic at: www.shashankdate.net


(Matt Lawrence) #4

Not really. You can use the brick as a smart peripheral and drive it via
ruby on a PC/Mac/whatever. However, the IR interface leaves a lot to be
desired. I’m considering modifying a brick by adding a serial to USB
converter so that I can have faster (9600 baud), full duplex, reliable
communication.

– Matt
Attitude: The difference between ordeal and adventure

···

On Thu, 26 Feb 2004, kki wrote:

Someone know if it is possible to program LEGO minicomputer
with RUBY and how?


(kki) #5

In data Thu, 26 Feb 2004 08:17:08 -0600, Shashank Date ha scritto:

“kki” 1@libero.it wrote in message

Someone know if it is possible to program LEGO minicomputer
with RUBY and how?
I am the author of this library on RubyForge:
http://rubyforge.org/projects/lego-mindstorms/
It requires DRb and works only on RCX 2.0 (USB Port interface).
(Although it can be easily modified to not use DRb).
Give it a whirl and please let me know how it goes.

Great, thanks, i have RCX 2.0 with usb tower (under linux).
I give it a try, thanks !


(Shashank Date) #6

Unfortunately, my library is for Windows. Sorry!

kki 1@libero.it wrote:In data Thu, 26 Feb 2004 08:17:08 -0600, Shashank Date ha scritto:

“kki” 1@libero.it wrote in message

Someone know if it is possible to program LEGO minicomputer
with RUBY and how?
I am the author of this library on RubyForge:
http://rubyforge.org/projects/lego-mindstorms/
It requires DRb and works only on RCX 2.0 (USB Port interface).
(Although it can be easily modified to not use DRb).
Give it a whirl and please let me know how it goes.

Great, thanks, i have RCX 2.0 with usb tower (under linux).
I give it a try, thanks !

···

Do you Yahoo!?
Get better spam protection with Yahoo! Mail


(Shashank Date) #7

When I was working on it last year, LegoUSB support was not builtin (like it is in kernel
2.6) and I did not (and still do not) have the smarts to mod my existing kernel. Hence I
could not develop the library for Linux. I am waiting for Knoppix 3.4 which is built on
kernel 2.6 to come out next month and then I will start playing with it again. Meanwhile,
since you have the LegoUSB on Linux, I will gladly help in modifying the basic
communication layer to get it up and running.

Please let me know …

– shanko

···

kki 1@libero.it wrote:

Great, thanks, i have RCX 2.0 with usb tower (under linux).
I give it a try, thanks !


Do you Yahoo!?
Get better spam protection with Yahoo! Mail