Follow the Line: Programming Robots with Color Sensors
Students collaborate on a STEM robotics projectCopyright Internal photo provided by Rhonda LaCount, Black Hawk Elementary
Student groups are challenged to program robots with color sensors to follow a black line. Learning both the logic and skills behind programming robots for this challenge helps students improve their understanding of how robots both “see” and "think" and widens their appreciation for the complexity involved in programming micro:bit-Cutebot robots to do what appears to be a simple task. Part 1 includes an activity to appreciate human vision to complete simple tasks. In Part 2, they test their ideas for approaches to solve the robot challenge and ultimately learn a (provided) working programming solution. They think of real-world applications for line follower robots that use sensor input.
Engineers incorporate sensors into machines to make them perform complex, precise, and/or tedious tasks. For example, engineers who work for car manufacturers design robots that paint car parts, such as car bodies, hoods, and doors. To achieve an even coat of paint, these robots must maintain a consistent distance between the paint applicator and the part. The robots use sensors to determine the distance between the paint applicator and the surface to be painted. The line follower concept shown in this activity has applications for running mass transit systems and autonomous cars on highways, as well to deliver mail in office buildings, move items through factory assembly lines and deliver medications to hospitals.
After this activity, students should be able to:
- Explain how a color sensor works.
- Develop and explain the logic behind programs that instruct robots to use color sensor readings to make decisions.
