exercice-thymio-generation-robots

Thymio, a robot to discover math and geometry!

This entry was posted in Education: resources for teachers, Robotics tutorials and tagged , , , on by .

Who is this exercice for?

  • Elementary school (from 1st grade to 5th grade)
  • beginning of junior High school (6th grade)

What will the pupils discover? 

  • Calculate with integers
  • Progressivity marks
  • Recognize and use some geometric models
  • Move an locate an object in 2D space

Goal of the exercice

The pupils, in pairs, will use a Thymio robot to draw a picture. The tracing of each line must be programmed by the pupils using the Timer function of the Aseba VPL software.

Timer/Timer elapsed functions

exercice-thymio-timer-ecoule

Timer elapsed
This event occurs when the timer times out.

exercice-thymio-timer

Timer
This action starts a timer with a timeout in the range of 0 to 4 seconds, defined by the user by clicking somewhere in the clock face. When the timer has elapsed, a timer event is generated.

With Timer and Timer elapsed, it is possible to calculate a distance from the Time variable to make Thymio move to the different waypoints, so that the drawing is completed.

The conversions table below will help you do your math!

exercice-thymio-calcul-distances

thymio-dessiner-un-chateau-cycle-1

For this exercice, we have chosen to draw a castle, but it is up to you to decide which picture you will draw! One restriction though: it is preferable to have a design that can be drawn without raising the pen from the paper.

Instructions for this exercice with Thymio 

  1. Choose a simple shape to draw..
  2. Then, measure the sides of your drawing. You can approximately determine the speeds and times for each line thanks to the table of conversion.
  3. Create your blocs using the Timer function for the Time variable and the State function to count the steps. Be careful, only 16 steps are possible using graphical programming (VPL). To draw the castle, with used the Aseba Studio interface (not the Visual Programming Language).

State function

thymio-les-etats

State function
This action sets the internal 4-bit state of the robot. Grey means keeping the current value, white means set it to 0, yellow means set it to 1.

Castle drawing code (solution)

Exercice solution

If you don’t own a Thymio robot (yet)..

You can buy the Thymio robot (both standard and wireless versions) on our webstore:

Thymio II robot for education Wireless Thymio robot for education

We also sell packs, with everything you need to get started! 

Robot mobile éducatif Thymio II