Presentation is loading. Please wait.

Presentation is loading. Please wait.

Use the book to build and mount the light sensor on your robot. This will allow the robot to remain inside the blue square (fight ring) on the tile floor.

Similar presentations


Presentation on theme: "Use the book to build and mount the light sensor on your robot. This will allow the robot to remain inside the blue square (fight ring) on the tile floor."— Presentation transcript:

1 Use the book to build and mount the light sensor on your robot. This will allow the robot to remain inside the blue square (fight ring) on the tile floor. (The blue square in the hall may be used to test your robot’s sensor. Use NXT Programming to program your robot to use the light sensor. Following are instructions for this task. Be sure your light sensor is properly mounted and activated. If you have trouble, check the port number and make sure your program indicates the port the sensor is plugged into.

2 1. Click “File” and select “New” 2. Click the center tab at bottom

3 3. Click the green circle

4 Select “Loop” and drag it to the “start” position.

5 Selcect ‘switch’ and place it inside the loop. Select 2 ‘Moves’ and place them inside the switch. Selcect ‘switch’ and place it inside the loop. Select 2 ‘Moves’ and place them inside the switch. Click on the switch, then change it to ‘light sensor’ Click to activate the ‘dark’ sensor. Set this value to < 40 Click to activate the ‘dark’ sensor. Set this value to < 40

6 Click on the top ‘Move’, then change duration to ‘unlimited’.

7 Click on the bottom ‘Move’, then move the steering selector all the way to the right or left, then change Next Action to ‘Coast’.


Download ppt "Use the book to build and mount the light sensor on your robot. This will allow the robot to remain inside the blue square (fight ring) on the tile floor."

Similar presentations


Ads by Google