Download presentation
Presentation is loading. Please wait.
Published byAmos Brett Price Modified over 9 years ago
1
EducateNXT Line Following With One Light Sensor
2
EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the NXT Building Guide (that comes with the Education Kit).
3
EducateNXT Click twice to Then keep clicking until Now select the port the light sensor is in, probably Port 3. Reading the value of your light sensor Select
4
EducateNXT Light readings for lots of things Midair ____________ Colored surface (Color ________ ) ____________ Colored surface (Color ________ ) ____________ Darkest reading ____________ Brightest reading ____________ Black line on line follow board ____________ White area on line follow board ____________ Try getting light sensor readings for the following: Note: The light sensor does not read color. It reads how much light is reflected – which is different for different colors.
5
EducateNXT Edge following or line following? The easiest way to follow a line is to follow the edge, moving on and off the black.
6
EducateNXT When on white it needs to go to black. When on black it needs to go to white. ? ?
7
EducateNXT... And back to black again. While doing this, it edges up the line.
8
EducateNXT Forward B Stops Basic Line Follow Switch Left
9
EducateNXT Basic Line Follow The trigger point value determines when the sensor is seeing black or white. It is the average between the black % and white %. The Switch block and its configuration panel (Black% + White%) ÷ 2
10
EducateNXT Basic Line Follow A partially completed line-follow program should look like this... Set Move block duration to “Unlimited.” IMPORTANT Don’t download yet… What still needs to be added
11
EducateNXT Add a Loop block. (The EduBot needs to line follow forever.) 1 2 3 Then Download. Then drag the Switch into the Loop.
12
EducateNXT Have some fun following the line...
13
EducateNXT And for the teacher...
14
EducateNXT Finished Line (Edge) Follow Program
15
EducateNXT
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.