Leçon 1, Chapitre 1
En cours

Pictoblox robotic – Self Driving Car (teachers)

Yann KIDSHAKER 19 mars 2025

Self Driving Car

Objectives

After this lesson, students will be able to:

  • Create a self-driving car using Quarky to detect road signs and landmarks from their device camera.
  • Explain the use of and implement nested if-statements in their scripts.
  • Write a script that makes their Quarky robot make movements based on the sign it detects in the camera.
Introduction

This session is the second and final part in making a self driving car using Quarky. In this session we update the script we made in the last session to make a fully fledged self driving car by assigning various movements to the car, based on the sign it detects from the camera. Students will also be introduced to the concept of nested if-statements in coding, which is essential in implementing the self driving maneuver as well as in their coding journey.

Activity

A self-driving car that makes various movements, based on the sign it detects from the camera.

Teaching Resources
PicoBlox Code
Title Description File
Self Driving Car A self-driving car that moves around, based on the sign it detects from the camera. https://ai.thestempedia.com/wp-content/uploads/2022/03/session17_Self-Driving-Car.sb3
Timeline
Title Approximate Duration Procedure Reference Material
Recap: Sign detection in Self Driving Car 10
  1. Give a recap  of sign detection in PictoBlox for self driving car.
Lecture Slide
Activity: Self Driving Car 25
  1. Ask students to open the file they made in the last session in PictoBlox for Sign Detection in Self Driving Cars.
  2. Demonstrate the procedure given in the Self Driving Car Activity Sheet to the students.
  3. Ask the students to follow the instructions to create the project.
  4. At the end of the activity, the teacher must check if all the students have created the project and provide feedback accordingly.
 Lecture Slide, PictoBlox File and
Activity Sheet
Concluding the session 5
  1. Make sure that all the students save their script properly before closing PictoBlox.
  2. Give a summary of all the points covered in the lecture, and clear doubts if any.
Lecture Slide
Things to Remember
Before Class
  1. Make sure each PC has the latest version of PictoBlox installed and running.
  2. Make sure all the Quarky robots are in working condition and are fully charged.
  3. Make sure all the Quarky robots have a working USB cable with them. If you are using Bluetooth to connect Quarky with PictoBlox, make sure that you have downloaded the PictoBlox Link and it stays well connected.
  4. Make sure that all the devices running PictoBlox has a working webcam as well as bluetooth.
During Class
  1. If the students are unable to find a block, point them to the color of the block on the block palette.
  2. Assist students in mounting their smartphones properly on their quarky car such that smartphones don’t fall off from the Quarky.
After Class
  1. Make sure students save their codes/scripts.
  2. Make sure they shut down the PC/Laptops.
  3. Make sure they return Quarky and USB cable in good condition.