Post

Random Light Finder v1

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

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

Random Light Finder Program

I put my desktop lamp on the floor as the light source. When NXT is within 30 cm and facing 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.

This post is licensed under CC BY 4.0 by the author.