This is also my most complicated program so far. I have made the program available because it is a useful one. It allows your robot to make a decision as to which way to go. The robot turns one way, takes the Ultrasonic sensor reading, and turns the other way, and takes the reading. Based on this, the robot makes the simple decision of which way to drive. As a result, the robot will never bump into anything, and won't get stuck.
If you use the program, us the following wiring:
Left drive motor: B
Right drive motor: C
Ultrasonic sensor: 4
The lightning bolt goes up and down with a mechanism similar to spike's from the 1.0.
Motor A powers this function.
While you cant build this with the NXT 2.0 alone, you can if you have the 2.0, 8421 mobile crane, and 8071 bucket truck. I dont know if any of you out there do, and want to build this, but if you do I hope to post an LDD shortly.
The full program for zeus is posted below.
first there was lego. Then motors. And sensors. Then computer programming. Then there was me.