Robotics
Robotics
• ICT 215
Introduction to Robotics
• Basic Electronics
• Robot Motion
• Control Systems
• IoT
• Simulations
• Programming
What Is Robotics ?
• Robots are the programmed machines which can perform a series of actions
automatically or semi-automatically.
Robotics
What is a Robot?
• Robot is a Machine that mimics human action to do useful work however the
Robot Institute of America defines Robot as a reprogrammable,
multifunctional manipulator designed to move material, parts, tools or
specialized devices through variable programmed motions for the
performance of a variety of tasks
• Mechanical Engineering
• Software Engineering
• Electronics Engineering
Robotics
• Mechanical Engineering Concepts are used to build the physical part of
the Robot
• Electronic Engineering Concepts are used to build the Actuators, Sensors,
Power Systems and the Processing System
• Law 1: A robot may not injure a human being or through inaction, allow a
human being to come to harm, unless this would violate a higher order law
• Law 3: A robot must protect its own existence as long as such protection
does not conflict with a higher order law
History of Robotics: I
The first industrial robot: UNIMATE
• 1954: The first programmable robot was designed by George Devol, who
coined the term Universal Automation.
• He later shortened this to Unimation, which becomes the name of the first
robot company (1962).
• UNIMATE originally
automated the manufacture
of TV picture tubes
The Pre-History of Robots
• People have been fascinated withDa Vinci's Mechanical Knight "artificial beings" for thousands of years.
• The ancient Hebrews wrote about a person made out of dirt and clay called a golem. The golem was created to help with menial labor.
• The ancient Greek god Hephaestus was believed to build himself mechanical assistants out of gold.
• Around 400 B.C.E., the Greek mathematician Archytas of Tarentum built a mechanical bird to try and better understand how birds fly.
• Around 1495, Leonardo DaVinci publishes designs for a mechanical knight. Over the next 400 years, several toy automata are built, largely for the
entertainment of royalty.
• The word "robot" is first used in 1921 by Czech playwrite Karel Capek in his play R.U.R. (Rossum's Universal Robots).
The play involves a factory that builds artificial people to be servants for humans.
• In 1926, Metropolis becomes the first movie to portray a humanoid robot on screen.
• Elmer and Elsie were the first two electronic robots that
were built in history around the late 1940s by
neurobiologist and cybernetician William Grey Walter. they
were programmed to "think" the way biological brains do
and meant to have free will.
Types of Robots: I
Manipulator
Mobile
Types of Robots: II
Legged Robot Wheeled Robot
Autonomous
Decontaminating Robot
Cleaning the main circulating pump
housing in the nuclear power plant
Robot Uses: II
Welding Robot
Robot Uses: III
• Take for instance if you want to pick a bottle from the table
• First you see the bottle with your eyes then your brain gets signals,
plan the action and send signals to muscles on your arm to actuate
your hand
• Robots will see the bottle through a camera, the main controller
gets a signal, process and plan the action and sends back action to
the grippers
• Sensors onboard the robots sense the environment,
processing unit or the microcontroller on the robot “thinks”
of the action that has to be taken reacting to the sensory
input then it sends commands to the actuators of the robot
( wheels, legs or movement mechanism)
• Do you know that the Curiosity rover and the Perseverance rover, which was
sent by Nasa to Mars, uses nuclear radiation as their power source?
• As of November 2, 2023, Curiosity has been on the planet Mars for 3996 sols
(4105 total days; 11 years, 88 days) since landing on August 6, 2012
• The ability to make a decision on its own without help from a person is what
makes a robot smart.
• The more decisions a robot can make on its own, the smarter it is.
• 1. Purely Reactive
• These machines do not have any memory or data to work with,
specializing in just one field of work. For example, in a chess game,
the machine observes the moves and makes the best possible
decision to win.
• 2. Limited Memory
• These machines collect previous data and continue adding it to
their memory. They have enough memory or experience to make
proper decisions, but memory is minimal. For example, this
machine can suggest a restaurant based on the location data that
has been gathered.
• 3. Theory of Mind
• This kind of AI can understand thoughts and emotions, as
well as interact socially.
• 4. Self-Aware
• Self-aware machines are the future generation of these
new technologies. They will be intelligent, sentient, and
conscious.
Sensors
• They are able to convert this input into an electrical signal in order to
record and monitor it. It is imperative that the right sensor is chosen
based upon the robots use and the surrounding environment. Sensors
that measure the same input can also differ in accuracy, precision, and
sensitivity. This needs to be taken into account when designing a robot.
• The simplest form is the mechanical proximity sensor, basically a switch that
allows the flow of current when the switch or knob or the lever is being
pressed.
• There are proximity sensors which work based on the principles of inductors
and capacitance as well
• Apart from basic proximity sensors, advanced proximity sensors like radar sonar,
lidar(Light Ranging and Detection) uses, radio waves, sound waves and light
waves to not only detect the proximity, but also detect the distance between
objects.
• These are commonly used in planes, ships, submarines and even now in
autonomous driving cars.
Temperature Sensors
• So far, the best solution is the satellite navigation systems like GPS.
• GPS models nowadays only cost few dollars and can interface with almost every
microcontroller using simple communication methods.
Force And Pressure Sensors
• Another important type of sensors is the force and pressure
measurement sensors, recognizing a touch input of a user
measuring the weight of a product, measuring force of an
impact, especially in vehicle testing or measuring atmospheric
pressure for weather predictions or measuring the altitude.
Flow Sensors and Gas Sensors
• IoT is heavily adapted in factories to improve efficiency through sensors.
• Flow Censors are commonly used to measure the flow of Liquid
• Gas Censors, are used to identify gases which can be used in IoT enabled gas
monitors that are used to identify harmful gases.
Inertial Measurement Units
• Almost all the smartphones have this sensor.
• Mobile phones use these sensors for the orientation and rotation of the screen
Drones also use these IMU to balance themselves in the air
Vision Sensor
• Vision Sensor are advanced sensors which can capture videos from cameras
and analyze in real time to identify objects, symbols and features.
• These sensors are commonly used in cameras to detect faces and focus, as well
as for advanced things like autonomous vehicles to identify objects on the
road.
Actuators
• Apart from these, there are many actuator types being researched every day.
• The most common type of actuator used in robotics is the motors.
• Motors range from Simple DC motors, which powers our toys to AC motors that
power home appliances and factory or machinery.
• Typically, motors rotate in circular motion, but there are actuators called linear
actuators, which turn this rotational motion into linear motion so that the
movement happens along a straight line.
• DC motors are the simplest actuator types used in robotics, they operate on direct
current, DC motors can be powered from a battery.
• This can be commonly seen in 3D printers and robot arms when moving
heavy loads, Motor power can be insufficient in some cases, here we use
Hydraulic Actuators which uses Fluid Pressure to work
• Usually, these systems contain electrical pump, which gives the pressure
to the fluid and the electrical valves, which are operated through a
computer to turn on and off to change the direction of the flow, which
eventually changes the direction of the actuation
• Hydraulics may be slow, but for quick actions we use pneumatic actuators
instead of fluid pressure., pneumatic It uses air.
• Usually, there is an electrical pump, which gives the pressurized air to store
inside the tank .
• Similar to the Hydraulic, Pneumatic actuators also have electrical pump and
valves which are operated through a computer to turn on and off to change
the direction of the flow which eventually changes the direction of the
actuation
• Apart from these, there are many actuator types, but the emphasis for this
course is on DC Motors with gears , from where you will be able to
understand any type of actuator you are going to use in the future.
What is Electricity?
• Electricity is a form of energy that results from the movement of charged
particles, such as electrons.
• It is a fundamental force of nature that is present in all matter and can be built
up in one place (Static Electricity), or flow from one place to another(Current
Electricity).
• Generally speaking the electric state of most atoms are neutral, because the
number of protons and electrons are equal but atoms can gain electrons and
become negatively charged or lose electrons and become positively charged.
• Current can be either direct current (DC), where the current flows in one
direction only, or alternating current (AC), where the current changes
direction periodically. Most common sources of electrical energy such as
batteries and generators produce DC, while most power transmission and
distribution systems use AC.
Resistance
• Electrical resistance is the measure of the opposition to current flow
in an electrical circuit. It is measured in ohms (Ω).
• Since the current flowing through the circuit is the same for all the resistors,
the voltage drop across each resistor is inversely proportional to the
resistance value.
• Therefore, a resistor with a higher resistance value will have a higher voltage
drop and a lower resistance value will have a lower voltage drop
Calculate Equivalent Resistance
Current flowing in the circuit
Individual voltages across each resistor
Voltage across each resistor V=I*R
Notice that all the voltages add up to the voltage of the battery
Parallel connection
Unlike series the current has multiple paths to flow
Since all resistances are connected to one volage source we can say the
voltage across all of them is equal
• Find the current flowing in the circuit
• Individual current flowing in the resistors
• Hint : find the equivalent resistances first
Individual current flowing in the resistors
I =V/Req
• This is the primary chip that acts as your Arduino board's brain. They
allow you to program your Arduino for it to be able to execute
commands and decisions based on the code. You will have to know
which type of microcontroller your board uses before loading a new
program from the Arduino Software
Microcontrollers are small integrated chips that are powerful enough to do a lot of tasks like
controlling motors, pumps, other appliances, sending sensor data to cloud, control basic displays
and even act as brain for intermediate some robots.
The power requirement for such chips are low and can even run on batteries for days or months,
they have peripherals like storage and memories built on the chip
Microcontrollers are way cheaper than microprocessors but one should not be used
in place of one another
Comparison
INTRODUCTION TO ARDUINO
• Arduino is an open-source hardware and software company, project,
and user community that designs and manufactures single-board
microcontrollers and microcontroller kits for building digital devices
• Go to your classroom
• Select circuits
www.tinkercad.com
join a class
PS5LEQXD4
www.tinkercad.com
Join a class
LVJ9V5KMU
•www.tinkercad.com
Join a class
• It usually contains statements that set the pin modes on the Arduino to
OUTPUT and INPUT, example:
input/output port, pin 13. When using any digital pin in a program,
pinMode(LED_BUILTIN, OUTPUT);
}
We see that the
This is essentially the part of the program that describes blinking. We see that blinking is
actually turning a LED on, waiting for a while, turning it off, waiting for a while again and then
repeating from the top.
Let's take the statements one by one:
For the digital output pins of the Arduino, HIGH and LOW means turning them
ON and OFF.
Notice that the way we use digitalWrite() looks similar to pinMode() that we saw
earlier.
• delay(1000); // wait for a second
• The delay() will pause the program, preventing the Arduino from executing
the next command.
• The next statement is very similar to the first digitalWrite() in the program,
however this time it sets the pin to LOW, turning the LED OFF.
Blink a LED, the Arduino 'hello world'.
• C++ gives programmers a high level of control over system resources and
memory.
• The language was updated 4 major times in 2011, 2014, 2017, and 2020 to
C++11, C++14, C++17, C++20.
Why Use C++
• C++ is one of the world's most popular programming languages.
• The main difference between C and C++ is that C++ support classes and
objects, while C does not.