Time for a challenge
Challenge #1
Let's make a color detection-based pathfinder robot. Program your robot to do the following:
- Move forward whenever no color is detected.
- If red is detected, turn left. Change the hub light color respectively.
- If blue is detected, turn right. Change hub light color respectively.
- Stop when the robot reaches the endpoint. Change the hub light color to green.
Create the following setup in your home:
Figure 15.4 – Challenge setup
You can be creative and add sound and display blocks as needed to make solving this challenge more interesting.