Get the Gold

Get the Gold!

LEGO® Education Computer Science & AI Grade 3 - 5

Unit 1 • Lesson 1

Student Sheet


Mission

A treasure of gold is waiting!

Your job is to build a horse and carriage, then write a program that helps your robot travel from the castle to the gold and safely back home again.

Along the way, you'll learn one of the most important ideas in computer science:

Sequences

Every computer program follows a sequence of instructions. If the instructions are in the wrong order, the robot won't do what you expect!


New Vocabulary

Sequence

A sequence is a list of steps that happen in a specific order.

Think about:

If you do the steps in the wrong order, things won't work very well!


Troubleshoot

To troubleshoot means to find a problem, figure out what caused it, and fix it.

Great programmers don't expect their code to work perfectly the first time.

They test.
They learn.
They improve.


Warm-Up Questions

Before you start building, think about these questions.

1. What steps do you take to get from your home to school or to a park?

Try writing them in order.


2. What steps do you take to brush your teeth?

Can someone else follow your instructions exactly?


Build Your Robot

Follow the building instructions from:

Book B1
Page 16

Take your time building carefully.


Build Challenge

Can you make your model even better?

Try adding:

Be creative!


Coding Time

Go to:

code.LEGOEducation.com

Enter PIN:

1202

Run the example program.

Watch carefully.


Think Before You Code

What do you think this sequence does?

Talk with your partner before pressing Run.

Were you correct?


Your Challenge

Create a sequence that helps your robot:

Remember...

Computers only do exactly what you tell them.


Test Your Program

Run your code.

Did it work?

If not:

That is what programmers do every day!


Reflection

Answer these questions after you finish.

1. What steps do you take to get from your home to a park or school?


2. What steps do you take to brush your teeth?


3. What do you think the example sequence does?


4. Write your own sequence that moves the robot from the castle to the gold and back to the castle.


5. Did you encounter any problems?

How did you troubleshoot them?


Challenge Yourself!

Can you make your robot:

Programmers are always looking for better solutions!


Congratulations!

You just learned how to use sequences to control a robot.

Every game, app, website, and robot uses sequences to tell computers exactly what to do.

You are thinking like a computer scientist!

https://youtu.be/y3-KUJsUurY

LEGO Education Computer Science & AI Kit: The Ultimate Getting Started Guide

LEGO Education Computer Science & AI Kit: The Ultimate Getting Started Guide

You Placed Your Order and the Kit is on the Way... Now What?

Congratulations! You've ordered the LEGO Education Computer Science & AI Set. Whether you're a classroom teacher, homeschool parent, after-school educator, or robotics enthusiast, you're about to unlock dozens of engaging STEM lessons that teach coding, engineering, artificial intelligence, and problem-solving through hands-on building.

But before you dive into your first lesson, there are a few important steps that will make your experience smooth and successful.

This guide walks you through everything you need to do before building your first robot.


Step 1: Create Your Free LEGO Education Teacher Account

Before your kit even arrives, head over to LEGO Education and create a free teacher account.

Why?

Because all lesson plans, teaching guides, presentations, and instructional materials are housed within the LEGO Education platform.

With a free account, you'll gain access to:

Creating your account early means you'll be ready to start teaching the moment your kit arrives.

What to Do

  1. Visit the LEGO Education website.
  2. Create a free educator account.
  3. Verify your email address.
  4. Log in and explore the Computer Science & AI lesson library.
  5. Bookmark the lessons you'll want to teach first.

Sprattronics Tip: Spend a few minutes reviewing the overall lesson progression before your kit arrives so you'll already understand the learning objectives.


Step 2: Unbox Your Computer Science & AI Kit

Your kit has arrived!

Now comes the fun part.

Take some time to unpack everything and familiarize yourself with the components.

Inside the kit you'll find:

As you unpack:

Check Your Inventory

Make sure all components are included and undamaged.

Organize the Pieces

The trays are designed to keep parts sorted and easy to find.

Charge Everything

Before your first lesson, charge:

Starting with fully charged devices prevents interruptions later.

Bookmark the LEGO Education Coding Canvas

Go to CODE.LEGOEducation.com on the computer or tablet you'll be using.

Explore the interface.


Step 3: Update the Firmware

This is the step many people skip—and it's often the reason they run into problems.

Firmware is the software built into your hardware devices.

Updating firmware ensures:

✅ Better performance

✅ Improved reliability

✅ Access to the newest features

✅ Fewer connection issues

✅ Compatibility with current lessons

Before You Begin

You'll need:

Firmware Update Process

  1. Open the LEGO Education Coding Canvas
  2. Click the BLUE Connect Button in the top right corner.
  3. Select the component you will be connecting.
  4. Follow the firmware update prompts.
  5. Update every motor and sensor.
  6. Wait for each update to complete before disconnecting devices.

Take your time during this process.

A fully updated kit will save you countless troubleshooting headaches later.


Step 4: Complete Your First Lesson — Inputs and Outputs

Now it's time to build your first robot.

The Robot Rookie lesson is designed as a beginner-friendly introduction to the Computer Science & AI platform.

This lesson introduces students to:

What Students Build

Students create a Robot Server and Color Scanner.

The robot uses a color sensor to detect different colored bars and then responds using motor outputs.

Key Learning Concepts

Students discover that:

Inputs are information coming into the robot.

Examples:

Outputs are actions performed by the robot.

Examples:

Through experimentation, students begin making predictions about how different inputs affect outputs.

This foundational understanding becomes the basis for future coding and AI lessons.

Challenge Extension

After completing the guided activity, encourage students to:

This engineering mindset is how we maximize your education!

Here is a student worksheet to track your learning and log your discoveries!


What's Next?

Once you've completed Robot Rookie, you're officially up and running with LEGO Education Computer Science & AI.

From here, you'll continue exploring:

Each lesson builds upon the skills introduced in Robot Rookie.


Your LEGO CS & AI Launch Checklist

☐ Create your free LEGO Education account

☐ Explore the lesson library

☐ Unbox and organize your kit

☐ Charge all components

☐ Bookmark the LEGO Education Coding Canvas

☐ Update firmware on every device

☐ Complete the Robot Rookie lesson

☐ Start building your robotics and AI skills

Congratulations! You're ready to begin your LEGO Education Computer Science & AI journey.

Control a LEGO Spike Robot with Motion: Using the Gyroscope

Control LEGO Spike Essential with Motion: Using a Gyroscope

Introduce

Today we are going to learn how to control a robot in a completely different way. Instead of pressing buttons or using a controller, we will use motion. The LEGO SPIKE hub has a built-in gyroscope that can detect how it is tilted, and we will use that to drive our robot.


Engage

Think about the different ways you control things in your life.

All of these use buttons, joysticks, or touch controls.

What if you could control something just by moving your hand?
Have you ever played a game where you tilt a device to steer?

Today, your hand becomes the controller.


Build & Explore

You are going to build a simple driving robot using:

Important challenge:

As you build, think about:

Once built, explore:


Explain

The hub contains a gyroscope. A gyroscope measures orientation and movement.

It tracks three types of motion:

We use this data in our code to control the motors.

For example:

When the hub is flat, the robot should stop.

You will use movement blocks with two motors to control direction, and tilt blocks to detect motion.


Elaborate

Now that your robot works, how can you improve it?

Try these ideas:

Think bigger:


Evaluate

Answer these questions to show your understanding:

  1. What does a gyroscope measure?
  2. What are pitch, roll, and yaw?
  3. Why do we use two motors with movement blocks?
  4. Why might the robot behave incorrectly if commands overlap?
  5. How does adding a stop block improve performance?
  6. What is one way you improved your robot design?

Digestion Dash: The Ultimate Body Adventure!

Digestion Dash: The Ultimate Body Adventure!

Get ready to race through the human body in Digestion Dash! In this game, you’ll follow food on an epic journey—from the first bite all the way to the end. Along the way, you’ll play mini-games and learn how your digestive system turns food into nutrients your body can use.


Mouth – Bite It & Chew It

Digestion begins in the mouth!

Your teeth break food into smaller pieces. This is called mechanical digestion. As you chew, your tongue moves the food around and mixes it with saliva.

Saliva starts chemical digestion, breaking food down even more. All together, this forms a soft ball of food called a bolus.

Mini-Games:


Esophagus – Swallow It

Time to swallow!

The bolus travels down the esophagus, a stretchy tube that pushes food toward your stomach using squeezing motions. The squeezing motion is called peristalsis.

Mini-Game:


Stomach – Churn It

Welcome to the stomach!

Here, food is mixed with strong acid and enzymes like pepsin. The stomach muscles churn the food, continuing both mechanical digestion and chemical digestion.

The food becomes a thick liquid as it prepares for the next stage. This thick liquid is called Chyme.

Mini-Game:


Small Intestine – Enzyme Dash & Nutrient Dash

This is where the magic happens!

In the small intestine, especially the duodenum, your body breaks food down into usable nutrients.

The pancreas sends enzymes like lipase to break down fats. The liver produces bile, which helps digest fats even more.

Now the nutrients are small enough to be absorbed into your bloodstream!

Mini-Games:


Large Intestine – Hold It

Next stop: the large intestine.

Here, your body focuses on removing water from the leftover material. What’s left becomes solid waste.

Mini-Game:


The Finish Line – Poop

The final stage!

Waste is stored in the rectum until it leaves the body through the anus.

🎮 Mini-Game:


Why This Matters

Every time you eat, your body is hard at work using mechanical digestion and chemical digestion to turn food into nutrients that give you energy, help you grow, and keep you healthy.


Play the Game!

Ready to test your skills and race through the digestive system?

Digestion Dash Game

Build a LEGO Elevator!

Architecture Week Challenge: Build a LEGO Elevator!

Can you design and build a working elevator using LEGO Robotics?

This week at Sprattronics Learning Lab, your mission is to take your minifigures from low to high—just like real engineers do in skyscrapers around the world!


Watch the Challenge Video First

Before you start building, watch this video to see the challenge in action and get some ideas:

https://youtu.be/h0yWNmQ0FrY


How Do Elevators Work?

Elevators may look simple, but they are powerful machines designed with engineering and safety in mind. Most modern elevators use a system called a traction system.

Here are the key parts:

1. Cables (String)

Real elevators use steel cables to lift and lower the car.
For your build, you can use string to do the same job!


2. The Car (Lift)

This is the part where people (or your LEGO minifigures) ride.
Your challenge is to design a car that:


3. The Sheave (Drum)

The sheave is a rotating wheel or drum that the cable wraps around.
When it spins, it pulls the cable and moves the elevator.

In your build:


4. The Motor & Controls

To make your elevator move, you’ll need:

You can use:


Your Challenge

Design and build a LEGO elevator that:

✅ Lifts an object or minifigure up
✅ Lowers it back down
✅ Uses a string and rotating drum system
✅ Stays stable while moving


Bonus Challenges (Try One!)


Engineering Tips


Show What You Built!

We’d love to see your designs!
Share your elevator and explain:


What You’re Learning

By completing this challenge, you are practicing:


Now it’s your turn…

Can you build an elevator that really works?

Can You Design a Video Game About Animal Senses?

Can You Design a Video Game About Animal Senses?

Your Challenge

Create a video game where the main character survives using its senses.

You’ll need to:

Your mission is to design a game that shows how animals sense, process information, and respond in order to survive.

Why Animal Senses Make Great Video Games

Animals experience the world in ways that humans don’t. Some navigate through sound, others through touch, smell, hearing, or even electrical signals. We want to turn those abilities into a core game mechanic.

We like making video games and especially love getting inspired by our weekly themes.

Step-by-Step: How to Design Your Animal Senses Game

1. Choose Your Animal

Start with an animal known for a strong or unusual sense:

Ask yourself: What sense does this animal rely on the most?

2. Build Your World

Design an environment where that sense truly matters.

Examples:

Ask: What makes this world challenging without that sense?

A bat uses its animal sense in a video game.

3. Define the Sense Mechanic

This is the heart of your game. Think about what the player actually does to “sense” the world and what information they receive.

Examples:

This mechanic is what makes your game unique.

A bat uses its animal sense in a video game.

4. Connect Sensing to Action

Tie the gameplay back to real science:

Sense → Brain → Action

In your game, the player:

Example: Hear a sound → recognize danger → dodge

5. Add Predators and Obstacles

Every good game needs tension. Add threats such as:

Ask: What is trying to stop your animal?

6. Create a Scoring System

Give the player a clear goal.

Ideas:

Scoring examples:

7. Increase the Challenge Over Time

As the player improves, the game should push back.

You can add:

Example Game 1: Echolocation (Play as a Bat)

A bat uses its animal sense in a video game.

You play as a bat navigating through darkness using echolocation. You send out a chirp, the sound bounces back, and you “see” obstacles and insects through sound alone.

Goal: Catch mosquitoes while avoiding obstacles.

What it teaches:

Play Echolocation, a Sprattronics Game!

Example Game 2: Underground Survival (Play as a Mole)

A mole uses its animal sense in a video game.

You play as a mole moving through dark tunnels, relying on touch and vibration.

You sense nearby insects, avoid predators like ferrets and foxes, and navigate tight spaces.

Goal: Eat as many insects as possible without being caught.

What it teaches:

Play Underground Survival, a Sprattronics Game!

A mole uses its Animal Sense in a video game

Your Turn

Design a video game that highlights how an animal senses the world.

Remember:

Game Ideas to Get You Started

Final Challenge

Can you design a game where the player truly understands how an animal experiences the world? Be sure to include how it looks, how it senses, thinks, and survives.

Share your game with us!

Interactive Weather Game

Interactive Weather Game: Learn the Water Cycle by Controlling a Cloud

If you’re looking for a hands-on way to teach the water cycle and basic weather science, this browser-based game offers an engaging, intuitive experience. Players control a cloud, collect water vapor, release rain, and watch plants grow as they explore how water moves through the environment in real time.

Play the game here: https://sprattronics.com/wp-content/uploads/2026/03/WeatherGame.html

What This Weather Game Teaches

This science-focused simulation lets players guide a cloud across a landscape while observing evaporation, condensation, precipitation, and plant growth. As the cloud absorbs water vapor and becomes saturated, it eventually releases rain that nourishes the environment. The game turns the water cycle into a visual, interactive system that players can influence and understand through direct experimentation.

Core Concepts Covered

Evaporation Water from rivers, soil, and plants turns into vapor and rises into the atmosphere. In the game, you’ll see vapor particles rising from the ground to show this process in action.

Condensation As vapor collects, it forms clouds. Your cloud becomes larger and darker as it fills with moisture.

Precipitation When the cloud reaches full saturation, it releases rain. In the game, rainfall begins automatically once the cloud hits 100 percent capacity.

Collection and Growth Water returns to the ground and supports plant life. Rainfall helps flowers grow, demonstrating how ecosystems depend on water availability.

Ecosystems and Environmental Science

Beyond the water cycle, the game introduces players to basic ecosystem dynamics. Plants respond to rainfall, different surfaces influence evaporation rates, and the environment changes based on player decisions. These interactions help players see how weather patterns affect living systems.

Why This Game Works for Learning

This is an interactive model rather than a passive lesson. Players learn by experimenting, observing patterns, making predictions, and seeing immediate results. This approach supports experiential learning, which is one of the most effective ways to teach STEM concepts.

Skills Students Build While Playing

The game encourages:

It works well for elementary and middle school students, homeschool lessons, STEM labs, makerspaces, and any learner who enjoys interactive science activities.

Ideal for Teachers and Parents

This game can be used as a:

Guiding questions might include:

What Makes This Game Stand Out

Unlike worksheets or videos, this game simulates a real system, gives players control, provides instant feedback, and shows how weather influences life. It transforms an abstract concept into something visual, interactive, and memorable.

SEO Keywords

water cycle game weather simulation for kids science games online interactive science activities STEM games for elementary students learn evaporation condensation precipitation ecosystem simulation game educational browser games

Final Thoughts

To truly understand science, students need more than definitions. They need experiences. This weather game turns the water cycle into something players can see, control, and explore.

Try the game here: https://sprattronics.com/wp-content/uploads/2026/03/WeatherGame.html

For more hands-on STEM activities, visit Sprattronics, where learning is built, explored, and experienced.

Retro Weather Video Game

LEGO Baseplate Builder

Free 16x16 LEGO® Plate Builder: Create Custom LEGO Challenge Cards

Unlock your creativity and kickstart your next building session with the Sprattronics LEGO Plate Builder. This free digital tool is designed specifically for educators, parents, and LEGO fans to design 16x16 LEGO Challenge Cards in seconds.

Whether you are looking for a quick STEM warmup or a way to inspire new LEGO ideas, our grid-based builder makes it easy to visualize and share "flat-build" inspirations.

Try out the Newest Version of LEGO Plate Builder!

What is the LEGO Plate Builder?

The Sprattronics LEGO Plate Builder is a user-friendly web app that allows you to design one-layer creations on a standard 16x16 baseplate. By restricting the build to a single layer, users are challenged to think about patterns, color theory, and spatial relationships—making it the perfect digital companion to physical brick building.

Key Features:

Why Use LEGO Challenge Cards?

At Sprattronics, we believe in the power of play-based learning. LEGO Challenge Cards are one of our favorite STEM warmup activities. Here’s why they are so helpful:

1. The Perfect Creative Warmup

Starting a complex build can be intimidating. A 16x16 "one-layer challenge" acts as a creative spark. It limits the scope so that kids (and adults!) can focus on a single pixel-art style idea, which lowers the "barrier to build" and gets the creative juices flowing.

2. Enhances Spatial Awareness

Translating a 2D image from a Challenge Card into a 3D physical build helps develop essential spatial reasoning skills. Users must count studs and align colors to replicate the pattern they see on the card.

3. Ideal for Classroom Settings

Teachers can use our tool to generate dozens of unique Challenge Cards. Hand them out at the start of a MakerSpace session or an engineering block. It’s a quiet, focused activity that transitions students into a "maker mindset."

How to Use the Tool

  1. Select your Baseplate: Choose the color that matches your physical LEGO plate.
  2. Pick your Brick: Choose between 1x1 tiles for detail or larger 2x4 bricks for rapid building.
  3. Design your Pattern: Click on the grid to place your bricks. Need to change something? Simply click a placed brick to remove it!
  4. Export and Print: Click "Export PNG" to save your image. Print it out, laminate it, and you have a permanent LEGO Challenge Card for your classroom or home play area.

Start Building with Sprattronics

Ready to inspire your next masterpiece? [Click here to launch the LEGO Plate Builder] and start creating your custom challenge cards today!

Level 1 Scratch - Make a Flappy Bird Game

Scratch Coding Challenge: Build Flappy Bird

In this challenge, you will build your own version of Flappy Bird in Scratch.

Flappy Bird was one of the most downloaded mobile games in the early days of touchscreen devices. The idea is simple:

This isn't meant to be cookbook coding.

Great programmers learn by breaking problems into pieces and experimenting with solutions.

So first you’ll see the core pieces of the game, then you can try building them yourself. After that, you can scroll down for a full walkthrough solution.


The Game Design Challenge

Before looking at the solution, see if you can build these features.

1. Create a Bird

Your game needs a main character.

Your bird should:


2. Add Gravity

The bird should constantly fall downward.

When the game starts:

Hint:
Use a variable to represent gravity.


3. Add Flapping

When the player presses a key:

Hint:
You may need to wait until the key is released before allowing another flap.


4. Create the World

Your game needs a background.

Ideas:


5. Create Obstacles

Flappy Bird is about flying between obstacles.

Your obstacles should:

Hint:
Use clones to create new obstacles.


6. Randomize the Obstacles

To make the game interesting:

Hint:
Use the pick random block.


7. Detect Collisions

The game should end when:

When this happens:

Hint:
Use broadcast messages.


8. Add a Score

Each time the bird successfully passes an obstacle:


Full Walkthrough Solution

Below is one way to build the game.

Your solution may look different — and that’s okay!

Here is a Scratch build of the game: https://scratch.mit.edu/projects/1287185411


Step 1: Create the Bird

  1. Open Scratch
  2. Click Create
  3. Delete the default cat sprite
  4. Click Choose a Sprite
  5. Select a bird (for example, Toucan)

Position the bird:

when green flag clicked
go to x: -120 y: 0
set size to 50%
switch costume to flying costume

Step 2: Create Gravity

Create a variable called:

gravity

Then add this code:

when green flag clicked
set gravity to 0
forever
change gravity by -1

Now make the bird move using gravity:

forever
change y by gravity

The bird will now fall and accelerate downward.


Step 3: Add Flapping

Now allow the player to flap upward.

if <space key pressed>
then
set gravity to 10
switch costume to flap
wait until <not space key pressed>

This does three important things:


Step 4: Create the Background

Click Stage → Choose Backdrop → Paint

Create a simple sky:


Step 5: Create the Obstacles

Create a new sprite called Obstacle.

Draw a pipe or tall rectangle.

Hide it at the start:

when green flag clicked
hide

Step 6: Spawn Obstacles

Create clones every few seconds.

when green flag clicked
forever
wait 3 seconds
create clone of myself

Step 7: Move Obstacles

Tell clones what to do when they appear.

when I start as a clone
show
go to x: 270 y: (pick random -100 to 100)
repeat until <x position < -250>
change x by -5
end
delete this clone

Now obstacles move across the screen.


Step 8: Add Collision Detection

Create a new sprite called Game Over.

Add this code:

when green flag clicked
hidewhen I receive [Game Over]
go to x:0 y:0
show
stop all

Now detect collisions in the bird sprite:

forever
if <touching obstacle>
then
broadcast [Game Over]

Step 9: Add Scoring

Create a variable called:

score

In the obstacle sprite, add this before deleting the clone:

change score by 1
delete this clone

Each time an obstacle leaves the screen, the player earns a point.


Step 10: Test Your Game

Try to beat your high score!

Your game should now include:

✔ Gravity
✔ Flapping controls
✔ Moving obstacles
✔ Random obstacle positions
✔ Collision detection
✔ Game over screen
✔ Score counter


Make Your Game Even Better

Try improving your game with new features:


Challenge:
Can you make your game harder the longer someone survives?

That’s how many of the best arcade games work!

Code a Mini Economy Town in Scratch

Development Guide: Code a Mini Economy Town in Scratch

This guide explains how to build a dice-powered city simulator in Scratch. You will learn how to manage a virtual economy, use cloning to build a visual city, and create a multi-level progression system.

You can check out this project on Scratch. Dicy City Scratch

We made a more polished version here. Check out the YouTube video below.


Step 1: The Economy Engine

The Goal: Create a dice-rolling mechanic that generates money.

Step 2: Visual City Building (Cloning)

The Goal: Make buildings appear on the screen when you buy them.

Step 3: Strategic Synergies (Math Operators)

The Goal: Create advanced buildings that give bonuses based on other buildings you own.

Step 4: Level Progression & Resets

The Goal: Create a sense of achievement by unlocking new items and clearing the board for a new challenge.

Step 5: Adding Visual "Juice"

The Goal: Use motion to show the player exactly when and where they are earning money.


Summary of Logic

By the end of this project, you have mastered:

  1. Events: Using broadcasts to coordinate between the dice, the shop, and the city.
  2. Cloning: Managing dozens of visual objects without creating dozens of separate sprites.
  3. Conditionals: Checking if a player has enough money or has reached the correct level to proceed.
  4. Math Operators: Creating complex economic bonuses that make the game strategic.