Picar-X Lesson 8 Taxi PiCar-X

 Basic Teaching Information

Suitable School Age

9-12 years old.

Duration

90 minutes

 

 

Teaching Objectives

1. Understand the importance of artificial intelligent face detection in automatic drive.

2. Know the application and importance of face detection in daily life.

3. Review the use of video monitor on Bluetooth page.

4. Learn how to enable video detection, face detection, and learn the horizontal and vertical rotation block for camera.

5. Know the meaning of different properties of an image.

Important and Difficult Points of Teaching

Teaching Key Points

The usage of face detection and camera angle adjustment blocks.

Teaching Difficult Points

PiCar's face detection is relatively simple and has no in depth algorithm, so PiCar is not so quickly responsive. The teacher needs to guide the students to do the experiment patiently.

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, and different types of face photos.

Teaching Procedure

Teaching Stage

Teaching Content

Duration

1. Lead in

Review the knowledge of traffic sign detection introduced last time.

The teacher lets students think and answer the question: do we need face detection for automatic drive? If so, what are the usage scenarios?

Next, the teacher introduces the principle of face detection through practical examples and the face detection effect of the camera on PiCar.

15 minutes

2. Objective

Now PiCar is a self-driving taxi. When it detects a person, it says, "Hello, would you like to take a self-driving car?

When we press the button "A" via Bluetooth, PiCar will nod and say, "I'm ready to go!”and drive a short distance then stop.

Pressing “B” means you don't need to ride. Then the car will shake its head and say “welcome to ride next time”.

The teacher asks students to think what route they want PiCar to travel and asks them record the route on the paper.

5 minutes

3. Program Test

1. The teacher introduces the function of face detection block and reviews the use of Bluetooth video monitor.

2. The teacher explains the face property detection blocks, reviews the meaning of width and height, the meaning of quantity and X & Y coordinates, and guides students to learn the image distribution on the video monitor.

3. The students learn how to use string blocks.

Task 1: Start the video monitor and face detection function. Ask PiCar to print the properties of the detected faces in this order: number of faces→width of faces→height of faces→position of faces on the debug monitor.

Put your own face or a face photo in front of the camera to test face detection.

Students learn the horizontal and vertical rotation block for camera.

Task 2: Use a Bluetooth joystick control to direct PiCar’s head shaking and nodding.

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:

Now PiCar is a self-driving taxi. When it detects a person, it says, "Hello, would you like to take a self-driving car?

When we press the button "A" via Bluetooth, PiCar will nod and say, "I'm ready to go!”and drive a short distance then stop.

Pressing “B” means you don't need to ride. Then the car will shake its head and say “welcome to ride next time”.

In this process, the teacher helps the children to be creative and make the game more fun.

15-30 minutes

5. Summary and Reflection

Summary:

1. What applications does face detection have in life?

2. What role can face detection play in automatic drive?

3. In today's experiment, what limitations do you feel are present in face detection?

Reflection:

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

Make self-driving cars give way to pedestrians.

Picar-x

Leave a comment