CISC 2007 Tutorial:Programming Lego® Robots with Java Lejos API

9th International Conference on Computer Systems Engineering
(in spanish: IX Congreso Internacional de Sistemas Computacionales)
Guadalajara, Jalisco, Mexico. October 2007
Tecnologico de Monterrey, campus Guadalajara



LEGO ® Mindstorms ® robots can do more than you ever expected. How to get in there?. The answer is combining the LEGO Mindstorms cool and fun hardware with the power of the Java platform–the world’s hottest programming technology.

This tutorial will show you how to get in, step by step. We’ll start with the basics and then we’ll teach you techniques to control LEGO ® Mindstorms ® robots. This tutorial will teach you how to build robots combining intelligence and power. We will cover:

1. Installing LeJOS, the Java Virtual Machine designed for the LEGO Mindstorms programmable controller

2. Setting up your Java platform development environment for LEGO Mindstorms

3. Programming rotation and custom sensors.

4. Using behavior control programming

5. Gathering map data and transmitting it back to your computer


These are my slides for the tutorial, any comment is more than welcome.


Through this tutorial, the attendee will: o Learn about programming tool: LeJOS (Lego and Java). o Show, discuss and enhanced several examples using LEGO ® Mindstorms o Robot behavior o Robot navigation o Robot communication o Overview of Vision and Speech

Tutorial History

This tutorial has been presented in different local forums in the last year.




After a brief introduction about Lego technology and LeJOS, participants will work on hands-on exercises. Users will develop these exercises, in order to review, evaluated, an enhanced those exercises.