Book
Day 3 - Section 2 - Line sensing and tracking
Day 3 - Section 2 - Line sensing and tracking
Completion requirements
View
After the completion of this section the students will be able to:
- drive their robot until it meets a black line
- create the code to make the robot drive inside a border
- program their robot to follow a black line
Chapter 7.1 - Drive until a black line
Write the following program to have the Edison robot drive on a white surface (reflective) until a black line (non-reflective) is crossed.
To use the linetracking sensor in a program you must first turn the sensor on. This also activates the red LED.
Use the black line on Activity sheet 8.1 or draw a black line on a piece of white paper. You can also use black electrical tape on a white desk. Drive the robot towards the black line and he will stop.
On Activity sheet 8.1 there are also three coloured lines. These are red, blue and green. Drive Edison towards each of the lines and see if he stops.