This example program for a two wheel Lego® NXT robot follows a IR ball using the cball NXT.

NXT Robot with NXT cball for the robot used with this code is available under the Robot Building.

Download the program for the Lego® NXT written in NXC