Robo Blockly App: 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 the Robo Code App and as a tool for more advanced coders.

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

  1. Robo Blockly App 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 App Basics

Turn the Main Block on and connect to the Robo Blockly App

There are 3 Robo tabs to check out.

My Robo: This screen is dedicated to your robot.
Getting Started. Here you can find some pre-programmed projects with interactive building instructions.
Coding Lab. Here is where your projects are stored. Tap on the “+” card to create a new project.
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 more modules:

RGB Light, 2 Smart Motors and Wheels to the Main Block, now you can program Sounds, Visuals and Motion Code Blocks.

Add some Code Blocks to the Program Start

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

Change some settings

Such as sound clip, light color or number of seconds, angle or speed for the Motors

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

You will exit to your Coding Lab, your project will be saved automatically.