Program with Blockly

Use math, logic, loops, variables and discover more programming concepts

Get started

Plug Thymio to the computer with the USB cable or with the USB dongle and turn Thymio on by pressing 3 seconds on the central button

Launch “Thymio Suite”

Click on the Thymio Blockly icon

Your first program in a few clicks

All programming blocks are on the left panel. Drag & drop an event block in the programming area. Then, drag & drop action blocks inside the event block. Press Play.

Examples

Thymio stops at the border of the table

Front sensors make Thymio change color

Example using variables and subroutines

Press the forward button multiple times to make Thymio accelerate

First let’s set the value of the “speed” variable to 0

We create a subroutine called “checkSpeed” that will check the value of the “speed” variable and set the motors speed accordingly. When the “speed” variable value is equal to 3, we set its value to -1 so the next time the forward button is pressed the value will be 0 again

We use the “on forward button touched” event to increment the value of the “speed” variable and to call the “checkSpeed” subroutine

You have 3 different speed levels. If you press one more time the forward button, Thymio will stop. If you press it again, Thymio will go back to the first speed level.

Something still not clear?

Visit our support center and get help from the Mobsya team!

Contact us

Describe your issue