Lesson 13 - Making a MyBlock.
MyBlocks with inputs and outputs.
Moving with MyBlocks
Turning with MyBlocks
Color Line Follower with MybLocks, based on stop at color detection
Color Follower based on distance
Assignment 13 - make a MyBlock for a line follow program.
Then create a program that uses this MyBlock to:
- move forward until it sees the second red line
- turn left until it sees black
- follow the line until it sees green
- follow the green line until it ends
- turn right and move forward until it sees the next green line
- turn right and move forward until it sees black
- follow the black line
- says Good Job! and stops.
To turn it in, look at the instructions below or watch this video:
- Go to Google Drive
- Open the Class Assignments LEGO folder in 'Shared with me'
- Open your class folder and assignment folder
- Click on the "New" button on the top left
- Upload the program from your computer as MyBlockyourname
|