With the two motors connected to the Handy Board, run test.c again. The motors should turn this time when the corresponding LEDs light up. Switch the polarity of the motor connectors and run the program again. Notice that this time the motors spin in the opposite direction than they did the first time. To give the Handy Board some idea about its environment, some sensors are needed.
Touch sensors are among the most basic and reliable sensors available.
The touch sensors included in your kit have leads spaced much like the holes in the LEGO beams. We will take advantage of this property by attaching the touch sensors to LEGO beams. Construct each sensor with the following steps. Peel two wires off the rainbow ribbon cable together. Peel the wires apart from each other for about 1-inch from each end.