Picar-X Lesson 4 : Remote Control Car Reverse Parking

Basic Teaching Information

Suitable School Age

9-12 years old.


90 minutes


Teaching Objectives


1. Learn about Bluetooth technology and its application.

2. Understand X, Y coordinates and mapping.

3. Learn about the mapping.

4. Get to know Bluetooth page, debug monitor, Bluetooth control.

5. Master the usage of printing, mapping, remote control blocks.

Important and Difficult Points of Teaching

Teaching Key Points

Learn X, Y coordinates and mapping, and the difference between loop blocks and start blocks.

Teaching Difficult Points

Understand when you need a mapping and when you don't.

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), block, paper cube, pen, and programming growth manual.

Teaching Procedure

Teaching Stage

Teaching Content


1. Lead in

Ask students “have you heard of Bluetooth?” and let the students give examples of smart Bluetooth devices they contact in life.
Introduce Bluetooth technology.
Through a video, the teacher leads in the application and usage of Bluetooth technology in auto industry.

15 minutes

2. Objective

Control PiCar to back into a garage. Guide the students to build a garage.

5 minutes

3. Program Test

1. Know how to enter the Bluetooth page.

2. Explain the X and Y coordinates by introducing the joystick control of Bluetooth control.

3. Get to know the debug monitor.

Task 1: Toggle the joystick up and down to get X and Y values that are printed on the debug monitor.

“Reading the remote control results is a repetitive process that involves putting codes into the forever block.”

In this time, lead in the concept of mapping and explain it.

“PiCar's turning angle ranges ±45 degrees. However, the range of turning left and right of the joystick is (-100~100) that is too wide. If you use the joystick directly and push it a little bit to left and right, the car will steer a lot.”

Task 2: By mapping, students select the appropriate range and the corresponding mapping number, and print the mapped values on the debug monitor, which helps them understand these relations about mapping.

value: X    original range: (a, b)      new range: (c, d)

The mapped value=X➗(a+b)*(c+d)

30-45 minutes

4. Read the program flow, complete tasks and optimize them.


Read the flow chart of the program, edit the final task program independently, and complete the task.

Guide the students to add various expansions according to their own ideas on the basis of completing the task (teachers can teach students according to their aptitude in this process, and the learning difficulty of students with better ability can be increased).

Task 3: Completed the program edition of the remote control car, students direct the car to back in the garage, being a qualified Bluetooth driver.

In this process, the teacher can explain the use of other Bluetooth controls to help the children to be creative and add other Bluetooth controls.

15-30 minutes

5. Summary and Reflection


What is Bluetooth technology? What are the intelligent applications in life?

What are the benefits of applying the Bluetooth remote control technology in the auto industry?

What is mapping? When do you need it?


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

Students think about other application scenarios of Bluetooth in automatic drive and whether PiCar can do them. If so, think about how to program; If not, ask teachers for help.

Leave a comment