October 5, 2010

Random Light Finder v1

The first scheme I used is let the robot do random walk and stops when is light is stronger than a threshold.

I use the software NTX-G which is within the Lego NXT 8527 package to program it. Below is the illustration of the program, and the program is attached.



I put my desktop lamp on the floor as the light source. When NXT is with 30cm and faces to the lamp I get a light intensity over 70%, therefore I set 70% as the threshold in the program to tell NXT to stop.

Download the program here.


No comments:

Post a Comment