nxtprograms.com

Fun Projects for your LEGO® MINDSTORMS® NXT!

Home     Projects     Help     Contacts

Explorer
Building: Advanced
Program: Intermediate

Building Instructions


1-13

Start by building the Bumper Car.  Click the picture for building instructions.

Building Instructions
 


14


15


16

Connect the wire from the "neck" motor to port A on the NXT.


17

Use the longest wire to connect the ultrasonic sensor to port 4 on the NXT.  Route the wire under the robot, and make sure that that it stays out of the way of the bumper and that there is enough slack so that the head can pivot all the way to the left and right.


Explorer Programming

Use the program Explorer for the Explorer.  This program makes the robot repeat the following steps:

  1. Go straight until either the ultrasonic sensor sees something close or the bumper is hit.

  2. If the bumper was hit, make a sound and back up a little.

  3. Turn the head to look right and then left, and use the ultrasonic sensor to determine which direction appears to have more space, then turn in that direction.

 


Using the Explorer

Make sure the "eyes" of the ultrasonic sensor are pointed straight ahead before running the Explorer program, so that robot is not confused about which way is which.

 

Challenges
  • Set your Explorer loose and see if you can predict which way it will turn each time it approaches an obstacle, and try to guess where it will end up.  Will it get stuck anywhere?

  • For an advanced programming challenge, try modifying the Explorer program to change what happens when the Explorer "sees" an obstacle or bumps into something.  Can you come up with a better navigation strategy that is more interesting or less likely to get stuck?

Get nxtprograms.com on CD!
Click here for info

Home     Projects     Help     Contacts

 

Copyright © 2007-2011 by Dave Parker.  All rights reserved. 
All project designs, images, and programs are protected by copyright.  Please see the usage policy.