What is a robot?
A robot is a machine that can be programmed to carry out tasks automatically. What separates a robot from an ordinary machine is that a robot can sense its environment, think (process that information using a program), and then act by moving or responding, all without a human steering every step.
Gathers information about its surroundings using sensors, like distance, colour, and force.
Runs your program to make decisions based on what the sensors are reporting.
Uses motors, lights, and sounds to respond, such as driving, turning, or stopping.
Over the coming lessons you will build up all three of these skills with your team's LEGO Spike Prime robot, finishing with an autonomous navigation challenge.
Priorities for today
Arrange yourselves into functional groups of 2 or 3. Choose carefully: the behaviour of one member impacts everyone in that group. If your team cannot work productively together, every member's progress (and assessment) suffers.
Once your group is settled, collect your robotics gear and get familiar with the basics.
Getting connected
We will be coding through the Spike Prime online platform, connecting to the robot over Bluetooth. This keeps your robot free to roam. No cables, no tethering.
- Open the online platform in Chrome
- Sign in and create a new project
- Connect to your team's robot only (the robot's name matches your team number)
The hardware
The yellow hub is the brain of your robot. It holds the battery, the light matrix display, and the ports that your motors and sensors plug into. Two controls matter today:
Press and hold the large centre button on the hub until the light comes on and the hub plays its start-up sound. To power off, hold the same button until it shuts down.
Press the Bluetooth button beside the centre button. The light next to it will flash while the hub searches, and stay solid once connected to your software.
Watch this walkthrough of the hub hardware before you power up:
WATCH: Spike Prime hub — power & Bluetooth▶ YouTubeThe Spike Prime tutorials
The Spike Prime software has excellent inbuilt tutorials. They will teach you:
- The basics of coding with Spike Prime blocks
- How to connect your robot to the Spike Prime software
- How to understand the sensor values shown on the screen
This video shows you how to connect and where to find the tutorials:
WATCH: Connecting & accessing the tutorials▶ YouTubeYour tasks
- Open the Spike Prime platform in Chrome and choose "Start".
- Work through the inbuilt tutorials 1–5.
Assessment
Across this unit you will complete the following assessments:
- The square (assessed in class)
- Collision avoidance (assessed in class)
- Line follower / Map navigation (film + code screenshots uploaded) — this is your main assessment!