Loading…
Loading…
Dive into the world of robotics with a lesson designed to push the limits of your logical reasoning and your sensor application skills.

Level: Advanced
Dive into the world of robotics with a lesson designed to push the limits of your logical reasoning and your sensor application skills. On this advanced journey, students will face complex challenges that require precise movements and the smart integration of various sensors and the robotic arm in order to navigate and manipulate their environment effectively. This lesson builds on basic coding techniques, pushing students to develop innovative solutions and use advanced programming concepts. By tackling these complex challenges, students will refine their understanding of sensor technology, improve their strategic thinking and gain valuable insights into how code and robotic hardware can work together, preparing them for real-world robotics applications and competitions.
This lesson plan is structured around the 5E instructional framework, a widely recognized teaching model that includes five phases: engage, explore, explain, elaborate and evaluate. The 5E framework systematically engages students in inquiry-based learning, encouraging active exploration and understanding of complex topics.
During the lesson, students will:
Understand and apply logical reasoning to solve complex challenges in FTC Sim, incorporating sensors and movement strategies.
Master advanced coding techniques, including conditional logic and loops, for precise robot navigation and task execution.
Combine robotics principles, such as sensor use and movement commands, to strategically achieve objectives in challenging scenarios.
Materials
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 web browser (Chromium version)
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 solving complex problems, use your projector or interactive whiteboard to share an engaging video showing an animal, such as a crow, using tools to solve complex problems. This approach visually engages learners and sets up a compelling real-world context, demonstrating how problem-solving skills apply across different species. It is a unique way to introduce the concept of analytical thinking and creativity, encouraging students to draw parallels between the animal’s strategies and the tasks they will need to complete to solve puzzles and coding challenges. https://youtu.be/cbSu2PXOTOc?si=TJbrJTzxjqkTVYO0
Ask students if they know of other animals that behave similarly to humans in their ability to solve challenges. They may mention:
Chimpanzees: Known for their ability to use tools and solve complex problems, chimpanzees can provide excellent examples of intelligence and adaptability.
Ravens: Like crows, ravens show a remarkable ability to solve problems and use tools, which makes them interesting subjects for demonstrating cognitive abilities.
Octopuses: These marine creatures are known for their intelligence, which allows them, for example, to escape from their enclosures, unscrew jars and use tools.
Elephants: Elephants are known for their memory and intelligence. They show problem-solving abilities, such as using sticks to reach food or making plugs to drink water from holes.
Dolphins: With complex social behaviours and communication, dolphins show problem-solving abilities, such as using sponges when foraging for food.
Parrots: Some species of parrots, such as the African grey, can imitate human language, solve puzzles and use tools.
Pigs: Pigs have shown that they can learn and perform various tasks requiring cognitive skills, including manipulating objects and playing video games with their snouts.
After the video presentation, hand out sticky notes to your students and encourage them to brainstorm examples from their daily lives where they have to solve complex puzzles. Ask them to write only one idea per sticky note. Ask them to write only one idea per 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 area to post their sticky notes. If an idea has already been posted on the wall, they can place theirs on top of the existing one. If the concept isn't posted yet, they should find an open spot to display it.
Here are some of the ideas they might come up with:
Planning and time management: Balancing schoolwork, extracurricular activities and personal time requires students to prioritize tasks and manage their time effectively, much like solving a puzzle to fit everything into their daily schedule.
Route planning: Deciding on the best route to get to school, a sports practice or a friend's house, especially when juggling several stops or taking traffic and transportation options into account, involves strategic planning and optimization.
Packing for trips: Knowing how to pack efficiently for a trip, choosing what to bring based on the weather, planned activities and the space available in the luggage, requires spatial reasoning and prioritizing skills.
Budgeting and money management: Allocating allowance or income from a part-time job to expenses such as entertainment, savings and purchases requires calculation, foresight and decision-making.
Group projects: Coordinating roles, tasks and schedules with peers on school projects requires negotiating, compromising and planning strategically to meet deadlines and achieve goals.
Meal planning and cooking: Deciding what to cook, taking into account nutritional balance, availability of ingredients and preparation time, requires planning and problem solving, especially when cooking for several people or for people with dietary restrictions.
Game strategy: Playing video games or strategy-based board games, in which they have to make decisions based on their opponents' moves, possible outcomes and available resources.
Homework and study planning: Breaking work into manageable parts for review, especially when preparing for exams, and deciding which topics to focus on requires analytical thinking and prioritizing.
Home organization and cleaning: Deciding on the most efficient way to clean or organize their room, taking into account the supplies needed and the order in which tasks should be done, involves problem solving and planning.
Troubleshooting technical problems: Solving problems with a computer, smartphone or software requires diagnosing, researching solutions and, sometimes, coming up with creative solutions.
Lead a discussion by asking thought-provoking questions:
What steps do you take when faced with a complex problem you have never encountered before? (e.g., First, I try to break the problem down into smaller pieces that I understand. Then, I look for patterns or similar problems I have already solved so I can apply what I know. If I still need help, I ask for help or look for resources online.)
Can you remember a time when solving a challenge or problem in a video game helped you solve a real-life problem? (e.g., Yes, in a game I played, I had to figure out how to navigate a maze by remembering landmarks. That helped me find my way around a new school by remembering specific landmarks.)
How do you feel when you run into a problem that seems impossible to solve? How do you handle that frustration? (e.g., At first I feel overwhelmed, but I've learned that taking a break and coming back to it later helps a lot. Sometimes the solution comes to me when I'm not actively thinking about it.)
Do you prefer to solve challenges alone or in a group? Why? (e.g., I prefer to solve challenges with other people because we can share different ideas and solutions that I might not have thought of on my own. Celebrating together is also more fun when we have found the solution.)
How can solving complex challenges help you in your future life or career? (e.g., Solving complex challenges teaches me to think critically and creatively. These skills are essential in any career, because they help you find innovative solutions to challenges and adapt to new situations.)
How do you think technology has influenced our ability to solve complex problems? (e.g., Technology has made it easier to access information and collaborate with other people around the world. It has also introduced new types of problems to solve, like coding challenges, which can be fun and rewarding.)
Explain that in the upcoming lesson, students will dive into the intricacies of coding robots in FTC Sim, using various innovative strategies to overcome obstacles and reach their goals effectively.
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 logged in, direct them to the "Courses" section and guide them to select the course titled "FTC-Puzzles." Explain to students that this course will help them gain the skills needed to code and control autonomous robots effectively, with a focus on complex challenges.

In the FTC — Puzzles section, guide students to the challenge titled "5 — Options"


Invite students to start coding the "Options" challenge. Explain that the robot must position itself on the trigger pad to activate it, then move away from it. Add that timing will be extremely important here, because backing up at the wrong moment could close all the doors.
To access the coding panel, click the green computer icon on the left side of the screen. You will notice that sample code is already there. It is essential to tell your students that this code is divided into three main sections, each marked by blue comment blocks:
Initialization blocks: This section contains the information the robot needs before it starts its tasks.
Run 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 must be repeated many times. However, for this lesson, we will only work with the initialization and run blocks. The loop section can be deleted to keep the code structure cleaner.

Encourage students to create functions for moving forward, moving backward and turning so that they can reuse them throughout the challenge. If they need to review how to create and use functions, they can revisit Lessons 4 and 5. Here are some examples for the four directions of movement:

Next, students should start coding their robot to move to the trigger pad. It should be a simple forward movement. (Remember that to use this code, students must have created the functions above.)

The code should bring the robot onto the platform. Ask students to observe what happens with the doors when the robot is on the platform. They should realize that if they move off the platform at the wrong moment, all the doors may close again. They must therefore time their action carefully.

Encourage students to add the backward movement and test what they get.

They will probably end up with something like this:

It is possible to turn left and right to pick up the duck and reach the pad. However, the lightning bolt is not easy to reach. By changing the timing, students should realize that it is possible to open both. Here is an example of code that works:

They should line up the doors this way:

From there, students only have to head to the pad. To do so, they must pick up the duck on the left. Encourage students to say their pseudocode out loud before coding it:
Turn left 90 degrees
Move forward a very short distance
Turn right 90 degrees
Move forward a longer distance
Turn right 90 degrees
Move forward a short distance
Their code might look like this:


In this solution, they do not pick up the lightning bolt. Encourage your students to keep working on the challenge until they pick up both the duck and the lightning bolt. Also ask them whether they solved the challenge using other strategies. Remind them that there are often several ways to reach a goal.
Explain that this challenge could also be solved by using the ultrasonic (distance) sensor to determine when the robot can drive. Ask students whether they solved the problem using the ultrasonic sensor.
Encourage your students to move on to the next challenge in the "Puzzles: 6- Combine and Conquer" section

Explain to them that in this challenge, they will need to activate the pad near the duck to open the door, and have something on the pad near the yellow block to open the door and reach the last pad to raise the flag.

Have students discuss possible strategies for solving the challenge. To start, encourage students to create their functions for moving forward, moving backward, turning left and turning right.

Have them move onto the pad in front of the robot to test what happens. This should help them understand how the challenge works and how the door behaves.


They will realize that the trigger pad opens the door where the flag is. Then encourage students to add code to see what happens when their robot reaches the second trigger pad.


Students will see the red door start to turn and end up pushing the yellow block onto the first trigger pad. They should realize that if they leave the trigger pad at that moment, the yellow block stays in place and the blue door stays open. They can then pick up the duck and reach the flag.
This code should give the door enough time to bring the yellow block onto the first trigger pad and have the robot back up.


At this point, students should reach the last pad fairly quickly by turning right, moving forward, turning left and moving forward.


Encourage students to explain how they solved the problem, especially if they had a different solution. Encourage students to try to increase the speed at which their solution runs.
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 understand what their code means. Here is an example of the main code for the second challenge (Challenge 6 — Combine and Conquer) with comments added.

Have students share the solutions they found for the first two challenges by asking them reflection questions, such as:
How did you approach solving the "Options" puzzle when you first encountered it? (e.g., When I started, I tried to break the problem down into smaller tasks and worked to understand how each piece of the challenge works. Then I experimented with different timing strategies to determine the best sequence of actions).
Can you describe a moment in the challenge where timing was crucial? How did you adjust your code to account for it? (e.g., Timing was essential when the robot moved away from the trigger pad to make sure the doors did not close too early. I adjusted the length of the pauses between movements to synchronize the robot's actions with the movement of the doors).
Did you find other solutions to the "Options" challenge? How do they differ from your initial approach? (e.g., Yes, I discovered that using the ultrasonic sensor to detect the distance between the robot and the trigger pad was a more precise timing mechanism. This allowed me to open both doors, giving another way to succeed).
What strategies did you use to optimize the speed and efficiency of your code? (e.g., I worked to minimize unnecessary movements and pauses to streamline the robot's movements. I also experimented with different motor speeds to find the best balance between speed and accuracy).
Reflecting on this problem-solving experience, what skills or lessons can you apply to real-life situations or future projects? (e.g., This experience taught me the importance of adaptability and perseverance when facing complex challenges. I learned to approach problems systematically, break them down into manageable steps, and use technology to find innovative solutions).
Encourage students to put the skills they have just learned into practice by tackling FTC Sim Challenges #7 and #8. These challenges offer more complex situations for students. For Challenge #7, students must test the different elements of the game and use timed movements or the ultrasonic sensor (distance sensor) to avoid getting caught by the rotating doors. For Challenge #8, students will need to use the front motor to grab this block without the grabber, pulling it and putting it in the pit.

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 in constructive dialogue with them about their thought processes, challenges and strategies. This approach provides a better understanding of how well they understand and apply 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 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.
Following instructions: Check whether students correctly follow 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 may 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.
Use of rotary encoders: Assess students' proficiency in using rotary encoders to achieve precise control of movements, including setting target positions, adjusting speed and resetting encoders for subsequent movements.
Use of functions: Assess students' ability to effectively implement functions to break up code, promote code reuse and improve code readability, demonstrating an understanding of the principles of modular programming.
Handling inputs: Monitor how students handle inputs in their code, making sure they correctly use variables or parameters to adapt their code to different scenarios and setups.
Response to failure: Pay attention to how students respond to failure or unexpected results, looking for resilience, persistence and a willingness to experiment and learn from mistakes.
Logical reasoning: Assess students' ability to apply logical reasoning to analyze the puzzle, break it down into manageable steps and develop effective strategies to solve it.
Algorithmic thinking: Observe students' ability to develop algorithms to guide the robot's actions systematically, taking into account various factors such as time, sensor data and environmental conditions.
Code efficiency: Evaluate the efficiency of students' code in terms of readability, organization and execution speed, assessing their use of functions, loops and conditional statements to optimize performance.