Teaching introductory Java through LEGO MINDSTORMS models

David J. Barnes

2002 · 97 citations · 3 references

DOIFull text

Open access

Concepts

Abstract

Innovative teachers are continually looking for creative ideas, both to get their ideas across and to hold the interest of their students. One of the latest trends is the use of LEGO ® MINDSTORMS ™ kits [9] in various computing courses. These kits allow a wide variety of physical models to be built, some of which may be programmed via the RCX ™ processor integrated into them. Using its standard firmware, the RCX device may be programmed through several different specialist languages. However, the additional availability of bytecode-compatible replacement firmware for the RCX makes the use of Java ™ as the programming language for it a particularly attractive approach. In this paper, we explore some of the issues associated with choosing to program MINDSTORMS models using Java within the context of an introductory programming course. In particular, we consider the impact on the material that is taught, and the use of an appropriate API to support an objects-early programming style. 1 The RCX Processor The RCX is a programmable processor housed in an oversized LEGO brick. This allows the processor to be an integral part of any model that is built with the MINDSTORMS kits. On the outside of the processor’s brick are three input ports (labeled 1, 2, and 3), three output ports (labeled A, B, and C), an input-output infrared device, a single-line LCD, a speaker, and four buttons (one of which is the on-off switch). In size, the input and output ports are compatible with standard LEGO bricks but they also have electrical contacts. These are designed to attach to similar contacts housed in special purpose input and out-Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee.

References

3