Deprecated: Required parameter $query follows optional parameter $post in /var/www/html/wp-content/plugins/elementor-extras/modules/breadcrumbs/widgets/breadcrumbs.php on line 1215
Display (Quarky) - Blocks, Python Functions, Projects | PictoBlox Extension
[PictoBloxExtension]

Display (Quarky)

Display-(Quarky)
Extension Description
Controls the 7 x 5 RGB LED display.

Introduction

The extension allows the user to control the RGB LED display of Quarky.

Connecting Quarky with PictoBlox

Let’s begin by first connecting Quarky to PictoBlox. Select your preferred type of device i.e. either the desktop/laptop or your smartphone and follow the instructions.

Desktop

Follow the steps below for connecting Quarky to PictoBlox:

  1. First, connect Quarky to your laptop using a USB cable.
    Power Quarky
  2. Next, open PictoBlox on your desktop.
  3. After that, select Block or Python Coding as your coding environment.
  4. Then, click the Board button in the toolbar and select board as Quarky.
  5. Next, select the appropriate Serial port if the Quarky is connected via USB or the Bluetooth Port if you want to connect Quarky via Bluetooth and press Connect.
    COM Port

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.
    PictoBlox in Mobile Phone
  3. Then, tap the Board button in the top-right corner of the toolbar.
    PictoBlox BoardSelect board as Quarky.
  4. Next, tap the Connect button:
    PictoBlox ConnectSelect your device from the list.

And voila! Quarky is now connected to PictoBlox.

Stage Mode

Stage mode is one of the two modes you can write your programs in Pictoblox. In this mode, you can write scripts for the sprite and boards to interact with sprites in real-time. If you disconnect the board with Pictoblox, you cannot interact with the board anymore. In this mode, you can make games and animation interacting with Quarky.

You can toggle between the upload mode and stage mode using the button on the top right side of Pictoblox.

Note:  You have to upload the firmware into the device before interacting with it. Please refer this doc: https://ai.thestempedia.com/docs/updating-quarky-firmaware-with-pictoblox/

In Python Coding Environment, use the following object declaration to use Python functions in Stage Mode:

quarky = Quarky()

Upload Mode

Upload mode is one of the two modes you can write your programs in Pictoblox. This mode allows you to write scripts and upload them to the board so that you can use them even when it is not connected to your computer, for example, you need to upload a script for making moving robots.

In this case, Quarky will run offline according to the program and it can not interact with the stage.

In Python Coding Environment, use the following object declaration to use Python functions in Upload Mode:

from quarky import *
Read More

PictoBlox Blocks

The block reports value 2 of the webhook event.
The block sets the selected servo motor angle to the specified angle in the specified time. This creates a smooth motion for the servo motor from the current angle to the specified angle.
The block sets the servo motors of humanoid legs & hips to the specified angles at the speed.
The block makes the selected motor to run at the specified speed.
The block makes a request to ChatGPT to translate the text specified in the first input field into the language specified in the second input field. The response of ChatGPT is then stored in PictoBlox and can be accessed using the get AI response block.
This block allows users to measure the amount of time that has passed since their device was turned on or since the timer was reset. It returns this time in milliseconds, making it a useful tool for measuring elapsed intervals.
This block allows the user to control a Brushless DC (BLDC) motor via Pulse Width Modulation (PWM) on a selected pin. The speed of the motor is adjustable, allowing the user to create the desired speed profile.
The block sets the cursor mode on a given LCD display. The mode specifies how the cursor will appear when characters are written or commands are executed. 
This block is used to move the robotic arm from its current position to a specific X, Y, and Z coordinate position over a specified period of time. This block breaks up the motion into smaller line segments for the robot to more accurately and efficiently reach the desired end position.
Set the IR threshold for onboard or external sensors connected to Quarky’s analog pin.
Starts the script whenever you press a specified key of the keyboard.
Rotate the sprite anti-clockwise a specified amount. Turn with 12 for a full rotation.
Returns the character to its default size.
Sets the color of the pen lines that can be drawn.
Displays a custom pattern from list on the quarky LED display.
Runs the blocks inside if the specified face expression is detected.
Changes the speed of the quarky robot. Speed can be set as slow, normal and fast.
After connection is established, turns the wizbot a specified number of step to the right.
Runs the blocks inside if a specified button is pressed of the wizbot.
The block is used to draw or fill a rectangle on the evive TFT display. It takes the coordinates of a point as input alongside the required width, height, and color and draws/fill the rectangle.
The block reads the state of the digital pin on evive (“High” or “Low”). If the state of the pin is “High”, it returns True, else False.
The block allows the user to remotely monitor the live status of devices and debug them by displaying the values of all the pins – both digital and analog.
This block moves the robotic arm’s end-effector to the specified X, Y, and Z positions in the specified time.
This block is to assign pre-defined hand actions to our Humanoid Robot.
The block sets its sprite’s X and Y position to that of the mouse-pointer or another sprite — in other words, it moves the sprite to a random position, the mouse-pointer, or another sprite.
The block changes the Stage’s backdrop to the specified one.
The block changes the volume of a sprite by the specified amount.
Depending on the argument, it is either a Cap block (all or this script), or a Stack block (other scripts in sprite). It is the only block that changes its shape.
The block sends a broadcast throughout the whole Scratch project — any scripts that are halted with the When I Receive () block and are set to the broadcast will activate. This broadcast block lets scripts send broadcasts, and have them wait until all scripts are activated by the broadcast ends.
All articles loaded
No more articles to load

Block Coding Examples

There are no block coding examples for the extension to show.

Python Functions

There are no python functions for the extension to show.

Python Coding Examples

There are no python examples for the extension to show.
Table of Contents