Les langages de Thymio : VPL, Blockly, texte et Scratch

The different levels of Thymio robot programming

This entry was posted in Education & Robotics on by Vanessa Mazzari.

Thymio is a small robot you can use to explore the world of robotics and to learn the robot language. It’s designed for a large range of ages because it offers different levels of programming.

This article explains the differences between the three types of programming: VPL, Blockly, Text (and you’ll know more about Scratch for Thymio!).

Do you want to get a head start in teaching coding to kids?


Mobile robot Wireless Thymio for education

A child’s guide to programming: 1, 2, 3... codez! (French)

Accessories for the Thymio robot

There are three levels of Thymio robot programming, each offering different features but all requiring the same software, which you can download here: https://www.thymio.org/fr:start

But what the main differences between these languages?

Visual programming (VPL)

This is the easiest type of programming.

There is an interface designed for children that allows you to control the robot very quickly. Simply assemble the small icons together to trigger actions initiated by the selected sensors.

Programming the Thymio robot with VPL

 

To save the program in Thymio, you just click on the green arrow (“play”) to send the program to the robot. It’s as simple as that – your Thymio robot is already capable of moving, emitting light and sound and avoiding obstacles.

This type of programming is ideal for pupils at primary school and in the first years of middle school.

Block-structured programming (Blockly)

This type of programming takes us a step closer to text-based programming, because it allows you to create conditions and sensor-dependent loops and to trigger the Thymio robot’s actuators.

It requires a bit more logic to make it work than with the previous type of programming.

Programming the Thymio robot with Blockly

 

This type of programming is designed for middle school pupils.

Text-based programming

Text-based programming is used to program a large number of robots.

Once you’ve mastered it, it’s a much more rapid and powerful form of programming. In this context, it can be used to launch “fast” features, requiring users to simply click on the action they want in order to start it.

The interface also offers more advanced features, like displaying the values of the robot’s sensors which you can then use to more accurately adjust your robot’s behaviour.

Text-based programming uses the same logic as block-structured programming. If you want Thymio to avoid a line, for example, you need to create a condition for the sensors THEN activate the servo motors.

Programming the Thymio robot with text

 

Even so, most people will have no problems with the interface because all of the functions required to program the robot are pre-recorded in the software. You simply have to choose the right settings to make your robot more intelligent!

This type of programming is intended for secondary school and even first-year higher education students.

Thymio/Scratch compatibility

Long awaited, the Asebascratch software link allows the Scratch programs and its sprites to interact with your Thymio II or Wireless Thymio robot. So you can include your Thymio robot as a sprite in a Scratch scene.

How to easily set up Scratch for Thymio?

  1. Download and install the Aseba Studio Suite
  2. Download and install the Scratch 2 Editor
  3. Download and install the Scratch2-ThymioII Link
  4. Link your Thymio to the computer (WiFi or USB)
  5. Double-click “Scratch2-ThymioII” to run the helper
  6. Open one of the Scratch 2 examples (Thymio-II.sb2)