educatenxt line following with one light sensor. educatenxt attach a light sensor to attach a light...
TRANSCRIPT
![Page 1: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/1.jpg)
EducateNXT
Line FollowingWith One Light Sensor
![Page 2: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/2.jpg)
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).
![Page 3: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/3.jpg)
EducateNXT
Click
twice to
Then keep clicking untilNow select the port the light sensor is in, probably Port 3.
Reading the value of your light sensor
Select
![Page 4: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/4.jpg)
EducateNXT
Light readings for lots of things
Midair ____________Colored surface (Color ________ ) ____________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.
![Page 5: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/5.jpg)
EducateNXT
Edge following or line following?
The easiest way to follow a line is to follow
the edge, moving on and off the black.
![Page 6: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/6.jpg)
EducateNXT
When on white it needs to go to black.
When on black it needs to go to white.
?
?
![Page 7: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/7.jpg)
EducateNXT
. . . And back to black again.
While doing this, it edges up the line.
![Page 8: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/8.jpg)
EducateNXT
ForwardB
Stops
Basic Line Follow
Switch
Left
![Page 9: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/9.jpg)
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 blockand its configuration panel
(Black% + White%) ÷ 2
![Page 10: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/10.jpg)
EducateNXT
Basic Line FollowA 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
![Page 11: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/11.jpg)
EducateNXT
Add a Loop block. (The EduBot needs to line follow forever.)
1 2
3
Then Download.
Then drag the Switch into the Loop.
![Page 12: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/12.jpg)
EducateNXT
Have some fun following the line . . .
![Page 13: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/13.jpg)
EducateNXT
And for the teacher . . .
![Page 14: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/14.jpg)
EducateNXT
Finished Line (Edge) Follow Program
![Page 15: EducateNXT Line Following With One Light Sensor. EducateNXT Attach a light sensor To attach a light sensor to the EduBot, refer to pages 32-33 of the](https://reader037.vdocuments.net/reader037/viewer/2022110206/56649d035503460f949d648c/html5/thumbnails/15.jpg)
EducateNXT