Description
Help students move from movement-only coding to true sensor-based robotics control.
This hands-on Touch Sensor Coding Activity (Bump Bot) teaches students how to program a robot that responds to real-time input using the SPIKE Prime touch sensor.
Students learn how to:
• Set movement motors correctly
• Use a Forever loop to continuously check a sensor
• Write conditional logic using If/Else blocks
• Understand state-based behavior (pressed vs released)
• Modify steering and rotation values for turning
• Reflect on how sensor input changes robot behavior
This is a complete, structured lesson designed for one 45-minute class period.
What Students Do
Students build and program a robot that:
- Moves forward until the touch sensor is pressed
- Backs up and turns using steering and rotations
- Continuously checks the sensor using a Forever loop
- Tests, adjusts, and explains their results
The lesson includes structured reflection questions to reinforce understanding of sensor input and conditional logic.
What’s Included
✔ Editable student worksheet (structured activity)
✔ Clear pseudocode ready to convert into SPIKE blocks
✔ Guided practice and challenge version
✔ Reflection questions
✔ Teacher answer key and notes
✔ Common error guidance
Skills Covered
• Sensor input vs movement-only programs
• Conditional logic
• Forever loops
• Steering vs rotation values
• Debugging logic placement
• Cause-and-effect reasoning
This lesson prepares students for more advanced debugging and multi-sensor programming.
Perfect For
• Middle school robotics
• SPIKE Prime sensor introduction
• Weeks 3–4 robotics progression
• Sub plans
• Engineering thinking lessons
This worksheet is also included in the LEGO SPIKE Prime Robotics Unit 2: Precision Driving, Sensors & Debugging (Weeks 3–4). Please check the bundle before purchasing to avoid duplicate purchases.
💬 Earn TPT Credits!
You can earn credits toward future purchases by leaving a review. After downloading this resource, go to “My Purchases” and leave feedback to receive TPT credits.
Highlights
Save even more with bundles
Description
Help students move from movement-only coding to true sensor-based robotics control.
This hands-on Touch Sensor Coding Activity (Bump Bot) teaches students how to program a robot that responds to real-time input using the SPIKE Prime touch sensor.
Students learn how to:
• Set movement motors correctly
• Use a Forever loop to continuously check a sensor
• Write conditional logic using If/Else blocks
• Understand state-based behavior (pressed vs released)
• Modify steering and rotation values for turning
• Reflect on how sensor input changes robot behavior
This is a complete, structured lesson designed for one 45-minute class period.
What Students Do
Students build and program a robot that:
- Moves forward until the touch sensor is pressed
- Backs up and turns using steering and rotations
- Continuously checks the sensor using a Forever loop
- Tests, adjusts, and explains their results
The lesson includes structured reflection questions to reinforce understanding of sensor input and conditional logic.
What’s Included
✔ Editable student worksheet (structured activity)
✔ Clear pseudocode ready to convert into SPIKE blocks
✔ Guided practice and challenge version
✔ Reflection questions
✔ Teacher answer key and notes
✔ Common error guidance
Skills Covered
• Sensor input vs movement-only programs
• Conditional logic
• Forever loops
• Steering vs rotation values
• Debugging logic placement
• Cause-and-effect reasoning
This lesson prepares students for more advanced debugging and multi-sensor programming.
Perfect For
• Middle school robotics
• SPIKE Prime sensor introduction
• Weeks 3–4 robotics progression
• Sub plans
• Engineering thinking lessons
This worksheet is also included in the LEGO SPIKE Prime Robotics Unit 2: Precision Driving, Sensors & Debugging (Weeks 3–4). Please check the bundle before purchasing to avoid duplicate purchases.
💬 Earn TPT Credits!
You can earn credits toward future purchases by leaving a review. After downloading this resource, go to “My Purchases” and leave feedback to receive TPT credits.






