2. Approaching the Alien...

Next we must teach our Robot how to approach the Alien without hitting it (to do so might cause an INTERGALACTIC INCIDENT - would the Earth survive?) Just about the distance below would be good.

One way to do this is to take a length of string and measure the distance from where your Robot starts to where you want the Robot to stop.

Carefully wind the string around the outside of your Robot's wheel, counting the number of times it goes around the wheel. The number of times the string goes around the wheel is the number of times you must tell your Robot to turn its wheels to approach the Alien without hitting it.

You can teach your Robot to go forward by adding a motor command:-

The motor command has a command panel like that below (note that your number of rotations will be different).

To see a demonstration of these commands, (click here broadband) or (click here dialup)

 

To find out how to get your Robot Ambassador to speak to the Alien, click here.

Greeting An Alien - Tutorial 4 - NXT-G - LEGO MindStorms NXT - www.DrGraeme.net