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
  1. Discuss the meaning of each color in traffic lights.
  2. Explain the working of Traffic lights
 Lecture Slide
Activity: Traffic Lights with Quarky 30  

  1. Demonstrate the procedure given in the Traffic Lights with Quarky Activity Sheet to the students.
  2. Ask the students to follow the instructions to create the project.
  3. 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 the points covered in the lecture.
 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.
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.