Restricted
Revision CCDI
Test 1-Term 3
Q1. List devices in your home or school that use automation or robotics and describe how they make
life easier.
A1. Devices That Use Automation or Robotics (at Home or School)
🏠 At Home:
1. Washing Machine
o You press a few buttons, and it washes your clothes by itself.
o This saves time and hard work.
2. Robot Vacuum (like Roomba)
o It moves around the house and cleans the floor on its own.
o You don’t need to sweep or vacuum every day.
3. Smart Lights
o These lights can turn on/off by voice or on a timer.
o It saves electricity and is helpful at night.
4. Microwave Oven
o Heats food with a timer—no need to cook everything on the stove.
o Makes preparing food faster and safer.
🏫 At School:
1. Interactive Whiteboard (Smart Board)
o Works like a big touchscreen computer for lessons.
o Makes learning more fun and interactive.
2. 3D Printer
o Uses a computer to create real objects layer by layer.
o Helps us make models for projects and inventions.
3. Automatic Doors
o Open when someone walks near them.
o Makes it easier for people carrying things or using wheelchairs.
4. LEGO SPIKE Prime Robots
o We build and program them in class.
o Helps us learn coding, engineering, and problem-solving.
Q2. In STREAM, you usually follow a process:
A2. Identify a problem
Come up with ideas (design)
Choose the best idea
Make it (technology)
Test and improve it
The goal is to think like a designer or inventor – making things that are useful, safe, and look good!
Q3. What is SPIKE Block-Based Programming?
A3. SPIKE block-based programming is a fun way to tell robots what to do by snapping colorful blocks together—
like a digital LEGO puzzle! Each block gives the robot a command, such as move forward, turn, or make a sound.
Q4. Why should we learn it?
A4. It helps you learn how computers and robots think.
By using block coding, you become a problem-solver, learn to build cool projects, and get ready for the tech world
of the future—all while having fun!
Q5. SPIKE Prime set
A5. Hub (the brain), Motors, Sensors (color, force, distance…), Wheels, bricks, cables
Restricted
Q6. Motors and sensors
🟨 Large Hub
Acts as the central computer of your robot.
You write and run MicroPython programs here.
Has a LED matrix, speaker, six input/output ports, Bluetooth, and a built-in Gyro Sensor.
code:
from spike import PrimeHub
hub = PrimeHub()
hub.light_matrix.show_letter("A")
🌀 Gyro Sensor (Built into the Large Hub)
Measures turning angles and tilt using yaw, pitch, and roll.
Helps robots:
Make precise turns (e.g. turn 90°).
Detect if they are tilting or rotating.
Example code:
hub.motion_sensor.get_yaw_angle()
🎨 Color Sensor
Detects:
Colors (e.g. red, blue, green),
Reflected light intensity,
Ambient light.
Used for:
Line following,
Detecting colored objects or markers,
Triggering events based on color.
📏 Distance Sensor
Works like robot eyes using ultrasound.
Measures how far an object is (up to ~2 meters).
Great for:
Obstacle detection,
Parking robots,
Triggering actions when something gets close.
✋ Force Sensor
Detects pressure, like a button being:
Pressed,
Released, or
Bumped.
Useful for:
Starting programs,
Making the robot react to a touch,
Simple input from users.
⚙️Large Angular Motor
Restricted
Stronger motor with a built-in rotation sensor.
Ideal for:
Driving robot wheels,
Lifting arms or moving heavy attachments.
Tracks rotation in degrees or rotations.
Can be controlled by speed, degrees, or time.
⚙️Medium Angular Motor
Smaller and faster than the large motor.
Perfect for:
Smaller movements (like opening a claw),
Applications that need precision over power.
Also has a built-in rotation sensor.
Q7. What is MicroPython, and how is it used with SPIKE Prime?
A7. MicroPython is a version of Python made for small devices like the SPIKE Prime Hub. It lets you write code to
control motors, sensors, and lights using text instead of blocks.
Q8. Name two differences between using Word Blocks and MicroPython on the SPIKE Prime Hub.
A8. Word Blocks use drag-and-drop blocks; MicroPython uses typed code.
MicroPython allows for more complex logic and is closer to professional programming.
Q9. What is the purpose of the hub.light_matrix.show_image() command? What does it display?
A9. It shows a built-in image (like a smiley face) on the LED matrix on the Hub.
Q10. What does this code do? Explain in your own words.
from spike import PrimeHub
hub = PrimeHub()
hub.light_matrix.show_letter("A")
A10. It shows the letter “A” on the LED screen of the Hub.