Sg2.9
External Control: Part II
Recent RSS
External Control: Part II
From:  Warren
Date:  9. December 2005, 12:54

Just a newbie around these parts and discovered your site via the Hektor stuff while researching motion control for a milling machine I have aquired.

I'm impressed with the plugin and congrats on all the hard work.

I'm also playing around with the RCX brick from lego in a turtle stylee.

Any chance of functionality thru USB? The rcx brick communicates via a usb IR "tower" and can either download control or control in 'realtime'.

Illustrator control of the RCX brick while in 'turtle mode' would be my target.

Any suggestions would be gratefully recieved.

PS Simon - I'm based in Prestwich, not a million miles away from you and also spend as much time as possible on holcombe hill or scout moor on two wheels... Wanna see some secret trails? :)

Re: External Control: Part II
From:  Jürg Lehni
Date:  21. March 2006, 09:53
warren wrote:
Anyone else whose is interested in this little experiment?? Lego mindstorms 'robot' configured as a pen / marker holder to plot illustrator files?

Sounds good! I don't have Lego mindstorms myself, but I could help you with your scripts.

First you need to get the Java Communications API for serial port communication working. Sun's version of it for Windows seems to have disappeared from http://java.sun.com/products/javacomm/, but it's still available here:
https://sdlc2d.sun.com:443/ECom/EComActionServlet;jsessionid=95A4C22FD58D3564EFB29CD0DB66474B
But download soon, because it might disappear as well.

So the first step is to get the javacomm stuff installed and running. Then you can download the RCX library and add it to Scriptographer/java/lib, reload the plugin and start coding.

As a starting point, please try this:

var rcx = Packages.rcx;
var port = new rcx.RCXPort("COM1");
rcx.Motor.A.forward();
rcx.Motor.A.stop();
port.beep();
println("Battery Level = "+port.getBatteryPower()+" volts.");

Good luck!

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Stroke Tone Line 10.03.09