Control a Lego robot via a webserver or console
I. Required Software:
- A web server (e.g. Apache - http://www.apache.org)
- Perl 5.0 (or newer) for win32 (http://www.perl.com/)
- Perl modules:
- Win32::API (version used was 0.011)
- Win32::SerialPort (version used was 0.18)
- Linux version of SerialPort – Device::SerialPort
- NOTE: Subsequent to this project’s original release, there is also the Lego::RCX module
- nqc
linx.nqc
,linxServer.pl
II. Setup:
A. Connect the tower to a serial-port
- Open a dos-console and set the variable RCX_PORT to the port
* set RCX_PORT=COM1
(or COM2)
B. Load linx.nqc to the robot using nqc.exe
- nqc -c -d linx.nqc
C. Install and run the webserver and connect to linx.html
D. Run the linx-Server
- perl linxServer.pl
E. Ready
III. Troubles:
- joreg [at] testphase.at
IV. Also available:
- talkrcx.pl: A Perl program to communicate with a LEGO RCX
- talkrcx.pl by Paul Haas archive of Paul’s original website
- cybertalk.pl: A Perl program to communicate with a LEGO CyberMaster
- By jörg dießl (joreg [at] testphase.at), based on talkrcx.pl by Paul Haas