ActivityBot 360 Line Following with Color Sensing

Make the traditional line follower track more colorful!

The addition of a single ColorPal sensor and QTI Line Follower Kit on an ActivityBot 360 creates a far more interesting set of line following navigational challenges. In this project, the use of red, yellow and green color samples are used to signal the ActivityBot 360 to make left, right and u-turn maneuvers, respectively. A WS2812 RGB LED displays the last color seen by the ColorPal and a piezospeaker plays sound effects when colors are detected. 

This simple-looking project was designed with specific ActivityBot 360 sensor placement and line shapes in mind. Changing the position of sensors or the angles of line intersection requires different program designs and logic. These are all part of the challenge of creating an environment of your own and code to do the task. Self-driving cars would be easier to program and control if they were able to interact with additional features in a road, as demonstrated in this project.  

This project also demonstrates two additional programming practices that can be incorporated into many robotics programs:

  1. The New Processor block. A piezospeaker generates sound effects simultaneous with servo motor control and logic, running in its own processor. It’s a demonstration of how the Propeller Multicore Microcontroller programming environment can be used to do parallel tasks; and
  2. Using an LED for visual feedback, troubleshooting, and debugging. In physical computing (also called embedded programming) LEDs can be used to show the programmer which functions of code are being run. 

 

Parts List

Additionally, you may need some double-sided sticky tape, cardboard, popsicle sticks and some small screws to properly position the ColorPal on your ActivityBot 360. The exact configuration of this setup is left up to you. 

Note: Soldering assembly is required for the WS2812 LED module.