Taste of Technology LEGO Robotics Class Outline
ToT LEGO EV3 Robotics is a three session course taught over the period of 3 weeks to students between the ages of 9 and 12. The primary goal of the course is to introduce basic programming and robotics concepts to students who show an interest and who may not have had prior exposure. This outline provides a list of materials and curriculum needed to lead the course.
Course Materials for ToT Robotics
Optionally teachers may wish to use the Sirius (FLL Robot) model to teach this course since this model is a little better known than the Riley Rover thanks to FIRST LEGO League and Kyle Markland a.k.a. BuilderDude35. To use this model, small modifications to the base programs will be required. Most importantly, the large motors will need to have their power levels multiplied by -1 as the Sirius motors are “upside-down”. Less experienced users are probably best served by the Riley Rover model.
Note, this outline provides an iPad view for some of the exercises but due to limitations with the iPad programming software not all exercises can be completed with an iPad.
Course Outline
Session One
Goals: Introduce the LEGO Software, Introduce Motors and Speakers (output), Introduce Loops
Programs
- Hello World
- Sound
- Motors
Session Guide
- Start by demonstrating the IDE. Specifically, walk through
- Launching the LEGO programming environment
- Starting a new program
- The Start Block and block types
- Editing a block
Note: New users should watch the Getting Started on Your PC/MAC video.
- Show Hello World and Sound programs using a projector or printout and have the students copy and run the program. Make sure that the students are able to upload and execute the program on their own. They may either upload the program, disconnect the robot, and use the robot’s menu to run the program OR they may leave the robot connected to the computer and run the program from the IDE using the “play” button.
- Review Motors and have the students replicate and run the Right Angle program.
- Thought Experiment: How could a programmer use the Right Angle code to make a robot trace out a square? (Answer: run the right angle program four times).
- Demonstrate loops and have the students replicate the Square Program.
Stretch
- Modify the square code to draw a triangle. (Think about the number of sides and the degrees in each angle of and equilateral triangle).
- Write a new program that will have the robot go in a circle with one block.
- Do any of the earlier programs so that the robot runs backwards.
Session Two
Goals: Introduce Color and Ultrasonic Sensors (Input), Introduce Switch Blocks (Conditional Statements)
Programs
- Input and Output
- Avoid Walls
Session Guide
- Warm up with quick walkthrough and copy of Output program in InAndOut
- Discuss the difference in input and output with examples. Ask students to give additional examples.
- Review the logic (switch block) and have students replicate the Input and Output program in InAndOut.
- Discuss the behavior of wall avoidance.
- Have the students troubleshoot the broken avoid walls program.
Stretch
- Review the logic and have students replicate the Distance program in InAndOut.
- Discuss what input and outputs were used in this sessions programming.
Session Three
Goals: Demonstrate learning by independently coding a solution for line following problem.
Programs
- Line Follower
- Distance Test
Session Guide
- Review inputs and outputs. Focus on motors (output) and color sensor (input).
- Review how the switch and loop logic blocks work.
- Show LEGO Test Mat paying special attention to the black oval line.
- Demonstrate line following behavior by pretending to be a robot; talk about what is being processed. If you’re not familiar with line following behavior read the Line Follower guide before leading this lesson.
- Assign the students the task of creating a line following robot. List the blocks that will be needed.
- Start Block
- Loop Block
- Switch Block
- Motor Block
- During the coding process talk about build and test iterations.
- If the students run out of time you can share the preprogrammed solution and talk through the code so that everyone understands the process.
Stretch
- Discuss math blocks and how they can be used to make a robots actions more precise. Discuss and run the exercise in the Distance Test guide.