What Is Coding and Robotics? A Simple Guide for Parents and Teachers
By the SafariSTEM team · Updated
Coding is writing step-by-step instructions that a computer can follow. Robotics is designing, building and programming machines that sense the world and act on it. In a coding and robotics class, children write code that makes a real robot move, light up or react, so they see their instructions work.
What is coding?
Coding (also called programming) is giving a computer instructions in a language it understands. Every app, game and website is a set of these instructions, called a program.
Young children usually start with block-based coding, where they drag and snap together blocks such as "move 10 steps" or "repeat 4 times" instead of typing. Scratch is the best-known example. Older children move on to typed languages such as Python, which is used by professional programmers.
What is robotics?
Robotics is the science of building machines that can sense, decide and act on their own. A robot has three parts that work together:
- Sensors that notice the world, such as a light sensor, a distance sensor or a button.
- A controller (a small computer such as an Arduino board) that runs the code and decides what to do.
- Actuators that do something, such as motors that turn wheels, a buzzer or LED lights.
How do coding and robotics work together?
Coding is the robot's brain; robotics is its body. A robot only does what its code tells it to do, so children learn to think in a loop: sense, decide, act, then check the result.
A classic first project is a line-following car: a sensor sees a black line on the floor, the code decides whether to turn left or right, and the motors steer the car. When the car drives off the line, children find the mistake in their code and fix it. That is called debugging.
What do children learn from coding and robotics?
Beyond the technology itself, coding and robotics build skills children use in every subject:
- Problem solving: breaking a big problem into small steps.
- Logical thinking: using patterns, conditions (if this, then that) and loops.
- Resilience: testing, finding mistakes and trying again.
- Maths and science in practice: measuring, angles, speed, electricity and light.
- Creativity and teamwork: designing their own games, stories and robots, often in groups.
At what age can children start coding and robotics?
Children can start from about age 6 with block-based coding and simple robots. A common path is:
| Age | What they usually learn |
|---|---|
| 6–8 | Block coding (Scratch-style), simple animations and games, basic robot movements |
| 9–11 | Bigger Scratch projects, sensors, lights and motors with boards such as Arduino |
| 12–14 | Python, electronics projects, AI basics, 3D design and printing |
Is coding part of Kenya's school curriculum?
Yes. Kenya approved coding as a skill in the Competency-Based Curriculum (CBC), and the coding curriculum was rolled out in primary and secondary schools in April 2022, making Kenya one of the first African countries to do so.
Robotics is not yet a separate school subject. Most children learn it through school clubs, after-school and weekend classes, holiday programmes and competitions such as Robocon Kenya.
Do you need expensive equipment to start?
No. Children can begin coding on a phone, tablet or computer, and many first robotics lessons use shared kits in class. Buying a personal robotics kit can wait until a child knows they enjoy it.
Frequently asked questions
Is coding hard for children?
No. Block-based coding is designed for children as young as 6: they snap together picture blocks instead of typing, so they can make a game or animation in their first lesson and move to typed code later.
Which coding language should a child learn first?
Most children start with block-based coding such as Scratch, then move to Python at around 10 to 12 years old. Python is easy to read and is also used by professional programmers.
Is robotics the same as artificial intelligence (AI)?
No. Robotics is about machines that sense and act; AI is about computers learning from data to make predictions or decisions. Many simple robots follow fixed code, while more advanced robots use AI to recognise objects or speech.
Does my child need a computer at home to learn coding?
Not necessarily. Children can practise on a phone or tablet, and in-school or centre classes provide the computers and robotics kits needed for lessons.
Where can children learn coding and robotics in Nairobi?
SafariSTEM runs coding, robotics and AI classes for children aged 6 to 14 in Nairobi: in partner schools, at centres in Lavington and Syokimau, and online through the SafariSTEM eLearning app. You can book a free demo class.