Grade-5-Coding and Robotics
Grade-5-Coding and Robotics
1 Introduction to Coding 1
2 Understanding Algorithm 2
3 Click Tap Go! Understanding Events 3
4 Cheese Hunt Activity 4
5 Cab Rush Activity 5
6 Survivor Bird Activity 6
7 E-GO Cleans Garden Activity 7
8 Cross the Road Activity 8
9 Maze Game Activity 9
10 Understanding Coordinates 11
11 Where Am I Activity 13
1 Introduction To Electricity 18
2 Basic Electronic Circuits 22
3 Light It Up: Assemble and Power Lamp 23
4 Introduction To Series & Parallel Circuits 26
5 Ring the Bell: Build your Smart Hut 29
6 Vibrating Bug Bot 33
7 eduCOBOT Shield Port Guide 36
8 Lighting Up: Trigerring LED with Esp32 41
9 Color your Code: Controlling RGB Light 43
10 Programming a Segment Display 44
11 Buzzer 48
12 Motor Magic: Controlling DC Motor 49
1 Introduction to Coding
• What is coding?
• What can we do with code?
• A puzzle to solve
• Coding is for everyone
• Websites and Apps: The websites you visit and the apps you use on your phone are all created using code.
• Video Games: All the characters, levels, and gameplay in video games are made possible by code.
• Data Analysis: Scientists and researchers use code to analyze huge amounts of data and make discoveries.
• Automation: You can write code to automate repetitive tasks, saving you time and effort.
www.educobot.com 1
2 Understanding Algorithms
• What is an Algorithm?
• Why are Algorithm important?
• Write your own Algorithm
• Summary
Just like in real life, algorithms are everywhere! When you tie your shoelaces, cook food, or even brush your teeth,
you follow a set of steps. In coding, we give clear and logical steps to the computer so that it can perform a task
correctly. Let’s understand this better with a fun example—a Magic Show!
Imagine you are a magician on stage, and you have three tricks to perform. Each trick follows a specific set of
steps.
In coding, algorithms work the same way. They must be written in the correct order so the computer can
understand and execute them properly.
www.educobot.com 2
Real-Life Example: Traffic Signals
A traffic signal also follows a set of instructions to control the movement of vehicles.
If the traffic signal does not follow this order, there will be confusion and accidents! Similarly, in coding, if the
instructions are not given properly, the program will not work correctly.
2.5 Summary
Now that you've completed this lesson, you understand algorithms as step-by-step instructions that help computers solve
problems efficiently. You saw how algorithms work through real-life examples like a Magic Show and Traffic Signals, where
following the correct sequence is essential.
You also learned why algorithms are important in coding and how they prevent errors by organizing instructions logically.
Finally, you practiced breaking down tasks into simple steps, helping you write your own algorithms. With this knowledge,
you're ready to apply algorithms in coding and real-life problem-solving!
• What is an Event?
• What are different UI?
• Why is it important in coding?
• Activities based on Events.
www.educobot.com 3
2.2 What is an Event?
An event in coding is an action or occurrence that a program detects and responds to. Events allow
programs to be interactive, making them respond to user actions or system changes. Without events,
software would be static and unresponsive, requiring manual execution of every function.
• Improve Functionality – Events enable real-time updates, animations, and user-friendly interactions.
• Enable Event-Driven Programming – Most modern applications rely on event-driven logic for smooth
operation.
1 CHEESE HUNT
Task: In this lesson, Students guide a mouse through a maze to get cheese, using coding
concepts like "if," "key sensing," and "repeat forever."
www.educobot.com 4
UNDERSTANDING CODE
Additionally, there is a condition that checks if the mouse touches the cheese.
If true, the character "eats the cheese when found."
2 CAB RUSH
Task: In this lesson, Students program a cab to take the shortest route through a maze to
reach a destination before running out of fuel, using "if," "key sensing," "repeat forever,"
and "comparison" concepts.
UNDERSTANDING CODE
www.educobot.com 5
A simple car movement and fuel management game.
If the car reaches the house, the car disappears, and the player wins the game.
3 SURVIVOR BIRD
The task: Students program a Flappy Bird-like game, defining game logic and condi-
tions, using "if do" and "comparison" concepts.
www.educobot.com 6
UNDERSTANDING CODE
NOTE: This is not the complete code this snippet is just to introduce you to new blocks that were not
previously present
The task: Students program a robot to sort waste into recyclable and non-recyclable
bins, using "if," "touch sensing," and "repeat forever" concepts.
www.educobot.com 7
UNDERSTANDING CODE
This block will help create
the blue bin sprite in order to
throw the non-
biodegradable waste in it
NOTE: This is not the complete code this snippet is just to introduce you to new blocks that were not
previously present
www.educobot.com 8
UNDERSTANDING CODE
NOTE: This is not the complete code this snippet is just to introduce you to new blocks that were not
previously present
6 MAZE GAME
www.educobot.com 9
UNDERSTANDING CODE
NOTE: This is not the complete code this snippet is just to introduce you to new blocks that were not
previously present
Congratulations on finishing
the current level!
If you are reading this, it means you have successfully completed the level. It's time to
attempt a test lesson (Snake Food Collection in your portal). Please read the instruc-
tions carefully on the portal’s test lesson instruction card and complete the test to un-
lock the next level. Keep up the great work, and all the best!
QUIZ TIME
www.educobot.com 10
Q1. What is the purpose of a while loop in Python?
When clicked
Broadcast message
A chair in a classroom
4 Understanding Coordinates
www.educobot.com 11
• What are Coordinates?
• Where we use Coordinates in Real-Life?
• Why is it important in coding?
• Activities based on Coordinates.
· Placing Objects – Used in web design, game development, and animations to position elements.
· Movement and Interaction – Helps track the position of a character, cursor, or touch input.
· Graphics and Design – Used in drawing shapes, creating UI layouts, and animations.
Coordinates are pairs of numbers that define the position of a point in space, commonly used in maps, graphs,
and digital screens. In coding, they help place objects, track movement, and create interactive designs. They are
essential in game development, web design, and animations to ensure accurate positioning. Understanding co-
ordinates makes it easier to build visually structured and dynamic applications.
Now, let's solve some fun activities based on coordinates to apply what we've learned!
www.educobot.com 12
1 WHERE AM I
UNDERSTANDING CODE
2 CLAW MACHINE
Task: Students use coordinates to control a claw machine to pick up toys, using
"coordinates" and "sequence" concepts.
www.educobot.com 13
UNDERSTANDING CODE
3 TRAFFIC LIGHT
Task: Students use a loop block to code a traffic light that changes color after a few sec-
onds, using "sequence," "repeat number of times," and "wait" concepts.
UNDERSTANDING CODE
This is the Loop block. The code inside the Loop block will
be repeated for the specified number of times.
www.educobot.com 14
5 FIXING THE TILES
Task: Students program a worker to replace damaged tiles with fresh ones of the same
color, using "coordinates," "sequence," "touch sensing," and "say" concepts.
UNDERSTANDING CODE
1. Start & Wait – The game starts and waits for 3 seconds.
2. Repeat 6 Times – Runs the following steps 6 times.
3. Get User Input – Asks for X and Y values and waits.
4. Ask to Select a Tile – Prompts the user to choose a
blue or yellow tile.
5. Check Selection
• If a tile is selected: Pick, move to (X, Y), fix it, and wait.
• If no tile is selected: Show a "Try again" message.
6. End Step – Manager checks quality.
www.educobot.com 15
5 SIMPLE CALCULATOR
The task: Students build a simple calculator by placing buttons and programming them,
using "coordinates," "repeat forever," "touch sensing," and "if else" concepts.
UNDERSTANDING CODE
www.educobot.com 16
Congratulations on finishing
the current level!
If you are reading this, it means you have successfully completed the level. It's time to
attempt a test lesson (Vehicle Rush in your portal). Please read the instructions careful-
ly on the portal’s test lesson instruction card and complete the test to unlock the next
level. Keep up the great work, and all the best!
Quiz Time
Horizontal positioning
Sound Control
To change color
To write text
Up
Down
Left
Right
www.educobot.com 17
INTRODUCTION TO ELECTRICITY
www.educobot.com 18
www.educobot.com 19
www.educobot.com 20
www.educobot.com 21
BASIC ELECTRONIC CIRCUITS
Activity: In this activity, you will be introduced to the breadboard, an essential tool used to build and test
electronic circuits. You’ll learn how to connect various electronic components such as LEDs, resistors, and
transistors to the breadboard. The best part is that you won’t need to solder anything—everything can be
connected temporarily, which makes it easy to experiment with different setups. You’ll also discover how
to place components on the breadboard and how to make proper connections to complete a circuit.
1 4
2 5
3 6
www.educobot.com 22
7 8
Learning Outcome: By the end of this activity, you will have a good understanding of how to use
a breadboard to create simple circuits. You will know how to connect components correctly and
how to troubleshoot basic problems. This hands-on experience will be the first step in mastering
electronics and circuit design, preparing you for more advanced projects in the future!
MATERIALS NEEDED
www.educobot.com 23
STEP 1
STEP 2
STEP 3
STEP 4
www.educobot.com 24
STEP 5
STEP 6
STEP 7
www.educobot.com 25
INTRODUCTION TO SERIES AND
PARALLEL CIRCUITS
Students explore the differences between series and parallel
circuits, learning how to build and analyse these types of circuits
and their behaviour in various configurations .
RESISTOR IN PARALLEL
1 4
2 5
3 6
www.educobot.com 26
7 9
8 10
RESISTOR IN SERIES
1 2
www.educobot.com 27
3 6
4 7
5 8
www.educobot.com 28
9 10
Learning Outcome: By the end of this activity, you will have a good understanding of how to use
a breadboard to create simple circuits. You will know how to connect components correctly and
how to troubleshoot basic problems. This hands-on experience will be the first step in mastering
electronics and circuit design, preparing you for more advanced projects in the future!
Activity: In this activity, students will assemble a hut model from provided parts
and integrate a tactile switch PCB and buzzer module into the setup. When the
tactile switch is pressed, the buzzer will sound, simulating a doorbell ringing,
allowing students to see how simple circuits and switches work in a real-world
context.
www.educobot.com 29
STEP 1
X1 X1
X2
STEP 2
X1 X2
STEP 3
X2
X3
X2 X1
www.educobot.com 30
STEP 4
X1 X2
STEP 5
X1 X2
STEP 6
X1 X2
www.educobot.com 31
STEP 7
X2
STEP 8
X1
Learning Outcome: Students will learn how to assemble and connect basic elec-
tronic components like a tactile switch and buzzer. They will gain hands-on ex-
perience with circuits, understanding how pressing a switch can trigger an action
(in this case, activating the buzzer). This activity fosters skills in electronics, prob-
lem-solving, and circuit design while introducing students to the concept of in-
teractive devices.
www.educobot.com 32
VIBRATING BUG BOT
MATERIALS NEEDED
www.educobot.com 33
STEP 1
X1
X2
X1
STEP 2
X1 X2
STEP 3
X1 X2
STEP 4
X1 X1
Stopper shape may vary from the one shown in the image
www.educobot.com 34
STEP 5
STEP 6
STEP 7
Learning Outcome: Students will learn how vibration can generate motion and how an off-center weight
on a motor affects movement. They will explore basic principles of mechanical motion, motor function,
and assembly skills, while enhancing their creativity and understanding of how mechanical and electrical
systems work together. This activity combines elements of physics and engineering in a playful, engaging
way.
www.educobot.com 35
eduCOBOT SHIELD PORT GUIDE
Activity: In this activity, you will explore the eduCOBOT Shield and learn about its various ports
and their specific functions. Each port is designed for a specific type of component, such as LEDs,
motors, sensors, buzzers, and displays. You will understand how to connect components like the
LDR, ultrasonic sensor, touch sensor, and more to the shield. This foundational knowledge will
help them confidently assemble and program circuits using the eduCOBOT Shield in future
activities.
www.educobot.com 36
Touch sensor port to connect a
touch-sensitive device.
www.educobot.com 37
Motor 1 Port is
used to connect
the BO motor.
www.educobot.com 38
A buzzer port is used to
program a buzzer.
www.educobot.com 39
Software and Drivers:
To connect the eduCOBOT Shield (Innov8r module) to your computer and flash programs to
the ESP32, you must install the appropriate drivers. Download them from: https:/
www.educobot.com/tools/ (select your OS: Windows or Mac). For installation guidance, see
the video: Link. This is a one-time installation and requires administrator privileges. Install
drivers before running any code.
www.educobot.com 40
LIGHTING UP: TRIGGERING LED WITH ESP32
Activity: In this activity, students will program the ESP32 mounted on the eduCOBOT shield to
trigger an LED (using a two-pin connector). By using block-based programming, they will control
when the LED turns on and off. The eduCOBOT shield provides various ports for other
components like LED, LDR, IR, Motor, LCD, Ultrasonic, and Touch sensor, but in this activity, the
focus is on triggering the LED for visual output.
www.educobot.com 41
Circuit Design: The image shows a circuit
design interface for assembling components
and gaining visual learning experience.
Learning Outcome: Students will learn how to trigger and control an LED using
the ESP32 and eduCOBOT shield. They will gain hands-on experience with block
-based programming, understanding how to control basic hardware (like the
LED) through code. This activity enhances their grasp of how programming can
interact with physical devices in a simple, effective way.
www.educobot.com 42
COLOR YOUR CODE: CONTROLLING RGB LIGHT
Activity:In this activity, students will connect a 4-pin RGB LED PCB to the RGB LED port on the
eduCOBOT shield. Using block-based programming, they will control the color of the RGB LED
by setting different combinations of true and false for each of the red, green, and blue pins. By
turning the pins on or off, they will create various colors through the combination of the RGB
components
Learning Outcome: Students will understand how colors are created by con-
trolling the red, green, and blue components of an RGB LED using binary values
(true/false). They will learn basic logic and how to use programming to manipu-
late hardware, which reinforces concepts of digital control and color mixing. This
activity enhances their understanding of both programming and the physical
properties of light.
www.educobot.com 43
PROGRAMMING A SEVEN SEGMENT DISPLAY
Activity: In this activity, students will assemble a seven-segment display using MDF parts for
the frame and a 7-segment PCB. The display will be mounted onto the frame, and the
connections will be made using the eduCOBOT shield with the ESP32 mounted on it. Once the
assembly is complete, students will learn how to program different numbers to be displayed
on the seven-segment display. This task involves understanding the logic behind displaying
digits using the seven segments and writing code to control the display through the ESP32.
MATERIALS NEEDED
X1 X1 X1 X2
X1 X1 X2
STEP 1
STEP 2
www.educobot.com 44
STEP 3
X1 X2
STEP 4
www.educobot.com 45
www.educobot.com 46
Learning Outcome: Students will gain experience in assembling a seven-segment
display and learn the fundamentals of programming it using ESP32 and the
eduCOBOT shield. This activity helps students understand how digital displays
work and introduces them to basic concepts of binary encoding and microcon-
troller programming to control outputs. They will also learn how to write simple
programs to display numbers, fostering skills in both hardware assembly and cod-
ing.
www.educobot.com 47
BUZZER
www.educobot.com 48
MOTOR MAGIC: CONTROLLING A DC MOTOR
Activity: Students will connect a DC motor to the eduCOBOT shield using the
ESP32 and program it with block-based coding to start, stop, and change its
direction, learning how programming controls motor movement.
The provided code demonstrates how to make the motor rotate forward.
Learning Outcome: Students will learn how to control a DC motor with the ESP32 and
eduCOBOT shield. They will understand the basic principles of motor control, including how to
manage speed and direction through programming. This activity enhances their understanding
of motors, circuits, and the role of microcontrollers in controlling hardware in robotics and auto-
mation projects.
www.educobot.com 49
MRP | 50 Pages |
www.educobot.com
+91-7278517851