Friday, March 19, 2010

Lego NXT Soccer Bot

The program was done in Lego NXT programming software. You can click this link to download. http://www.4shared.com/file/244944853/3d963667/soccer.html (Programs contains commenting).

Instructions will be posted soon.
HOW THIS PROGRAM WORKS(Use video as a reference.)
Robot will spin, doing a .5 rotation of the wheels. The ultrasonic sensor searches for an object farther than 25 cm. When found, the robot moves towards it. It will repeat step unless object is 10 cm away. If object is 10cm away, robot will pick up object and begin looking for a red spot to indicate it must shoot. If black is detected, robot moves back. If any other colour, except red or black is detected, robot moves forward.