Presentation is loading. Please wait.

Presentation is loading. Please wait.

How to make a Line Follow program Using EV3 software and an NXT light sensor.

Similar presentations


Presentation on theme: "How to make a Line Follow program Using EV3 software and an NXT light sensor."— Presentation transcript:

1 How to make a Line Follow program Using EV3 software and an NXT light sensor

2 Name your program call it lineyourname so that you can recognize it on the robot. Double click where it says ‘program’ and type the new name in.

3 Add a loop Because you will want the actions you put in next to repeat over and over again.

4 Remember As the light sensor sees different light levels, the robot will wiggle from side to side as it follows one side of the line.

5 Add a Switch Block Or conditional, because the robot must do different actions depending on the reflected light level it perceives.

6 You need to check the reflected light level on the black and on the white Go to the ‘view’ menu on the robot. Make sure that you are using the port that the light sensor is plugged into. Check what number it reads over the black line. Check what number it reads over the white area. Find the average of these two numbers – that is your threshold.

7 Threshold: Black ______ + White _______ Total ÷ 2 = threshold

8 We have an NXT sensor but EV3 program That means you will have to use the sound sensor setting on your switch block. This works because the light sensor and the sound sensor both send numbers from 1-100 to the CPU.

9 Like this:

10 Type your threshold here:

11 Make sure you have the correct port:

12 Add appropriate move tank blocks

13 If it doesn’t work… Play with your settings! Have fun!


Download ppt "How to make a Line Follow program Using EV3 software and an NXT light sensor."

Similar presentations


Ads by Google