CL3_CH24_-Fun-with-Robots-1
CL3_CH24_-Fun-with-Robots-1
Robots
Session - 24
What is Robot?
• A robot, in simple words, is any machine designed to carry out a task.
• Robots are machines that use programming to make decisions and
carry out tasks
2
Connecting the Quarky
Follow the below steps to connect
Quarky.
3
STEP 2
ACTIVITY
4
Understanding the Logic
• Forward Motion
If both the wheels of the robot rotate in the forward direction, then it
will move forward.
5
Understanding the Logic
• Backward Motion
If both the wheels rotate in the backward direction, the robot will move
backward.
6
Understanding the Logic
• Left Motion
To make Quarky turn left, its right wheel should rotate in the forward
direction but its left wheel should rotate in the backward direction.
7
Understanding the Logic
• Right Motion
To make Quarky turn right, its left wheel should rotate in the forward
direction and the right wheel should rotate in the backward direction.
88
8
Let’s Code
Forward Movement
Drag the below blocks into the scripting
area to make the script for forward
movement
• when flag clicked – Events
ACTIVITY
9
Let’s Code
Backward Movement
Drag the below blocks into the scripting
area to make the script for backward
movement
• when flag clicked – Events
ACTIVITY
10
Let’s Code
Left Movement
Drag the below blocks into the scripting
area to make the script for left movement.
• when flag clicked – Events
ACTIVITY
11
Let’s Code
Another way you can run the robot left is
to drag the below blocks.
12
Let’s Code
Right Movement
Drag the below blocks into the scripting
area to make the script for right
movement.
• when flag clicked – Events
ACTIVITY
13
Let’s Code
Another way you can run the robot right is
to drag the below blocks.
14