Robo Code App: Basics

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

  1. Robo Code App Basics
  2. Robo Code Coding Interface
  3. Adding & Combining Actions
  4. Adding & Combining Triggers
  5. Exiting & Saving Your Project

To complete this tutorial you will need:

Robo Code App Basics

Turn the Main Block on and connect to the Robo Code 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 Code 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
  • Actions Dock - Here you can find all Actions and Conditions to program.
  • Connection Mode button: Tap this button to enter connection mode where you can connect states together.
  • Trash Bin: Use it to delete the Actions or Connections.
  • Glossary: Press the question sign in the upper left corner of the screen to go to the special glossary and read in details about all the Robo Code App Coding

Adding & Combining Actions

Actions - Coding icons which look like bubbles and perform an output task. There are 4 types of Actions  in the Action Dock – Sounds, Visuals, Movement and Specials.

Color Logic: Actions correspond to the RW Modules

Attach new Modules - RGB Light and 2 Motors to the Main Block to the Main Block to see Visuals and Movement  Actions available in the Action Dock.

Adding Actions on the canvas

Drag & drop the first Action on the canvas. It appears with a Start Point on it. Drag more Actions on the canvas.

Action Settings

Tap on an Action to adjust it. Different Actions have different Settings. Sounds don’t have any settings.

Connection: Combining the Actions into a Sequence

Press the Connection Button to activate the Connection Mode and draw an arrow from the first Action to the second and third. Tap anywhere on the canvas to deactivate the Connection Mode. You created two Connections.

Direction of a Connection

Pay attention to the direction of the arrow you draw to avoid a mistake in the code.

Delete Mode

Press the Trash Bin button to enter the Delete Mode and delete the wrong Connection by clicking on it. Tap anywhere on the canvas to deactivate the Delete Mode.

Play the code

Once your code is ready, press Play Button to start the program. The green circle will indicate what part of the code is executed now.

Stop the code

You can stop your code any time you need by pressing the red Stop Button.

Create a State

To execute multiple Actions at the same time, drop one on top of another. This big bubble is called State. Test the program to see how it works. You can combine up to 5 Actions in one State.

Please note: It’s not possible to combine actions that use the same module into one state.
Arrange the Actions & States

You can move all Actions and States around to arrange them how it’s more comfortable for you.

Loop

To make an infinite loop, connect the last state to the first so that it forms a continuous flow.

Start Point

The first Action that you drop on the canvas has a Start Point. It means your code starts here. You can move the Start Point from one Action to another.

Adding & Combining Triggers

Triggers are coding icons which look like red stickers and have to be placed on the Connection between 2 Actions. Triggers are conditions that regulate if this Transitions between 2 Actions happens.

Adding a Trigger

Drag & drop a Counter Trigger on one of the Connections.

Trigger Settings

Tap on a Trigger to adjust its settings. Different Triggers have different Settings.

Try out a Counter Trigger

Try out a Counter Trigger by running your code. The Counter Trigger regulates how many times the Transition will be executed, so it is needed to create a Finite Loop.  It means that the code will stop after the Transition was repeated 2 times.

Combining 2 Triggers

You can combine two triggers using AND/OR logic. Here we will try the AND logic together and you can learn more about Triggers in the next tutorial here.

If two Triggers are placed in the AND mode, both of them need to occur (=to be TRUE)  for the transition to happen. Add a Timer Trigger to your code and change the settings. Now the Transition will happen 2 times and each time in 3 seconds.

Congratulations!

You just created your very first Code project!

Exiting & Saving Your Project

Press the Save & Exit Button to exit to your Coding Lab, your project will be saved automatically.