LEGO Education SPIKE Prime
FLL 2021: Genty Push - 10 out of 10 on how to accomplish the Accident Avoidance mission
This is a 10 out of 10 tutorial for pushing gently on a mission model. We also discuss how to build robots that tolerate error and auto-correct their behavior.
- #2071
- 03 Jan 2023
FLL 2022: Drop, Pull, Lever, Collect, Deliver - 5 missions with Kriket box robot accomplishing M14, M05, M06, M04, M09
This tutorial demonstrates how we accomplish 5 missions in a row with a single robot and three attachments. This is a true multiple missions run for the FIRST LEGO League 2022-2023 SUPER POWERED. We Drop parts, we pull from the Smart grid, we push a lever, we collect a few energy units and we deliver the dinosaur toy.
- #2226
- 04 Jan 2024
Navigate through a labyrinth
There is the classic robotics task - maze solving, or navigation in a labyrinth.
Today we will start with an introductory challenge - navigation in a known tunnel.
- #627
- 20 Aug 2017
How to use the Motor Position Block in LEGO SPIKE Prime Word Blocks Software
Did you know you can use the motors as sensors? Here's how!
- #2494
- 16 Sep 2025
Malen - LEGO SPIKE Prime telephone game robot
Malen comes from Malentendu, which means misunderstanding in French.
The robot has a color wheel with 4 colors in the back and a color sensor in the front. When you show a color to the color sensor, it can show it back. You can chain multiple of these robots to make a telephone game!
- #4244
- 23 Feb 2026
Teacher's Notes
Solutions to today’s tasks:
Program the robot to lift its arm by 90 degrees in 1 second.
from hub import port import runloop import motor, time async def main(): # write your code here # Start motor motor.run(port.D, 90) # Wait for 2 seconds time.sleep_ms(1000) # Stop motor motor.stop(port.D) runloop.run(main())
Program the robot to lift its arm by 90 degrees in 2 seconds.
from hub import port import runloop import motor, time async def main(): # write your code here # Start motor motor.run(port.D, 45) # Wait for 2 seconds time.sleep_ms(2000) # Stop motor motor.stop(port.D) runloop.run(main())
Program your robot to hand you its cup using the "run_for_time()" command.
from hub import port import runloop import motor async def main(): # write your code here await motor.run_for_time(port.D, 2000, 45) runloop.run(main())
from hub import port import time import runloop import motor async def main(): # write your code here motor.run(port.A, 1000) motor.run(port.B, -1000) time.sleep_ms(2000) motor.stop(port.A) motor.stop(port.B) await motor.run_for_time(port.D, 1000, 90) runloop.run(main())
- #2585
- 06 Feb 2026