Lesson 7A: Color Follower for Distance
Click the link below to access the walk through on Lego Mindstorms
Color Follower for Distance EV3 Code
Activities:
Create a simple color line follower program with 3 inputs (Degrees, Power, and Color), then create the Line_Follow My Block.
Create another Line Follower My Block called Line_FollowCM that uses the the My Block MoveCM you created in lesson 4. It should have 3 inputs as well (centimeters, power, and color)
Create a program using the Line_FollowCM My Block that will follow a black line at 30% power for 50 cm, then turn in place 180 degrees (use TurnDegRt or TurnDegLt My Block) and follow the black line back at 50% power for 40 cm. Name this program ColorFwdBk.ev3
Lesson 7B: Color Follower Stops Based on Color Detection
Click the link below to access the walk through on Lego Mindstorms
Color Follower Stops Based on Color Detection EV3 Code
Activities:
Create a simple color line follower program with 3 inputs (Color Stops at, Power, and Color to Follow), then create the Line_Follow_Until_Color My Block.
Create a program using the Line_Follow_Until_Color My Block that will follow the outline of a square with 4 different colored sides. Be sure to also use the TurnDegRt or TurnDegLt My Block as well. Name this program SquareColor.ev3