use the book to build and mount the light sensor on your robot. this will allow the robot to remain...

7
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

Upload: beryl-parks

Post on 14-Jan-2016

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 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

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.

Page 2: 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

1. Click “File” and select “New”

2. Click the center tab at bottom

Page 3: 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

3. Click the green circle

Page 4: 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

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

Page 5: 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

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

Page 6: 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

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

Page 7: 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

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