Discover our
resources

Activity: Fearful Thymio

Equipment:

  • 1 robot minimum
  • 1 computer/robot
  • Flat environment

Notions learned :

  • View sensor activation
  • Familiarize yourself with AI training in software

Age :

Ages 8 and up

Duration :

1h30 (2*45 min)

Example parameters :

  • Thymio the timid
    Possibility of enriching sensors and actions

Fearful Thymio

Recommended for hands-on learning.

Teach your robot to react to specific situations!In this activity, you'll learn how to set up the AlphaAI software and its neural network to operate Thymio in a simple environment.

This activity was designed with our partner MOBYSIA, makers of the Thymio robot.

Objectives

In this activity, we'll teach Thymio to react if something comes too close to him. Specifically, if its front and rear horizontal sensors detect an object, it will try to move away with its wheels. What's more, if he's surrounded on all sides and can't escape, he'll turn on himself.

Equipment set-up

Connect your robot to Thymio suite and then to AlphaAI. Place the robot on a flat surface, ideally with a tarpaulin, in a space of at least 80 cm². Select the parameters for this activity in the AlphaAI software

First phase: observation

Switch on the "stand-alone" button and switch off the "learning" button. Move your hand in front of the front and rear proximity sensors. What can we see? The robot's random behavior is normal: it has not yet learned to react to sensor stimulation.

Second phase: learning

Switch off the "stand-alone" button and switch on the "learning" button.
From now on, our actions will be recorded for Thymio training:

1. Approach Thymio to a receiver there's something in front of:
Place a finger in front of the central front sensor and click on the down arrow action icon.

2. Teach Thymio not to move if there's nothing there:
Ensuring that all Thymio's infrared sensors are at zero, click on the stop icon.

Third phase: autonomy

Now we can test how well Thymio has learned!

Switch on the "stand-alone" button and switch off the "learning" button.

Place your finger in front of its sensors: does Thymio behave as expected?

Fourth phase: more complete learning

Now let's make Thymio's reactions more complex by using all available sensors.

Start by adding new actions: move back right, move back left, turn right, turn left, move forward, and rotate 180°.
⚠️ Adding a new action will delete the robot's experience memory.

Switch off the "stand-alone" button and switch on the "learning" button.

Associate the stimulation of each sensor with a specific action, for example by following the instructions in this table:

Once Thymio has learned all the reactions for each situation, switch on the "autonomous" button and switch off the "learning" button.

Does Thymio behave as expected?