Loading…
Loading…
Explore the field of autonomous robotics with a hands-on lesson in the FTC simulator, where students dive into the world of self-driving robots equipped with grippers.

Level: Intermediate
Explore the field of autonomous robotics with a hands-on lesson in FTC Sim, where students dive into the world of autonomous robots equipped with grippers. This lesson focuses on the crucial role of mechanical manipulation in autonomous navigation, with an emphasis on integrating and coding a gripper on the front of the robot. Students will discover how to program the gripper to interact with objects, adding a new dimension to their robots' capabilities. Through engaging activities, they will learn to control the gripper's movements and use them to pick up and manipulate objects autonomously, improving their understanding of robotic autonomy and of how mechanical components integrate with coding skills.
This lesson plan is structured according to the 5E instructional model, a widely recognized teaching model that includes five phases: engage, explore, explain, elaborate and evaluate. The 5E model systematically engages students in inquiry-based learning, encouraging active exploration and understanding of complex topics.
During the lesson, students will:
Master the integration and coding of the grabber at the front of their robot in FTC Sim, which allows the robot to manipulate objects and interact with its environment autonomously;
Understand the importance and practical application of mechanical manipulation in autonomous navigation, enabling their robots to perform precise tasks such as retrieving and placing objects;
Refine their ability to synthesize mechanical actions with real-time coding instructions, increasing their robot's ability to navigate and manipulate its environment with precision and agility.
removable sticky notes or a collaborative brainstorming app such as Microsoft Whiteboard, Google Jamboard or Apple Freeform.
devices for your students (Windows computers, Mac computers, Chromebooks)
Google Chrome or Microsoft Edge (Chromium version) web browser
access to the FTC simulator website (https://ftcsim.org)
"student" account created for each of your students
projector or interactive whiteboard
To capture your students' attention and spark their curiosity about using the grabber, use your projector or interactive whiteboard to share an engaging video showing automated garbage collection using a robotic arm, which can be viewed at this link: https://youtu.be/uCTyasDmWrs?si=y_UOKpt9aPj7Gmx_.
Automated garbage collection using a robotic arm involves using a mechanical arm mounted on a vehicle to pick up and empty garbage bins autonomously, which streamlines the collection process while reducing the need for manual labour.
After the video presentation, hand out sticky notes to your students and encourage them to take part in a brainstorming session about the different applications of robotic arms on robots or autonomous vehicles.
Ask them to write only one idea per removable sticky note. Assign them a designated area on the classroom wall where they can post their ideas. Once they have come up with several ideas, ask them to gather at the sharing space to post their removable sticky notes. If an idea has already been posted on the wall, they can place theirs on top of the existing idea, whereas if the concept isn't posted yet, they must find an open spot to display it.
Here are some of the ideas they might come up with:
Sorting and organizing packages in warehouses
Helping with assembly tasks in manufacturing plants
Carrying out inspections in dangerous or hard-to-reach areas
Harvesting crops in agricultural fields
Cleaning and maintaining public spaces such as parks or streets
Handling materials at construction sites
Loading and unloading goods on ships or airplanes
Conducting research in science laboratories
Taking part in rescue operations in disaster areas
Taking part in space exploration missions, such as repairing satellites or spacecraft
Carrying out archaeological digs with precision and care
Taking part in entertainment tasks, such as building puppets or animatronics
Carrying out underwater exploration and research
Taking part in environmental cleanup efforts, for example by picking up garbage or debris
Performing tasks in hazardous environments, such as nuclear facilities or contaminated areas.
Lead a discussion by asking thought-provoking questions:
How could robotic arms revolutionize the efficiency of tasks in sectors such as manufacturing or logistics? (e.g., Robotic arms can greatly increase productivity by performing repetitive tasks with precision and speed, freeing human workers for more complex responsibilities.)
What ethical considerations should be taken into account when deploying robotic arms in critical environments or sectors? (e.g., We must consider issues such as job losses, safety regulations and the potential impact on the livelihoods of human workers.)
How can robotic arms contribute to sustainability efforts in sectors such as agriculture or waste management? (e.g., Robotic arms can optimize the use of resources, reduce waste and improve efficiency, resulting in more sustainable practices overall.)
What are the potential risks or challenges associated with relying heavily on robotic arms for essential tasks? (e.g., Technical failures, cybersecurity threats and the risk of misuse or malfunction are significant concerns that must be addressed.)
What are the potential applications of robotic arms in everyday life, outside industrial or commercial settings? (e.g., Robotic arms could assist people with disabilities, perform household chores or even serve as personal assistants in the future.)
How might the development of collaborative robots (cobots) that can work alongside humans influence the future of work and industry? (e.g., Cobots have the potential to improve productivity, safety and efficiency by collaborating with human workers rather than replacing them entirely.)
Explain that robots and autonomous vehicles sometimes include grippers that can be programmed. Mention that the next lesson will focus on coding robots in FTC Sim that use grippers to move objects.
Please encourage students to begin their hands-on learning experience with the FTC Sim platform by navigating to the link provided, https://ftcsim.org/.
Have them log in using their username and password. Once they are logged in, direct them to the "Courses" section and guide them to choose the course titled "FTC Grabby." Explain to students that this course will help them gain the skills needed to code and control autonomous robots effectively, focusing on using the gripper to move objects.


In the "FTC Grabby" section, guide students to the first challenge, titled "1— Put on Top."


Before students start coding, give them time to explore the structure of the new robot, including the gripper. Ask students what they think the gripper needs to do to pick up the block. They should notice that it must first go up, move close to the yellow brick, and then come down.

Explain that one or more servo motors usually control a robotic arm. Add that a servo motor allows precise control of angular position, and is used in robotic arms to move and position specific joints or segments with precision and stability.
To access the coding panel, click the green computer icon on the left side of the screen. You will notice that example code is already there. Remind your students of the basic code structure, as seen in the first lesson:
Initialization blocks: This section contains the information the robot needs before it starts its tasks.
Execution blocks: Most of the code you write will go in this section, where the robot's main actions are defined.
Loop blocks: These blocks are used for tasks that need to be repeated many times. However, for this lesson, we will only work with the initialization and execution blocks. The loop section can be deleted to keep the code structure cleaner.


Explain that in this challenge, the robot's goal is to move to the yellow brick, pick it up, and bring it to the pad to trigger the door to open. Then the robot can go to the last pad to raise the flag.

Have students practise using the gripper by moving it up and down. Explain that to move the gripper, they must use a Servo block from the Actuators section. Ask them to try the following code and encourage them to change the position value.

Have students describe what the gripper looks like in different positions by filling in a table like this one:

Explain to students that they will now raise it back up, wait 1 second, and lower it again using the following code:

Explain that for this challenge, they must raise the gripper, move it right in front of the brick, and then lower it again. Give them time to add the robot's movement to the code. Here is an example of code that works:

Students should understand that pauses are needed so the gripper does not start moving too quickly.

Invite students to code the robot's movement (backward) to bring the block onto the trigger pad, and then to lift the gripper to release the block. Their code should look like this:

In this code, the robot moves backward at 40% speed for 1 second (1000 milliseconds). Encourage students to try different speeds and times to position the yellow brick correctly on the trigger pad.

Tell students that the challenge is almost done now that the door is open. All they have left to do is back up to reach the last block with the flag. Here is code that will let them complete the challenge:


This example code uses a backward speed of 50% for 900 milliseconds. Students can adjust the speed and time to reach the same distance. Challenge your students to keep working on the challenge to get the duck for bonus points!
Encourage your students to navigate to the second challenge using the gripper: 2— Sideways

Explain that for this puzzle, they will need to move the yellow brick onto the trigger pad in the same way as in the first challenge, but in this case, the movement needed to complete the mission is a little more complicated. Encourage students to think of different ways to accomplish the task.
Explain that one solution is to position the robot right in front of the yellow brick so it can push it onto the trigger pad.

Have students think about the pseudocode needed to bring the robot to this position. Explain that pseudocode is a simplified, informal way of programming that describes an algorithm without using the syntax of a specific programming language.
Raise the gripper
Turn right 90°.
Move straight ahead for a certain distance
Turn left 90
Move straight ahead for a distance similar to the previous movement
Turn left 90
Move straight ahead for a very short distance
Lower the gripper
Have students create the code to get into position and grab the yellow brick based on this pseudocode. Here is an example of code that works.

Explain that the next step is to push the yellow brick onto the trigger pad. Encourage students to add the code to push it there, release the gripper, and back up, ready to enter the fenced area. Here is updated code that works:

Students should now conclude that at this point, the robot only needs to turn right 90° and move forward.

Adding the following movement blocks at the end should work:

Please encourage students to begin their hands-on learning experience with the FTC Sim platform by navigating to the provided link, https://ftcsim.org/.
Have them log in using their username and password. Once they are logged in, direct them to the "Courses" section and guide them to select the course titled "FTC Grabby." Explain to students that this course will help them gain the skills needed to code and control autonomous robots effectively, focusing on using the claw to move objects.


In the "FTC Grabby" section, guide students to the first challenge, titled "1— Put on Top."


Before students start coding, give them time to explore the structure of the new robot, including the claw. Ask students what they think the claw needs to do to pick up the block. They should notice that it must first go up, move close to the yellow brick, and then come down.

Explain that one or more servo motors usually control a robotic arm. Add that a servo motor allows precise control of angular position, and is used in robotic arms to move and position specific joints or segments with precision and stability.
To access the coding panel, click the green computer icon on the left side of the screen. You will notice that a code example is already there. Remind your students of the basic code structure, as seen in the first lesson:
Initialization blocks: This section contains the information the robot needs before it starts its tasks.
Execution blocks: Most of the code you write will go in this section, where the robot's main actions are defined.
Loop blocks: These blocks are used for tasks that need to be repeated many times. However, for this lesson, we will only work with the initialization and execution blocks. The loop section can be deleted to keep the code structure cleaner.


Explain that in this challenge, the robot's goal is to move to the yellow brick, pick it up, and bring it to the pad to trigger the door to open. Then, the robot can go to the last pad to raise the flag.

Have students practise using the claw by moving it up and down. Explain that to move the claw, they must use a Servo block from the Actuators section. Ask them to try the following code and encourage them to change the value for the position.

Have students describe how the claw looks in different positions by filling in a table like this one:

Explain to students that they will now raise it back up, wait 1 second, and lower it again using the following code:

Explain that for this challenge, they must raise the claw, move it just in front of the brick, and then lower it again. Give them time to add the robot's movement to the code. Here is an example of code that works:

Students should understand that pauses are needed so the claw does not start moving too quickly.

Invite students to code the robot's movement (backward) to bring the block onto the trigger pad, and then to raise the claw to release the block. Their code should look like this:

In this code, the robot moves backward at 40% speed for 1 second (1000 milliseconds). Encourage students to try different speeds and times to position the yellow brick correctly on the trigger pad.

Tell students that the challenge is almost done now that the door is open. All they have left to do is back up to reach the last block with the flag. Here is code that will let them complete the challenge:


This code example uses a speed of 50% backward for 900 milliseconds. Students can adjust the speed and time to reach the same distance. Challenge your students to keep working on the challenge to get the duck for bonus points!
Encourage your students to navigate to the second challenge using the claw: 2— Sideways

Explain that for this puzzle, they will have to move the yellow brick onto the trigger pad in the same way as for the first challenge, but in this case, the movement needed to complete the mission is a bit more complicated. Encourage students to think of different ways to accomplish the task.
Explain that one solution is to position the robot just in front of the yellow brick so it can push it onto the trigger pad.

Ask students to think about the pseudocode for getting the robot into this position. Explain that pseudocode is a simplified, informal way of programming that describes an algorithm without using the syntax of a specific programming language.
Raise the claw
Turn right 90°.
Move straight ahead for a certain distance
Turn left 90
Move straight ahead for a distance similar to the previous movement
Turn left 90
Move straight ahead for a very short distance
Lower the claw
Have students create the code to get into position and grab the yellow brick based on this pseudocode. Here is an example of code that works.

Explain that the next step is to push the yellow brick onto the trigger pad. Encourage students to add the code to push it there, release the claw, and back up, ready to enter the fenced area. Here is an updated code that works:

Students should now conclude that at this point, the robot only needs to turn right 90° and move forward.

Adding the following movement blocks at the end should work:

Invite students to add comments to their code to explain the different coding blocks they used. Comment blocks are blue and are found in the "Miscellaneous" section. Explain that computer engineers work in teams and must document their code with comments to make sure their colleagues can follow the logic of their code. Here is an example of the second version of the code for the second challenge (Challenge 2— Sideways) with comments added.

Have students share the solutions they found for the first two challenges by asking them reflection questions, such as:
How does integrating a grabber into a robot improve its ability to interact with the environment? (e.g., It allows the robot to physically manipulate objects, which enables it to perform tasks such as picking up, moving and placing objects autonomously.)
What are the key factors to consider when programming a robotic grabber for specific tasks? (e.g., Factors include the grabber's speed, the precision of its movement, the timing of actions and the physical properties of the objects being handled.)
Can you describe a scenario in which precise control of a grabber would be essential to a robot's mission? (e.g., during a rescue operation where a robot must carefully navigate through debris to retrieve fragile or hazardous materials without causing further damage.)
How do mechanical actions like those of a grabber combine with coding instructions to achieve the desired outcome? (e.g., Mechanical actions are carried out through coding instructions that specify the sequence, duration and intensity of movements, which ensures the robot performs tasks accurately, as intended.)
Reflecting on the "FTC Grabby" activity in FTC Sim, what skills did you gain in programming and controlling autonomous robots using a grabber? (e.g., I learned to integrate servo motor control with navigation in space to manipulate objects precisely, which improves the robot's autonomous operating capabilities.)
Encourage students to put the skills they have just acquired into practice to solve FTC Grabby challenges #3 and #4. They should deepen their understanding of grabbing operations and robot movements in these challenges. Challenge #3 (Two Keys) is similar to the second challenge, but it involves choosing which brick to use to unlock the door. Challenge #4 (Unlock) is similar to challenge #2 but requires a chain of events. The blue brick will open a door to access the yellow brick. The yellow brick can then be used as a key to open the yellow door and complete the challenge.

Assessment of the lesson should take place through observations and conversations with students as they code. Evaluating the effectiveness of the lesson should include observing students as they code and engaging them in constructive dialogue about their thought process, their challenges and their strategies. This approach provides a better understanding of their comprehension and application of the concepts taught, including how they solve problems and refine their code to achieve the desired movement and navigation with the virtual robot. Through these interactions, educators can assess each student's understanding of the concepts, provide targeted feedback and adjust instruction as needed to support learning outcomes.
Here is a list of "look-fors" to guide your observations and assessment:
Engagement and participation: Observe whether students are actively engaged in the task, experimenting with the code, taking part in discussions or asking questions.
Problem-solving skills: Note students' ability to identify problems in their code, debug errors and apply logical reasoning to overcome difficulties.
Application of instructions: Check whether students correctly apply the instructions and guidelines provided for the lesson, for example by using the right blocks or the right code syntax for movement and navigation.
Creativity and innovation: Look for creative approaches or innovative solutions that students might apply in their coding strategies, beyond the basic requirements of the lesson.
Understanding of motor commands: Observe students' understanding of how motor commands affect the robot's movement, including speed, direction and the execution of specific turns or manoeuvres.
Understanding of how the gripper works: Students should be able to describe how a robot's gripper works mechanically. This includes understanding the role of servo motors in controlling the gripper's movements, such as raising and lowering to manipulate objects.
Response to failure: Pay attention to how students react to failure or unexpected results, looking for resilience, persistence and a willingness to experiment and learn from mistakes.