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 |
|
Lecture Slide |
| Activity: Self Driving Car | 25 |
|
Lecture Slide, PictoBlox File and Activity Sheet |
| Concluding the session | 5 |
|
Lecture Slide |
Things to Remember
Before Class
- Make sure each PC has the latest version of PictoBlox installed and running.
- Make sure all the Quarky robots are in working condition and are fully charged.
- 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.
- Make sure that all the devices running PictoBlox has a working webcam as well as bluetooth.
During Class
- If the students are unable to find a block, point them to the color of the block on the block palette.
- Assist students in mounting their smartphones properly on their quarky car such that smartphones don’t fall off from the Quarky.
After Class
- Make sure students save their codes/scripts.
- Make sure they shut down the PC/Laptops.
- Make sure they return Quarky and USB cable in good condition.