Light Sensor: Wait for Dark

Home > Activities > Robots > Examples

Computer Challenge logo

 

  Equipment
  Building
  Programming
  Missions
Examples
  Contests
  Links
  Award

 

wait for touch diagram

Action: Go forward until the light sensor on port 1 reads a value less than 40, then stop.

Reading the program

  • Begin the program
  • Start motor A
  • Start motor C
  • Wait until the light sensor connected to input 1 reads a value less than 40
  • Stop all motors
  • End the program

Where to find it

Wait for Dark: click Wait For wait for buttonon the functions palette.

Input 1 and Numeric Constant: click Modifiers on the functions palette

For more information: See the Light Sensors tutorial or Context Help in RoboLab.


  © 2010 Computer Challenge