Leçon 1,
Chapitre 1
En cours
Pictoblox robotic – Traffic Lights with Quarky (teachers)
Yann KIDSHAKER 19 mars 2026
Traffic Lights with Quarky
Objectives
After this lesson, students will be able to:
- Explain how traffic lights work.
- Write code to make a simulation of traffic lights and display them on the LED matrix of Quarky.
- Implement the concept of ‘code duplication’ in their code.
Introduction
Students will first learn, how traffic signal works? What each different color in traffic lights mean?and how exactly the traffic lights work?
Then, students will understand how a simulation of traffic lights can be coded using the PictoBlox environment. They will go about this, by arranging the PictoBlox blocks in a particular sequence.
Students will then learn and implement the concept of ‘code duplication’ since, they will be using the same type of code at two different places in their script, with little modifications, to build the whole project.
Activity
Simulation of traffic lights on the LED matrix of Quarky by writing code in PictoBlox.

Teaching Resources
PicoBlox Code
| Title | Description | File |
|---|---|---|
| Traffic Lights with Quarky | A simulation of traffic lights to be displayed on the LED matrix of Quarky | https://ai.thestempedia.com/wp-content/uploads/2022/03/Session9_Traffic-Lights-With-Quarky.sb3 |
Timeline
| Title | Approximate Duration | Procedure | Reference Material |
|---|---|---|---|
| Introduction to working of traffic lights | 5 |
|
Lecture Slide |
| Activity: Traffic Lights with Quarky | 30 |
|
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.
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.