Summary
In this chapter, we put together a lot of what we learned in this book so far to create a Bluetooth-controlled, camera-equipped, line-following robot from scratch. This robot is an ideal starting point for you to explore the control of mobile robots and to try out different controller ideas. There are some straightforward ways to improve upon the simple line-following algorithm. For example, you can use the direction of the line vector to make line following more robust and allow your robot to go faster around the track. The Pixy camera can also detect intersections of lines and turn signs, and you can experiment with these features. How about using one of the controller buttons to let the robot turn around and continue to follow the line in the opposite direction? Or changing controller parameters on the fly and seeing the effects in real time, without having to re-upload the program? Or plotting the deviation from the line in the live plotter on the phone app?
You can...