Program: | |
The color sensor wire should comeout of a gap under the center rear of the NXT. Connect it to port 3 on the NXT. |
The two drive motors connect to ports B and C on the NXT. The wires should be crossed twice (once under the NXTand another time under the car), so that the B motor stays on the left side of the car and the C motor is on the right side. The steering motor wire should come out of a gap under the center front ofthe NXT. Wind the wire a couple of times to make it store compactly (it will be hidden behind the windshield built later) and then connect it to port A on the NXT. |
Race Car Programming
Download Single NXT Programs (help) |
Download Bluetooth Control Programs (Two NXTs Required) (help) |
Four programs are provided for the Race Car: two forsingle-NXT use, and two Bluetooth control programs designed for use with the 5 Button Remote Control and Steering Remote Control projects (second NXT required).Single NXT Programs: * The ColorRace programdemonstrates some example autonomous behavior using the color sensor to react to changes in the color of the surface. You can create a short "course" for the car to drive and mark actions withdifferent colored tape or strips of paper. The color sensor can sense six different colors, and in this example program, the actions for the six color numbers are: 1. Black: Ignored 2. Blue: Turnleft (start turning at first blue line, stop turning at second blue line) 3. Green: Speed up to full power 4. Yellow: Slow down to 30% power 5. Red: Stop 6. White: IgnoredThe carshould be started with the front wheels pointed straight ahead (adjust them before starting the program by turning the knob wheel on the steering motor), and it will start out driving straight slowly....