Skip Navigation

Self-Driving Cars

By Steve Blair and Kassandra Lenters
Developed in partnership with:
120 minutes
Level
Grades 4-6
Subjects
Science and Technology,
Mathematics,
Social Sciences,
Other
components
  • Programming
  • Data
  • Technology and Society
  • Design
Tools & Languages
Block-based,
Scratch

Key Coding Concepts

  • Algorithms
  • Conditional Statements
  • Debugging
  • Events
  • Loops
  • Sequences

Terminology

Radar

A radio device for detecting the position of things in the distance and the direction of moving objects

 

LiDAR

Similar to radar but uses lasers instead of radio waves.

In this lesson, learners will discuss the future of transportation and build a game in Scratch that simulates how self-driving cars work.

Technology

  • This lesson requires computers and access to the internet - or the offline Scratch editor and starter projects downloaded onto computers ahead of time.

Before the lesson...

Introduction

Ask: How do cars work? Who is able to drive cars? What do they need to know before they can start driving? etc..

Ask: What if a car could drive by itself? Companies like General Motors have actually created something called “self-driving cars” and are testing and training them today. Have you heard of this?

Say: We are learning about self-driving cars, and creating a game in Scratch to help us understand how they work.

Complete a KWL chart using anchor chart paper and markers.

  • Ask: What do we know about self-driving cars? (Record answers under “K” for Know)
  • Ask: What do we want to know about self-driving cars? (Record answers under “W” for Want to Know)
  • Say: We are going to learn how self-driving cars work by watching a video and building a game in Scratch! Then we will come back to our chart and answer the “L” (Learned) section.

Do: Watch this video about how self-driving cars work.

Discover more at the General Motors website.

Code-Along

  1. Open up a new Scratch project at scratch.mit.edu and click on “create” (top, left corner).
  2. Point out the main elements: Stage, Sprites, and Scripts. Demonstrate how to drag and connect blocks.
  3. Give learners a few minutes to click on blocks and explore.
  4. Go through 1-2 challenges with the group, where learners are tasked with trying to make something happen in Scratch. For example, “Try to make Scratch move” or “Try to make Scratch say something when the space key is pressed” (See the Code-Along Challenges doc for more examples and solutions)

Activity

Say: We are building a game in Scratch to show how self-driving cars work.

Show the example project so learners know what they are working towards. Ask them what they see/hear - what is happening in this project?

Open the starter project and review the Sprites and backgrounds.

Have learners open the starter project on their screens and click "See Inside" or “Remix” (The remix button will only be visible once they are signed into their accounts.)

Use the solution sheet to guide learners through the following steps:

  1. Make the car move
  2. Add a radar
  3. Use radar to sense the road
  4. Choose a starting point
  5. Test and debug
  6. … and any additional Add-Ons, if time

Reflection

Close or put away computers and return to the KWL chart. Complete the “L” (Learned) section.

Ask: What did we learn from the video we watched about how self-driving cars work? What did we learn from building our game in Scratch?

If there are still unanswered questions from the “W” (Want to know) section of your chart, you should be able to find most of the information from General Motors’ 2018 Self-Driving Safety Report.

Learning Outcome

I can give the computer instructions to tell it what to do
I can use conditional statements to control what happens in my project
I can use loops to make things happen more than once
I can use events to control when things happen
I can keep testing and debugging to make my project better

Assessment Ideas

Use the following ScratchEd rubric to assess the learners’ ability to communicate their design process (see “Experimenting and Iterating” and “Testing and Debugging”).

Option 1: Have learners discuss what a future with self-driving cars could look like. Refer to General Motor’s “imagine” statements in their 2018 Self-Driving Safety Report (above). Consider using Think-Pair-Share or 1-2-4-All for the following discussion questions:

  • How would wide-spread use of self-driving cars affect the environment?
  • How might city designs change in response to self-driving cars?
  • How would the jobs of taxi drivers, truck drivers, and delivery drivers translate to a future of self-driving cars?

Option 2: Have learners brainstorm and design the interior of a self-driving car.

  • Ask: What could the inside of a self-driving car look like?
  • Ask: What things won’t you see inside a self-driving car?
  • Ask: What kind of activities do you think people in self-driving cars might do?

Option 3: Brainstorm possible scenarios that a self-driving car may face, then have learners add the scenarios and solutions to their project in Scratch (e.g. an animal crossing the road).

Option 4: Machine learning is an important part of training self-driving cars to know what to do in different scenarios. Spend time learning more about Machine Learning through Google’s Teachable Machine.

Option 5: Have learners build a self-driving car prototype (using lego, play-doh, pipe cleaners, etc.). Have them label the sensors or any other important features, and share a Design Statement - including which design decisions they made, and why.

General Motors
https://www.gm.com/mol/selfdriving.html

“Autonomous car / self-driving car - How it works! (Animation)” video By Thomas Schwenke from Youtube
https://youtu.be/gEy91PGGLR0

ScratchEd Rubric
http://scratched.gse.harvard.edu/ct/files/Student_Assessment_Rubric.pdf

Using the Think-Pair-Share Technique (ReadWriteThink)
http://www.readwritethink.org/professional-development/strategy-guides/using-think-pair-share-30626.html

1-2-4-All (Liberating Structures)
http://www.liberatingstructures.com/1-1-2-4-all/

Teach lessons that are tied to your existing curriculum! https://bit.ly/CLClessons

r

More Lesson Plans For Grades 4-6

    View All Lesson Plans

    Explore lessons based on components

    The K-12 Computer Science Framework

    Although learning how to build digital projects is a key part of Computer Science education, students should also learn a wider set of skills and competencies that will help them to harness the power of digital technologies as both creators and consumers. A comprehensive approach to K-12 Computer Science education includes learning about the following five focus areas:

    View Framework ➝

    Programming

    By the end of high school, students should be able to create a simple computer program.

    Computing and Networks

    By the end of high school, students should understand and be able to use the tools and devices commonly used to build digital projects.

    Data

    By the end of high school, students should be able to explain how we use computers to create, store, organize, and analyze data.

    Technology and Society

    By the end of high school, students should be able to explore the ways in which technology and society have mutually shaped each other.

    Design

    By the end of high school, students should be able to apply design principles to the digital projects they create.