Lesson 3: Getting Familiar with Quarky

Lesson Description

Learn to create exciting projects using Quarky. Program Quarky to express emotions using PictoBlox and its RGB LED matrix. Create scripts that change the emotion when different keys are pressed.

Quarky

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 the same.

Quarky is an amazing electronic board specifically designed for students. With this board, you can learn various cutting-edge concepts in a fun and interactive way. You can create numerous exciting projects such as an expression detector, AI delivery bot, home automation system, and more.

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.

Activity 1: LED Emotions with Quarky

Did you know that our friend Quarky can be expressive just like us? We can tell what it’s feeling just by looking at its eyes – which happen to be an RGB LED matrix! We’re going to use this matrix to display different expressions so that Quarky can show us how it’s feeling.

Coding Steps

Follow the steps below:

  1. Open PictoBlox App, go to My Space, and click on + button to create a new file.
  2. Let’s begin by first connecting Quarky to PictoBlox.
    1. Turn ON Quarky with the switch on the back side of the robot.
    2. Click on the Board sign.
    3. Select the Quarky board.
    4. Click on Connect sign.
    5. Select the appropriate Quarky device from the list.
    6. You will be prompted with the message Device Connected.
  3. First, go to the Display extension and add a display () emotion block into the scripting area. Happy by default is selected.
  4. Click the display () emotion block. You’ll notice that Quarky is now happy!
  5. Drag and drop the when flag-clicked block into the scripting area from the Events palette on top of the display () emotion block.
  6. Run the script by clicking the green flag. You will find the happy emotion displayed with Quarky RGB LEDs.
  7. Create scripts that change the emotions when different keys are pressed.

  8. Save the program as Quarky Emotions.

Activity 1: Output

Activity 2: Name Badge

Can you believe Quarky can display text too? Let’s make a script to display Quarky’s name on the matrix.

We have to use display () with () at () speed block to make this happen. This block displays the given text on Quarky as scrolling text. It takes 3 parameters as inputs: Text, Color, and Speed of scrolling.

Coding Steps

Follow the steps below:

  1. Open PictoBlox App, go to My Space, and click on + button to create a new file.
  2. Connect Quarky to PictoBlox.
  3. Drag and drop the when flag clicked block into the scripting area from the Events palette.
  4. Add a forever block from the Control palette below the when flag clicked block.
  5. Add two display () animation blocks in the forever loop and set the animation to blink.
  6. Go to the Display extension and add a display () with () at () speed block into the scripting area. In the space, write your Name. Then, set the color of the LED to any color of your choice from the drop-down and select the speed with which you want to display the text.
  7. Add another display () with () at () speed block and write your hobby.
  8. Finally, run the script by clicking the green flag!
  9. Save the project as Name Badge.

Activity 2: Output

Make sure you finish and submit the assignment, as well as take the quizbefore moving on to the next lesson.

 

Table of Contents