Robo Blockly basics

Robo Blockly is a block-based, open-ended visual programming language that allows to write complex codes for Robo Wunderkind robots, sometimes it can be difficult to master, and can be complicated. This is why we recommend it as a next step after Robo Code and as a tool for more advanced coders.

In this tutorial, you will get to know Robo Blockly interface and basics, as well as create your very first Blockly project.

  1. Robo Blockly Basics
  2. Robo Blockly Coding Interface
  3. Code Blocks & Coding Logic
  4. Create Your Very First Code
  5. Exiting & Saving Your Project

To complete this tutorial you will need:

Robo Blockly Basics

Turn the Main Block on and connect to the Robo App

There are 3 Robo tabs to check out.

Create a new project to continue with the tutorial.

Robo Blockly Coding Interface

Welcome to your Coding Screen or canvas, here you can find different buttons & icons.

  • Play / Stop Button — Press it to try out or stop your code
  • Save / Exit Button — Press it to return to your Coding Lab
  • Code Blocks Menu — Here you can find all Coding Blocks available
  • Program Start — The starting point of the Blockly code
  • Variable Monitor — Place a variable in the monitor to see its value

Code Blocks & Coding Logic

There are 9 types of the Code Blocks in the Code Blocks Menu:

Some of them correspond with Robo Wunderkind modules’ inputs and outputs such as Sounds, Visuals, Motion and Sensing.

The other Code Block types help you to structure your code, such as Events, Functions, Variables, Flow and Operators.

Place the Code Blocks one below another, so they are connected to create a code.

A lot of theory, so let’s try that out!

Create your very first Blockly code

Let’s create a simple code to test how the Code Blocks work. Follow the steps below.

Add some Code Blocks to the Program Start

Drag and drop them so they are connected into a code.

Change some settings
Try out your code

Press the Play / Stop Button. The green dot on the left side of your code shows you the Program Flow

Explore the Flow Blocks

Program your robot to repeat a piece of code a few times or forever. Try it out and follow your Program Flow.

Congratulations

You just created your very first Blockly code!

Exiting and saving your project

Press the Save & Exit Button
Build
No items found.
Code
No items found.
Play
No items found.