Scaredy Bot – Use Light Sensors to Control Your Robot

Use the Light Sensor to enable RiQ to detect brightness.  Program RiQ to escape from the light, or try to find light, etc. Get a flashlight in a dark room and don’t let him get near you. Flash him away!

Light Program

IF the light sensor detects a value greater than 150, then motors AB will go OFF, motor A will go THISWAY and motor B will Go THATWAY, both will go ON FOR half a second (0.5). Then Motors AB will go ON again.

IF NOT (it is less than 150), then the motors AB will stay ON.