Unit Kit Grade 4
Unit Kit Grade 4
Definition of Robot:- Any programmable device/thing that can be used to stimulate human
thought and behavior
Time Line- Evolution of ROBOTs
-Types of Robots
Robots perform different types of task in different fields. Thus, the robots can be classified according to
their applications in various fields.
1. Industrial Robots:
2. Domestic Robots:
Domestic robots are also called as household robots
since they are used at home for various tasks such as
robotic vacuum cleaners, sweepers, gutter cleaners,
lawn mowers, etc.
3. Medical Robots:
The robots used in medicine and medical institutions.
First and foremost were the surgery robots.
4. Service Robots:
Service robots are the ones designed to perform the
useful tasks for the human beings such as data
gathering, research, or some repetitive tasks.
5. Military Robots:
The robots used for the military purposes such as search
and rescue. This type of robots include many different
transportation robots, bomb disposal robots, drones, etc.
6. Entertainment Robots:
These are the robots used for the entertainment. It has a
broad category. It starts with toy robots or the running alarm
clock and ends with real heavy weights such as articulated
robot arms.
Ranger mBot
Uses of Robots:
Because people do not like to do the jobs that are “dangerous” or “repetitive”, there is a
motivation to invent robots of all kinds of uses, with the objective to substitute or help humans
with many types of complex work.
Common Uses:
1. Industrial: Mechanical arms used for welding (e.g. for car manufacture) or production-line
package
2. Military: Defusing explosive objects (e.g. bombs)
3. Space: Autopilot (e.g. detecting airplanes, exploration vehicles)
4. Medical: Home care (e.g. reporting situations with the elderly)
5. Everyday Life: Automatic house clean-up(e.g. automatic vacuum cleaner)
6. Exercise: Automatic serving machines(e.g. automatic table tennis serving machine)
7. Transportation: Driverless vehicles(e.g. Google’s research and development in driverless cars)
8. Safety testing: Car Collision testing
9. Entertainment: Takes place of traditional single-feature toys
10. Educational: Trains students’ critical thinking and general application capabilities, with the
main goal of helping students learn the general application of robots’ mechanical principles,
sensors, hosts, and service motors. Thus, it develops a variety of robotic programs and
practical applications.
mBot is friendly entry level educational robot combined with easy drag and drop
programming options.
Motor : Is a device which allows physical movement to mBot i.e. rotation of wheels.
Default connection to mCore board are :-
Left Motor is connected to M1
Right Motor is connected to M2
Control Board (mother board/mCore board) :is the Printed Circuit Board (PCB) which is the Control Unit
or brain of mBot.
It is based on Arduino Uno Board on which various input and output components that are either
mounted directly or connected via RJ2 cables.
The following sensors are connected to the mCore board to perform their functions:
Infra-Red Sensors: These sensors help in sending and receiving messages to and from other robots or
device.(communication).
Ultrasonic Sensors : Are the eyes of the mBot. They help in obstacle detection and avoidance. (Default
connection to mCore board using RJ25 cable is Port number 3)
Line Follower Sensors: They are also called the ‘Line Patrolling sensors’.
They detect the black and white line reflected from the surface/ground to move along a fixed path.
Black colour absorbs light
White colour reflects the light.
(Default connection mCore board using RJ25 cable is Port number 2)
Buzzer: In an mBot, the buzzer can be said to be it’s “mouth”. It produces different sounds.
LED Light: The LED lights in the mBot will show different colours of RGB (Red, Green, Blue). There are 2
LED lights (LED1 and LED2) on the mCore.
Bluetooth device is helps in communication over a short distance. mBot is controlled by smart phones.
Step 1: Start
Step 7: Stop
Step 1: Start
Step 5: Stop
Example 3:-
Step 1: Start
Step 7: Stop
Introduction to mBlock
mBlock Integrated Development Environment (IDE)
mBlock programming software is based on MIT’s scratch for STEAM education to
guarantee that beginners can start coding within minutes.
Install the mBlock software from the following URL link
http://www.mblock.cc/software-1/mblock/.
After installation, double click the mBlock icon to open the mBlock IDE. Click on “new Project”.
Components of Scratch
1. Event Block: The running of the program is controlled by one or more events. Events block have
all the statements from where you can begin your program.
7. Sensing: This is used when the Sprite is required to respond to an action when it senses a colour
change or query raised.
Sample Programs
Examples : Use of Blocks :- Event ,Sound ,Looks ,Motion ,Pen
Logic :-
1. The program starts when the flag is clicked (event)
2. The Sprite says ‘Hello!’ (Looks)
3. Start the sound meow (Sound)
4. Stamp (Pen)
5. Move 100 steps (Motion).
‘If’ is a control statement used to specify the conditions while writing any computer program.
‘forever loop’ is used to perform task repeatedly.
‘repeat loop’ is used to perform a task for a specific time only.
‘wait ‘ is used to delay a particular task for specific time interval.
Example :
Logic of the alongside program.
1. When the mBot starts (Event)
2. If UP arrow key is pressed on the remote, the mBot
should run with the power of 100% for 1 second.
3. If Down arrow key is pressed on the ,the mBot
should move backward with the power of 50% for 1
sec
4. If Left arrow key is pressed then the mBot should
turn left with the power of 50% for 1 second.
5. If Rightarrow key is pressed the mBot should turn
right with the power of 50% for 1 second.
Note: Power here refers to the power of the Motor which
affects the rotation speed of the wheels.
Example :
To control the LEDs and buzzer with remote
Logic:-
Example :
Example : When the “button” is pressed and the “Ultrasonic sensor” does not detect any obstacle in
front of it, the mBot will move forward. Otherwise it will stop.