Setting up your Lego Mindstorm NXT Robot

From Intrument Element Wiki

Jump to: navigation, search

Minimum Requirements for Normal User: Knowing eclipse and how to install plugins:


Steps:

  1. Install Instrument element requirements: http://instrumentelem.sourceforge.net/wiki/index.php/First_Steps
    (This setup has been tested on Windows. how about other OS?)
    • Apache Tomcat Which Tomcat should be installed? which one on the Mac? Core or Deployer?. Tomcat 6.0 requires JRE 5.0 or later.
    • Sysdeo Tomcat Eclipse Plugin
    • Maven Eclipse Plugin (Only For Developers)
  2. Install Lejos
    http://www.bartneck.de/2008/03/04/java-lego-nxt-eclipse-tutorial/#installLejos
    1. Install Java (Which you probably already have it)
    2. Install the software for connecting Lego Mindstorms to the PC here
    3. Install the firmware for Lego Mindstorm here.
      Make sure to download the version 0.8.0beta for your OS.
    4. Eclipse plugin for Lejos (for developers only)
  3. Download the application for controlling Lego Mindstorm :
    1. Download war package folder ieT1-v1.war.zip from : http://instrumentelem.svn.sourceforge.net/viewvc/instrumentelem/NxtServer/ieT1/target/
    2. Extract ieT1-v1.war.zip inside tomcat webapps directory ([tomcat folder]/webapps)
  4. Download and Install the device application on Lego Mindstorm
    1. Go to http://instrumentelem.svn.sourceforge.net/viewvc/instrumentelem/T1RobotTools
    2. On the bottom left side of the page click on 'Download GNU tarball' link to download the complete folder as T1RobotTools.tar.gz.
    3. Open T1RobotTools/src/main.java in eclipse
    4. Use Lejos plugin in eclipse (Lejos NXJ->upload firmware) to compile the main.java and upload it on the Lego Mindstorms.
    5. Note that the bluetooth connection between the PC and the Lego Mindstorm has to be working as described in part 2.
  5. setup execution server
    1. run tomcat server
      1. Either from inside eclipse using Tomcat eclipse plugin: Run Tomcat->Start Menu
      2. from the command line: run [tomcat folder]/bin/tomcatX.exe where X is the version of tomcat
  6. open the Web browser. Access the Web page. Look at validation section of http://instrumentelem.sourceforge.net/wiki/index.php/Installation_Guide
  7. Once these steps has been taken, an advanced user/developer can modify the functionality of the device by changing the code explained in part 4 and uploading again to Lego Mindstorms. Look at: Notes for Lego Mindstorm NXT Developers
Personal tools