Guide for conducting classes with children from 4 years old
PrimaSTEM helps children step by step master logical thinking, the basics of programming and mathematics. This guide will help you conduct classes with children from 4 years old.How it works
Children program the movements of a small ladybug robot. To do this, they place command tokens on the control board.- “Forward”: the robot moves straight.
- “Left”: the robot turns left.
- “Right”: the robot turns right.
- “Function” (the ”[ ]” token): replaces a sequence of commands.
- “Repeat”: repeats a command or function several times.

Contents of the guide
- Why run robotics and programming classes
- How to organize classes in different conditions
- Activities and learning objectives
- Detailed instructions for use
- Description of activities
- Appendices
- About the project and authors
What PrimaSTEM teaches
- Program with your hands, without a screen
- Understand that machines work by algorithms
- Plan actions in advance
- Think logically
- Build sequences of commands and functions
- Understand what a “bug” is (an error in the code) and find errors
- Study numbers, arithmetic, and geometry visually
What PrimaSTEM consists of
What’s in the box
- Ladybug robot
- Control board
- Command tokens *
- Activity guide *
Why run programming and math classes
Code, programming, and automation have become part of our daily lives. In recent years, people have learned to create machines that do things machines could not do before: understand, speak, hear, see, respond, write. There are many examples: self-driving cars, assistant robots for the elderly, delivery robots, and others.Why teach programming and robotics
When a child learns to program, the child learns to understand the machines around us. The child learns to turn small and bold ideas into real projects. The child breaks a complex task into simple steps. The child works with others to solve shared problems.Born in the digital age
It may seem that children and teenagers know technology well. They use digital entertainment a lot. But can they use these tools to create something of their own and express themselves? What do they do when they run into a technical problem?How to organize classes
The activities suit different goals and educational settings. All activities in the guide are numbered. Below you can see which activities fit your setting.Who it is for
- Children from 4 to 8 years old.
- Senior and preparatory groups of kindergarten, 1st and 2nd grades of primary school.
Activities for after-school work
Activities 1, 2, 4, 5, 6, 7, 8, 9, 10.Activities for school
Activities 2, 3, 4, 5, 6, 7, 8, 9, 11, 12.After-school work
In a group, it is better to have no more than 12 children, so that everyone can take an active part. We recommend one device for 2–3 students. This way children learn to work in a team and to communicate.Work at school
In a lesson, it is best to work with PrimaSTEM in small groups of 4–6 children with one teacher. The other students do a different task at the same time with a teacher’s assistant. Students in grades 1–2 can, for example, practice drawing the robot’s path from a program. In both cases, it is better to work in a multipurpose hall, right on the floor. You can also push tables and chairs aside to clear space. Attention. Charge the batteries of the control board and the robot in advance.Activities and learning objectives
Instructions for use
Contents of the instructions
- Introduction to materials
- Programming a function
- Maps
- Technical explanations
Introduction to materials
Robot
A small wooden ladybug robot with two eyes.Basic commands
Control board
On the control board, you control the robot: you place command tokens in the free cells (D). The upper row (A) of 6 pairs of cells, linked by an execution line (E), is the main program. The program starts at the left cell (D) and ends above the ▶ Start button (B). This button sends the commands to the robot and starts the program.LED colors
If a token is placed correctly in a cell, the LED is green. If you add a repeat to a movement command in the same pair, the LED is blue. If tokens are placed incorrectly, for example two movement commands in one pair, the LED is red. The robot skips that command.Battery and power button
The robot and the control board run on built-in rechargeable batteries. You charge them through a USB-C port. The power button (ON/OFF) is on top of the robot and on the front left of the control board. When the robot or the control board turns on, a short beep sounds. When the control board is on, the LED on the front panel is green. When the robot is on, the LED near the USB-C connector is green.Wireless communication
The robot and the control board are linked by Bluetooth with a range of about 5 m. After the robot connects to the control board for the first time, the link works by itself. You do not need to set it up.You can pair the control board with another robot.
- Turn on a robot that is not yet paired with the control board.
- Turn on the control board.
- Hold down the ▶ Start button on the control board for 10 seconds, until you hear a beep and see a light signal.
How to build and run a program
The program (the “sequence of movements”) starts on the left of the control board. It follows the engraved arrows ”>”. This is the execution line, and it links the pairs of cells horizontally. If there is an empty cell before a token, the robot skips the empty cell and runs the command of that token. If a token is placed incorrectly, the LED is red and the robot skips that part of the program. This happens, for example, when “Repeat” is in a pair without a command, or when two command tokens are in one pair.Programming a function
How to create a function
The “Function” token (”[ ]”) replaces a sequence of commands. With it, you can build longer programs and solve harder tasks. To create a function, place the movements in the lower row of the control board: 5 pairs of cells. The robot runs this row from left to right every time it meets a “Function” token in the main program (the top row).Maps
Which maps fit
In the first activities, children learn algorithms, programming, and numbers. For this, the robot moves on a map with a grid. It is best to use a map with 15 cm cells: this is the distance the robot covers in one default step. Maps made for other robots also work, if the cell size suits this robot.You can change the default step from 15 cm to the cell size of your map, for example 10 cm, 12.5 cm or 20 cm. To do this, place the service token “Default Step” with a number in millimeters: 100 for 10 cm, 125 for 12.5 cm, 200 for 20 cm.If you don’t have a map, make one yourself. Stick thin masking tape on a flat table or floor. You can also take a sheet of Whatman paper (or thick banner fabric) and a marker. A chessboard map or a blank map with cells is for practicing moves from one point to another. The colors do not distract. A colored map helps to tell short stories about the robot’s travels. For example: “The ladybug leaves the house and goes to the mountains through the forest.” The class can make a new map and invent new stories about the ladybug’s travels.
Examples of maps
Chessboard map

Technical explanations
How it is built
The control board and the robot have microcontrollers and Li-Ion batteries. The devices are linked by radio through the standard Bluetooth protocol. The robot’s circuit board controls all its behavior. It controls two 5V DC motors and two multicolor LEDs, plays sounds, communicates with the control board, etc. The control board’s circuit board recognizes the tokens in the cells, plays sounds, and controls 11 multicolor LEDs, one for each pair of cells. Each token has an NFC sticker with a command code. The control board reads this code when you place the token in a cell. When the control board has recognized the tokens and you start the program, the control board sends the commands to the robot by wireless communication.Your own command tokens
You can make additional command tokens, for example “Repeat 12” or more movement tokens. For this you need “blank” tokens with NFC stickers and an NFC-enabled phone. Most sticker types with a frequency of 13.56 MHz work. Video instructions are available on our YouTube channel: https://www.youtube.com/@primastemActivities
Detailed description of activities
- Activity 1: a path across a chessboard from point A to point B
- Activity 2: introduction to PrimaSTEM
- Activity 3: a child plays the robot, orientation and algorithm
- Activity 4: predict the robot’s path from a program
- Activity 5: command sequences in a random program
- Activity 6: take the robot to the mountains with the control board
- Activity 7: introduction to the “Function” token
- Activity 8: a route to the goal with a function
- Activity 9: debugging a program with an error
- Activity 10: find an error in a program on paper
- Activities 11 and 12: predict the robot’s movements (in activity 12 with the “Function” token)
Activity 1. Path across a chessboard from point A to point B
- individually
- 15 min
- on paper
- printable documents
Goal
- Plan a path across cells from point A to point B on a map.
For printing
Print for each student the sheet “Appendix 1. Moving on the map”.Exercise
Children draw on the grid the path the mouse takes to reach the cheese. Start with the left exercise, which is simpler. Then move on to the right one.Moving across cells
The mouse moves through the cells of the grid. It cannot move diagonally. Children need to understand that the mouse’s path is divided into stages: it moves one cell at a time. This is moving step by step.
Discussion in the group

Some paths are longer than others
Count how many cells the mouse passes to reach the cell with the cheese:- 3 cells on the green route
- 3 cells on the gray route
- 3 cells on the blue route
- 13 cells on the yellow route
The shortest path
All these paths are correct, but the mouse will choose the shortest one. Ask the children: “Why did the mouse choose the shortest path?” The answers can differ. The mouse wants to save energy: it is very tired and wants to walk as little as possible. Or the mouse is in a hurry: it is very hungry and wants to get to the cheese as fast as possible. Note for the facilitator. It is the same with robots. We always choose the shortest path, because it is more efficient.Multiple paths are possible
When the exercise is finished, ask the students to show their paths. There are always several possible paths, so the students will likely offer different answers, and all of them will be correct.Activity 2. Introduction to PrimaSTEM
- 15 min
- in a group
- demonstration
- practice
Goals
- Understand how the robot can move.
- Learn that the control board controls the robot.
- Understand what the command tokens do.

Presentation
Show each item on the table and name the words the children will need. First, the map. It is the same grid as in activity 1, only bigger. Then the ladybug robot. It can roll. The robot is controlled by the control board. The robot does what the tokens in the cells of the control board tell it. Tokens give commands: go straight, turn left or right.1st stage: demonstration
When the children know the words, show everything yourself. Place a token on the control board, and the children will see what happens.
Put the robot on any cell of the map. Place a token in the first cell of the program, as in the diagram below. Then press the white button ▶ Start.
2nd stage: hand over control
Remove the “Forward” token from the control board and give the child the “Left” token. Let the child place it in the first cell of the program and press the white button ▶ Start. The robot stays in place and makes a quarter turn to the left.
Ask another child to replace the “Left” token with the “Right” token and press the white button ▶ Start. The robot stays in place and makes a quarter turn to the right.
Then the children take turns at the control board. Give them only 3 tokens: “Forward”, “Left”, and “Right”.
When the robot finishes moving, the children can press ▶ Start again and repeat their program.
Let the children see for themselves that they can place tokens in any cells, except two commands in one pair. The robot runs them one by one, from left to right.
To stop the program, press ▶ Start / Stop again while the robot is moving.
Activity 3. A child plays the robot: orientation and algorithm
- 45 min
- in a group
- game
- map
Goals
- Take into account which way the robot faces at the start of the program.
- Predict the robot’s movements from the program.
For printing
Print for each student the cards “Appendix 2. Mission cards”.Game principle
This is a role-playing game in an open space. The children act as the robot on a black and white field.Game rules
One student plays the robot on the map. Instead of a map, you can use a floor with a square pattern: a drawing, tiles, or squares of thin masking tape. The other students program the robot with task cards. The children are not told which way the child-robot faces. They decide for themselves which way the robot must face to complete the mission.- The child-robot stands on red cell 1. The child-robot must reach green cell 2.
- The child-robot stands on red cell 1. The child-robot must reach purple cell 3.
- The child-robot stands on red cell 1. The child-robot must reach blue cell 4.

To make the map last longer, ask the child to take off their shoes.
End of the game
Now the child understands: when you program a move, you must take into account where the robot stands and which way it faces. The robot runs a command depending on which way it is turned. It moves straight, turns left, or turns right, but always from its starting direction.Activity 4. Predict the robot’s path from a program
- 45 min
- individually
- on paper
- printable documents
Goals
- Take into account which way the robot faces at the start.
- Understand the commands of the program.
- Predict the robot’s movements from the program.
For printing
Print for each student the cards “Appendix 3. Draw the path for a program”. The children get a sheet with a program of several commands. They draw the path the robot will take with this program. With this program, the robot moves forward three times:Note for the facilitator
This exercise on paper can be difficult. If a child finds it hard to understand the robot’s turns and the order of movements, take the PrimaSTEM set. Ask the child to lay out the programs from the sheets on the control board. When children touch and watch, they understand better.Activity 5. Command sequences in a random program
- 45 min
- in a group
- game
Goals
- Connect commands to the robot’s movements.
- See the boundaries of the map.
- Learn to transfer commands to the control board.
Game process
- Put the robot on any cell of the map, preferably at the edge. Choose any direction.
- Roll the die. Move the robot by hand and write down the program on paper or on a board: draw an arrow for the “Forward” command. If the robot goes off the edge of the map, roll the die again.
- Repeat this to get 2 programs in a row. The robot must not leave the map, so roll the die again if needed.
Activity 6. Take the robot to the mountains with the control board
- 45 min
- in a group
- practice
Goals
- Break a route into stages.
- Build a program for a specific goal.
- a control board;
- movement tokens: 4 “Forward”, 4 “Left”, and 4 “Right” per group, and put the other tokens aside;
- a map and a robot.
1st stage: reflection
The ladybug robot is at home, and we want to take it to the mountains. Write on the board a program that gets it there.If you don’t have the right map, draw the places on paper, maybe together with the children. Tape them to the map.
2nd stage: programming
Ask the children to lay out the robot’s movements on the control board with tokens, in order. This program must bring the robot to the goal. Expected program:3rd stage: verification
Every self-respecting programmer checks whether the program works. Ask the children to lay out the program on the control board and run it.Activity 7. Introduction to the “Function” token
- 15 min
- in a group
- demonstration
Goals
- Understand that the “Function” token can replace other commands.
- Get to know repeating a sequence of commands.
1st stage: demonstration
Show the children the “Function” token.2nd stage: riddles
Now add the “Right” token at the end of the main program, as in the picture below.Activity 8. A route to the goal with a function
- 45 min
- in a group
- practice
Goals
- Break a route into stages.
- Build a program for a specific goal.
- Use the “Function” token in a program.
- tokens or homemade cards with drawings of commands: 4 “Forward”, 4 “Left”, 4 “Right”, and 4 “Function” per group;
- a map and a robot, without a control board.
1st stage: reflection
If your map has other pictures or none, change the task. Mark 2 points (Start and Finish) 4 cells apart at an angle of 90 degrees.The robot is at the flag, and we want to take it to the “Night” cell with clouds. You need to build a program with the “Function” token: lay out tokens or drawings of commands on the table. First ask the children which cells they want to take the robot through to reach the mountain. The mountain is about midway. There are many options. This time we choose routes where commands repeat, so that the “Function” token is useful.
2nd stage: not enough tokens
Ask the children to lay out the robot’s movements on the table with cards or tokens, in order. Keep strictly to the number of tokens each group has: 4 “Forward”, 4 “Left”, 4 “Right”, and 4 “Function”. Oh, there are not enough tokens! We need more “Forward” commands. Digital panic! :) Remind the children of the “Function” token: it replaces several other tokens. For example, it can replace several “Forward” commands, and the robot moves forward several times. Help the children build a program with the “Function” token, as in the picture below. Example route and its program:
3rd stage: verification
Help the children lay out the program on the control board and check it, as in the picture:Activity 9. Debugging a program with an error
- 20 min
- in a group
- practice
Goals
- Find an error in a program by watching it run.
- Fix the error in the program.
Activity 10. Find an error in a program on paper
- 20 min
- individually
- on paper
- printable documents
Goals
- Predict the robot’s movements to find an error in the program.
- Understand how to fix an error in the program.
For printing
Print for each student the cards “Appendix 4. Find and fix an error in the program”.1st stage: read the program
First ask the children to draw the robot’s path for this program. On the grid, the blue line shows the path the robot should take and the right arrival point.2nd stage: identify the error
When the path is drawn, you can see that the robot does not reach the finish (the black flag). It arrives at the red flag. Ask the children where the robot went wrong. They need to find the cell with the error. In the solution it is circled in red. There are 3 types of errors:- we used the wrong command
- we forgot a command
- we added an extra command
3rd stage: fix the error
Finally, ask the children to fix the error: to write a program that takes the robot to the black flag. Note. This exercise on paper can be difficult. If a child finds it hard to see the error, take PrimaSTEM. Ask the child to lay out the program from the sheet on the control board and run it. For example, the children can say “Oh no!” when the robot turns the wrong way. This makes the error easier to notice.Example 1
In this example, the command at the end is wrong.Example 2
In this example, there is an extra command at the beginning.Example 3
In this example, a command is missing at the beginning.Activity 11. Predict the robot’s movements
- 45 min
- in a group
- practice
Goals
- Predict the robot’s movements from a program without a function.
1. Program in silence
The children take turns. A child puts the robot in a corner of the map and lays out a program of no more than 5 commands on the control board. When the program is ready, ask the child to wait and not press the button yet.2. Place your bets
Ask the other children to guess whether the robot will go off the edge of the map.3. Check
When everyone has placed a bet, run the program and see what happens. Then put the robot back in the corner, and the next child builds a program.Activity 12. Predict the robot’s movements with a function
Goals
- Predict the robot’s movements from a program with a function.
About the project and authors
Who we are
The company PrimaSTEM created and produces the device of the same name. With it, children from 4 years old learn programming and mathematics without a screen. We are located in the south of France. Our materials are open. They help develop the creativity of children and of the adults who work with them. You can learn more about the PrimaSTEM device on the documentation site, available in 13 languages: https://docs.primastem.comContact
Write to us: info@primastem.com Our website with information and links to social media: https://primastem.comAuthors
Adaptation, text, illustrations: Andrei Chanov, 2026. Authors of the concept: Julie Borgeot / Dorie Bruyas from Fréquence écolesLicense of this guide
This work is licensed under CC BY-SA 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/4.0/ Creative Commons Attribution-ShareAlike 4.0 International This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes. If others remix, adapt, or build upon the material, they must license the modified material under identical terms.