Picar-X Lesson 3: Make PiCar Move

Basic Teaching Information

Suitable School Age

9-12 years old.


90 minutes



Teaching Objectives

1. Learn about AI (Artificial Intelligence) and Automatic Drive Technology.

2. Understand PiCar's driving guidance system and structure (motor, servo).

3. Get to know speed and Angle.

4. Master the usage of blocks that include forward, backward, delay, stop, turn, start, loop.

5. Know what is program.

6. Master the method of drawing flow chart and get used to reading flow chart.


Important and Difficult Points of Teaching

Teaching Key Points

1. Students learn basic block usage of Ezblock and the difference between start and loop blocks.

2.Master the relationship of speed, time and distance through practice.

3. Learn about turning clockwise and anticlockwise.

Teaching Difficult Points

Know the flow of program execution (of start and loop blocks).

Correctly understand the concepts of speed, turning clockwise and anticlockwise. 

Understand the relationship between positive & negative numbers and direction & angle.

In the experiment, it’s more difficult for the students to set certain turning time and angle of the car to go to a certain area.

Teaching Form

Give a lecture, cooperative group learning.

Teaching Media

Teaching Grouping and Teaching Aid

Teaching Group

Work in groups of one person.

Teaching Aid

PiCar (each student has one), tablet computer (each student has one), pen, and programming growth manual.

Teaching Procedure

Teaching Stage

Teaching Content


1. Lead in

Introduce the concepts of automatic drive and artificial intelligence.

Summarize the moving of PiCar: driving guidance system—the front wheel steers and the back wheel drives.

That leads to the definition and role of motor and servo. Then the teacher explains the concept of speed and angle.


    15 minutes

2. Objective

 In the clearing, three zones A, B and C are divided.

As shown, we have to program PiCar to go alone A→B→A→C


5 minutes

3. Program Test

Put forward the concept of program so as to lead to the required programming software—Ezblock Studio and its usage.

The blocks used in this lesson are described in detail, which can be used as a reference for future tasks.

Exercise 1: The teacher demonstrates how to let PiCar take the first step.

In this part, the teacher needs to demonstrate a series of processes from connecting Ezblock to flashing.

The code uses three blocks "forward", "stop" and "delay" to make the car drive from area A to area B.

(Since one attempt can only help confirm the time but cannot accurately calculate speed and distance, PiCar may not reach the region B. At the moment, a tape measure should be used to measure the travel distance of the car. The speed of the car should be calculated by the formula S =v*t)

After the teacher and students calculate the speed together, students try to imitate the teacher’s code, modify the values of delay and speed, and realize the travel from A to B. Students are encouraged to repeat the experiment.

Task 2:

Work with students to decompose the task. In this process, the code should be divided into two parts: curve S (adjust the direction) and line L

The teacher demonstrates the code steps of part S, and asks the students to estimate the relevant parameters according to the error, and tries again. After the experiment of steering, students continue the experiment of line L.

30-45 minutes

4. Read the program flow,

complete tasks and optimize them.

Task 3: PiCar goes from area A to area B, then from area B back to area A, and then to area C.

Guide students to master the method of drawing flow chart and get used to reading flow chart.

After the flow chart is drawn, students write the corresponding codes to complete the experiment.


15-30 minutes

5. Summary and Reflection


1. What is automatic drive?

2. What is artificial intelligence?

3. What is programming?


What did we ask PiCar to accomplish today? What difficulties did we encounter and what did we learn from this process?

10 minutes

· 6. Homework:

Search or imagine a future application scenario for automatic drive, communicate with students, and think about how PiCar can achieve this effect.


Leave a comment