Table of Contents

Quarky Rangoli Using Quarky Connect | Multi-Robot Project

Quarky Connect Rangoli with multiple Quarky
Example Description
In this example, you will create a colourful digital Rangoli using 15 Peer Quarkys controlled wirelessly by one Master Quarky. The Quarky Connect extension uses ESP-NOW communication, allowing the Quarkys to communicate directly without requiring a Wi-Fi router or internet connection. The Master Quarky connects to all 15 Peer Quarkys and broadcasts different LED matrix patterns. All the Peer Quarkys display the colours together, creating a synchronised Rangoli effect.

In this example, you will create a colourful digital Rangoli using 15 Peer Quarkys controlled wirelessly by one Master Quarky. The Quarky Connect extension uses ESP-NOW communication, allowing the Quarkys to communicate directly without requiring a Wi-Fi router or internet connection.

The Master Quarky connects to all 15 Peer Quarkys and broadcasts different LED matrix patterns. All the Peer Quarkys display the colours together, creating a synchronised Rangoli effect.

Create Exciting Projects with Quarky Connect!

With Quarky Connect, you can create innovative and exciting projects like:

  1. Go Kart (Quarky Joystick Controller using Quarky Connect): Control multiple Quarky robots in a race to the finish line, where each robot needs to avoid obstacles and follow specific paths.
    Go Kart Quarky Connect Extension
  2. Pac-Man: Create a multiplayer version of Pac-Man where Quarky robots can act as the ghosts, chasing the main character in a dynamic maze.
    Pac Man Quarky Connect Extension
  3. Fruit Chase: Program Quarky robots to chase and collect virtual fruits on a grid, with each robot moving based on the commands sent by the master robot.
    Fruit Chase Quarky Connect Extension

How Does Quarky Connect Work in This Project?

The Rangoli setup follows a Master–Peer communication model:

  • One Quarky acts as the Master.
  • Fifteen Quarkys act as Peers.
  • Each Peer is added to the Master using its unique BLE name.
  • The Master sends LED matrix commands to all connected Peer Quarkys.
  • The Peers receive these commands and update their displays together.

The Quarky Connect display blocks can broadcast a pattern to all connected Quarkys by selecting the All option.

Hardware and Software Requirements

Hardware

  • 1 Master Quarky
  • 15 Peer Quarkys
  • USB cable
  • Computer with PictoBlox

Make sure all Quarkys are sufficiently charged before starting the activity.

Software

  • PictoBlox 9.1.0 or later
  • Quarky firmware 6.0
  • Quarky Connect Extension

The current Quarky Connect documentation specifies PictoBlox 9.1.0 or later and Quarky firmware 6.0 for Quarky Connect support.

Download PictoBlox

Peer and Master sb3 Files

You can download the Quarky Connect Rangoli Master and Peer code by clicking here.

Updating Quarky Firmware

Before using the Quarky Connect extension, ensure that your Quarky is updated to the latest firmware version (greater than 6.0).

Follow the steps below to upload the latest firmware:

Step 1: Make sure PictoBlox is installed on your device.

Please make sure to use PictoBlox version 9.1.0 or later for Quarky Connect Extension support. Click Download PictoBlox to visit the download page, select your operating system, and follow the on-screen instructions to install the latest version.

Download PictoBlox

Step 2: Open PictoBlox and select the Block Coding environment.

Select the Block Coding environment

Step 3: Connect your Quarky to your computer using a USB cable.

USB-Attach

Step 4: Click on the Board button from the toolbar and select Quarky.

Select the Quarky Board

Step 5: Select the appropriate Serial Port and click Connect.

COM Port

Step 6: In the upper right corner of the PictoBlox window, you will see the Upload Firmware button. Click it, and a status window will open.

Step 7: Wait for the confirmation message on the screen.

confirmation message on the screen

Accessing Quarky Connect in Block Coding

Follow these steps to use the Quarky Connect extension:

Step 1: Create a new project.

Step 2: Select the Block Coding environment.

Select the Block Coding environment

Step 3: Select the Quarky Board.

Select the Quarky Board

Step 4: Click on Add Extension.

Step 5: Select and add the Quarky Connect extension.

Step 6: You can now access all Quarky Connect blocks.

Peer Receiver Quarky Setup

The Peer Quarkys listen for commands sent by the Master and execute the received display commands.

Note: Peer Quarkys work only in Upload Mode.

The same Peer code can be uploaded to all 15 Peer Quarkys

Step 1: Open the Peer Code

Open the Peer Code (.sb3) file in PictoBlox.

Step 2: Upload the Peer Program

Switch to Upload Mode and upload the code to the first Peer Quarky.

Upload Code button in pictoblox

Repeat this process for all 15 Peer Quarkys.

After uploading, keep all Peer Quarkys powered on and ready to receive commands.

Quarky connect Rangoli Peers Block Code

Master Controller Quarky Setup

The Master Quarky controls all 15 Peer Quarkys.

Its program performs three main tasks:

  1. Initialises Quarky Connect.
  2. Registers all 15 Peer Quarkys.
  3. Broadcasts LED matrix patterns to all connected Peers.

The Master side of Quarky Connect can operate in either Stage Mode or Upload Mode, depending on the project setup.

Step 1: Open the Master Code

Open the Rangoli Master Code (.sb3) file in PictoBlox.

Quarky connect Rangoli master Block Code

Arrange the Quarkys

Once all Quarkys are programmed:

  1. Power on all 15 Peer Quarkys.
  2. Arrange them physically in your chosen Rangoli design.
  3. Keep their LED matrices facing upward and clearly visible.
  4. Power on and Connect the Master Quarky.
  5. Run the Master program.

You can arrange the Peer Quarkys in a:

  • Circular pattern
  • Flower pattern
  • Diamond
  • Grid
  • Custom symmetrical Rangoli design

The physical arrangement of the 15 Quarkys combines with the changing LED colours to create the complete Rangoli effect.

Testing the Rangoli

Start the Master program and observe the Peer Quarkys.

Check that:

  1. All 15 Peer Quarkys are powered on.
  2. All Peers are connected to the Master.
  3. Each Peer changes its LED matrix colour.
  4. The colours change approximately together across all Quarkys.
  5. The colour sequence repeats continuously.

Expected Output

The 15 Peer Quarkys should display changing LED matrix colours together, producing a synchronised digital Rangoli pattern controlled by the Master Quarky.

Quarky Connect Rangoli with multiple Quarky