Lesson 1 of 0
In Progress

Session 7: Emotions with Quarky

Lesson Overview

Quarky is going to be your friend throughout this adventurous journey. So it’s better that you get to know about him. In this lesson, we will do exactly that!

Quarky: Your AI Learning Buddy

Quarky is an electronic board with a lot of features using which you can make numerous exciting projects. You can program Quarky to make expressions, play sounds, detect touch, and much more. Let’s look at its various features.

You don’t have to remember any of the features right now as we’ll go through each of them, in detail, in the coming lessons.

Quarky Meets PictoBlox

You can control Quarky using PictoBlox, by connecting both of them together. Let’s begin by first connecting Quarky to PictoBlox.

First, choose the type of device you want to use for running PictoBlox. You can use desktop, laptop or your smartphone. Now, follow the below-given instructions -:

Desktop/Laptop

Follow the steps below for connecting Quarky to PictoBlox:

  1. First, connect Quarky to your laptop using USB cable.
    USB-Attach
  2. Next, open PictoBlox on your desktop.
  3. After that, select Block Coding as your coding environment.emo8
  4. Then, click the Board button from the toolbar, and select board: Quarky.Connect-to-QuarkyV2
  5. Next, select the appropriate serial port from Serial Ports if you want to connect Quarky via USB. If you want to connect Quarky via Bluetooth, you must download an app called PictoBlox Link on your computer, this is available freely here.
    You need to activate this app every time you want to connect with your quarky (or any other board) via bluetooth. Now you can click on Bluetooth Ports and press Connect on the appropriate Device name.2022-03-24 at 12-50-29

And voila! Quarky is now connected to PictoBlox.

Mobile

Follow the steps below for connecting Quarky to PictoBlox:

  1. First, power ON Quarky.
  2. Open PictoBlox on your smartphone. Go to My Space and make a new project by clicking the
    ‘+'(plus) button in the bottom-right corner.emo8 (2)
  3. Then, tap the Board button from the top-right corner of the toolbar.emo9Select board as Quarky.emo10
  4. Next, tap the Connect button:
    emo10 (2)Select your device from the list.
    emo11

And voila! Quarky is now connected to PictoBlox. Now, let’s make a script in PictoBlox to display expressions on Quarky’s matrix!

Let’s Code!

One-Time Display

Follow the steps below, to make the script for displaying expressions on Quarky:

  1. First, go to the Display palette and add a display () emotion block into the scripting area. Then, from the drop-down, select happy.2.1.1V2
  2. Click the display () emotion block. You’ll notice that Quarky is now happy!Happy
    Is there any way through which you don’t have to always click on the block to run it? Yes, there is – the hat blocks from the Events palette. The hat blocks in PictoBlox allow you to decide an event that would automatically execute the script. PictoBlox has several hat blocks in the Events palette. The most commonly used block is the when flag clicked block.
  3. Drag and drop the when flag clicked block into the scripting area from the Events palette.2.1.2V2
  4. Run the script by clicking the green flag.
    emo12
  5. Don’t forget to save your script by the name Emotions with Quarky.

Other LED Emotions: Like angry, disco, love, etc.
You can display these emotions by clicking on the dropdown of display () emotion

LED-Emotion 3

Exercise: Create a script that changes Quarky’s emotions when different keys are pressed on the keyboard.

Assignment

Before moving on to the next lesson, a small assignment awaits you!

You must upload the PictoBlox program you created in this activity to the website. Submitting the assignment is a must in order to receive the certificate after completing the course.

Follow the steps below to upload your assignment:

  1. Click on Browse.
  2. Search and Select your saved Project file(.sb3) and Click Open.
  3. Click on Upload to submit the assignment.
evive Alert
The file type allowed is the sb3 file, generated from the PictoBlox program. The maximum file size allowed is 5 MB.

Good luck!