Unit 1_R&A
Unit 1_R&A
Real time embedded system: An embedded system which gives the required
output in a specified time or which strictly follows the time deadlines for
completion of a task is known as a Real time system. A Real Time system, in
addition to functional correctness, also satisfies the time constraints. It works
on the basis of real-time computing represented by a dedicated type of
operating system — RTOS. Real-time embedded systems fall into three
categories depending on the acceptability of violation of time constraints-
Hard, Firm and Soft Real time systems.
Mobile embedded systems: The portable embedded devices like mobile and
cellular phones, digital cameras, MP3 players, PDA (Personal Digital Assistants)
are the example for mobile embedded systems. The basic limitation of these
devices is the limitation of memory and other resources
Medium Scale Embedded Systems: These systems are usually designed with a
single or few 16-bit or 32-bit microcontrollers or Digital Signal Processor (DSPs)
with external RAM and ROM that can perform more complex operations.
Large Scale /Sophisticated Embedded Systems: Sophisticated embedded
systems have massive hardware and software complexities and may require
ASIPs or 32-64-bit multiple chips which can perform distributed jobs.
There are basically two types of architecture that apply to embedded systems:
Harvard Architecture:
• The Harvard architecture was first named after the Harvard Mark I
computer. Compared with the Von Neumann architecture, a Harvard
architecture processor has two outstanding features.
• First, instructions and data are stored in two separate memory modules;
instructions and data do not coexist in the same module.
• Second, two independent buses are used as dedicated communication
paths between the CPU and memory; there is no connection between
the two buses.
• This architecture offers separate storage and signal buses for
instructions and data.
Memory:
Communication Interfaces:
• Address bus is a part of the computer system bus that is dedicated for
specifying a physical address.
• When the computer processor needs to read or write from or to the
memory, it uses the address bus to specify the physical address of the
individual memory block it needs to access.
• A data bus simply carries data. The same data bus is used for both
read/write operations.
• The embedded systems which respond to real time situation with the
help of its embedded software and hardware, within the specified time
constraints are called real time embedded systems.
• It works on the basis of real-time computing represented by a dedicated
type of operating system — RTOS.
• soft,
• firm and
• hard
a) Hard real time E.S: A Real time system in which, the violation of time
constraints will cause critical failure and loss of life or property damage
or catastrophe is known as a Hard Real time system.
For such built-in systems, it’s crucial that the deadline is met in all cases.
These systems usually interact directly with physical hardware instead of
through a human being. The hardware and software of hard real-time
systems must allow a worst case execution (WCET) analysis that
guarantees the execution be completed within a strict deadline. The
chip selection and RTOS selection become important factors for hard
real-time system design.
b) Firm Real time E.S: A Real time system in which, the violation of time
constraints don’t result in harmful effects, but system loses its
performance value is known as Firm Real time system. Exceeding the
deadline is occasionally permitted in these systems, though it is
undesirable.
Every firm real-time task is associated with some predefined deadline
before which it is required to produce its results. If it does not complete
within its deadline, the system doesn’t fail but the late results are merely
discarded. In other words, the utility of the results computed by a firm
real-time task becomes zero after the deadline.
c) Soft Real time E.S: A Real time system in which, the violation of time
constraints will cause only the degraded quality, but the system can
continue to operate is known as a Soft real time system. Exceeding the
deadline is acceptable in these systems. Response failures of soft real-
time systems diminish user experience, but they don’t reduce the
performance value at once.
If such a system fails to meet a deadline, it will either recover or
gradually diminish its operation. In soft real-time systems, the design
focus is to offer a guaranteed bandwidth to each real-time task and to
distribute the resources to the tasks.
Physical Constraints:
Timing Constraints:
Task Scheduling
RTOS comprise scheduling algorithms that are responsible for managing timing
constraints. There are preemptive and non- preemptive algorithms.
• Priority scheduling. This algorithm prioritizes all tasks and puts forward
the task with the highest priority to be performed first by the processor.
A preemptive version of the algorithm stops a running task if there is
another one with a higher priority in the queue. A non-preemptive
version doesn’t stop running tasks, but a higher priority task will be the
next in the line. This approach doesn’t suit tasks with equal priority.
• Round-robin scheduling. This is a preemptive scheduling algorithm that
doesn’t prioritize tasks. Instead, it allocates an equal time interval (e.g.,
500 ms) for each task, and the CPU processes them one by one. One task
may go several rounds to be completed. This approach is relatively easy
and straightforward.
• First come, first served (FCFS). This is a non-preemptive algorithm that
puts tasks into the running state depending on the time they arrive. The
process is straightforward: the task that comes first is the first to utilize
the computing power. This algorithm ensures a high response time.
• Shortest job first (SJF). The non-preemptive version of this algorithm
allocates tasks depending on their execution time: the task with the
shortest execution time is run next. The preemptive variant can
interrupt running tasks if a task with a shorter remaining execution
period arrives.
Microprocessor
A microprocessor is a computer processor where the data processing
logic and control is included on a single integrated circuit, or a small
number of integrated circuits.
The microprocessor contains the arithmetic, logic, and control circuitry
required to perform the functions of a computer's central processing
unit.
Microprocessor is used for applications that require intensive
processing and is not made for a specific task.
It is used in the development of software, games, and other applications
that require high memory and where input and output are not defined.
Eg: Complex home security, Home computers, Video game systems
Microcontroller
A microcontroller is a compact integrated circuit designed to perform a
specific operation in an embedded system.
A typical microcontroller includes a processor, memory and
input/output (I/O) peripherals on a single chip.
It is specially designed circuits for embedded applications and is widely
used in automatically controlled electronic devices.
e.g. Calculator, Washing Machine, ATM machine, Robotic Arm, Camera,
Microwave oven, Oscilloscope, Digital multimeter, ECG Machine, Printer
Microprocessor Microcontroller
1. Microprocessor is a component that Micro Controller is an integrated
is used for multiple processes; it is circuit designed for a specific task; it is
the heart of Computer system. the heart of an embedded system.
2. It is only a processor, so memory Micro Controller has a processor along
and I/O components need to be with internal memory and I/O
connected externally components.
3. Memory and I/O has to be
Memory and I/O are already present,
connected externally, so the circuit
and the internal circuit is small.
becomes large.
4. It cannot be used in compact
It is used in compact systems.
systems
5. Cost of the entire system is high Cost of the entire system is low
6. Due to external components, the
As external components are low, total
total power consumption is high.
power consumption is less. So it can
Therefore, it is not ideal for the
be used with devices running on
devices running on stored power
stored power like batteries.
like batteries.
7. Most microcontrollers have power-
saving modes like idle mode and
Most of the microprocessors do not
power-saving mode. This helps to
have power saving features.
reduce power consumption even
further.
8. Microprocessor has a smaller Microcontroller has more register.
number of registers, so more Hence the programs are easier to
operations are memory-based. write.
9. The RAM can be either from 2KB up to
It uses more RAM and can vary
256KB. It can have a flash memory of
from 512MB to 32GB.
32KB to 2MB.
10. Microprocessors are based on Von Micro controllers are based on
Neumann model Harvard architecture
11. It uses an external bus to interface
to RAM, ROM, and other It uses an internal controlling bus.
peripherals.
12. It has a very high clock speed.
It has low clock speed. Microcontroller
Microprocessor-based systems can
based systems run up to 200MHz or
run at a very high speed of up to
more depending on the architecture.
1GHz.
13. It’s complex and expensive, with a It’s simple and inexpensive with less
large number of instructions to number of instructions to process.
process.
Elements of a microcontroller:
Receiving and processing signals from the keyboard and the touchpad
(including touchpad disable), other buttons and switches.
Thermal measurement (CPU, GPU, Motherboard) and response
including fan control, CPU and GPU throttling, and emergency shutdown in
response to rising temperatures
Controlling indicator LEDs (e.g. caps lock, scroll lock, num lock, battery, ac,
power, wireless LAN, sleep)
Managing the battery charger and the battery
Performing software-requested CPU reset
Controlling the watchdog timer
History of Robotics
• Czech writer, Karel Capek in his drama R.U.R. (Rossum's Universal
Robots) introduced the word robot to the world in1921.It is derived
from the Czech word robota meaning “forced labourer”.
• In 1941 Russian-born American science-fiction writer, Isaac Asimov,
coined the word robotics and formulated the Three Laws of Robotics.
• In 1954 George Devol invented the first digitally operated and
programmable robot, Unimate, which represents the foundation of the
modern robotics industry.
Manav, India’s first 3D humanoid robot was developed by the A-SET Training
and Research Institute in Delhi. This two-kilogram, two-foot humanoid is
primarily intended for research purposes, and it has an integrated vision and
sound processing capability that allows it to walk, talk, and dance only in
response to human commands.
Mitra – Humanoid Capable Of Interacting With Humans
Mitra is a five-foot humanoid robot capable of intelligent human
interaction. It was developed by Invento Robotics, a Bengaluru-based robotics
company, and was launched at the Global Entrepreneurship Summit (GES) in
2017 by Prime Minister Narendra Modi and Ivanka Trump. This robot can be
found conversing with and greeting customers in the corridors of Canara Bank
and PVR Cinemas in Bengaluru.
Vyommitra Robot
Vyommitra is a female humanoid robot being developed by the ISRO to
function on-board the Gaganyaan. Vyommitra was first unveiled on 22 January
2020 at the Human Spaceflight and Exploration symposium in Bengaluru. It will
accompany Indian astronauts in space missions and will also be a part of
uncrewed experimental Gaganyaan missions prior to the crewed spaceflight
missions.
Shalu Robot
Shalu is the first female humanoid robot in India developed by Dinesh
Kunwar Patel, a Kendriya Vidyalaya, Computer Science teacher from Mumbai.
The robot was made at home using waste materials as well
as aluminum, plastic, cardboard, wood, newspapers, and other things readily
available in the local market. Shalu can speak 47 languages (9 Indian and 38
foreign). She can recognize people and remember them as well as identify
many common objects. She can understand human emotions and act
accordingly. It can be used as a robot-teacher in a classroom to make an
interactive class with children.
Apart from the above list there many more robots developed in India and are
being used for various purposes.
Eg: KEMPA is set up to provide flight and check-in information, as well as other
flight-related information. IRA 2.0, introduced by HDFC Bank, is an interactive
robotic assistant designed to improve the user experience for branch visitors.
Daksha is popular for being the first anti-terror robot in India developed by the
DRDO.
Laws of Robotics:
1. A robot should not injure a human being or through inaction allow a
human to be harmed.
2. A robot must obey orders given by humans except when that conflicts
with the first law.
3. A robot must protect its own existence unless that conflicts with the
first or second law.
Generations of Robot:
First Generation: The first generation robots are repeating, non servo
controlled type used for pick and place and point to point operations. The
technology for these is fully developed and at present about 80% robots in use
in industry is of this kind. It is predicted that these will continue to be in use for
a long time.
Second Generation: The addition of sensing devices and enabling the robot to
alter its movements in response to sensory feedback marked the second
generation. These robots exhibit path control capabilities.
Third Generation: The third generation is marked with robots having human-
like intelligence. The growth in computers led to high-speed processing of
information and, thus robots also acquired artificial intelligence, self-learning
and conclusion-drawing capabilities by past experiences. Online computations
and control, artificial vision and active force interaction with the environment
are the significant characteristics of these robots.
Fourth Generation: The fourth-generation robots are considered the robots of
the future. These robots are called androids or humanoids, or automata with
human features that mimic human actions and functions and may be capable
of producing their own clones. This might provide for fifth and higher
generation robots.
The following are things robots do better than humans:
• Automate manual or repetitive activities in corporate or industrial settings.
• Work in unpredictable or hazardous environments to spot hazards like gas
leaks.
• Process and deliver reports for enterprise security.
• Fill out pharmaceutical prescriptions and prep IVs.
• Deliver online orders, room service and even food packets during
emergencies.
• Assist during surgeries.
• Robots can also make music, monitor shorelines for dangerous predators,
help with search and rescue and even assist with food preparation.
1. Androids
Androids are robots that resemble humans. They are often mobile,
moving around on wheels or a track drive. These humanoid robots are used in
areas such as care giving and personal assistance, search and rescue, space
exploration and research, entertainment and education, public relations and
healthcare, and manufacturing.
2. Telerobots
Telerobots are semi-autonomous robots controlled from a distance,
chiefly using television, wireless networks (like Wi-Fi, Bluetooth, etc)
connections. It is a combination of two major types, which
are teleoperator and telepresence robot.
A telemanipulator (or teleoperator) is a remotely controlled device, usually
encountered in research, academic and technical environments.
3. Industrial robots
Industrial robots are automatically controlled, reprogrammable
multipurpose manipulators programmable in three or more axes. Users can
adapt these robots to different applications as well. Combining these robots
with AI has helped businesses move them beyond simple automation to
higher-level and more complex tasks.
In industrial settings, such robots can do the following:
• optimize process performance;
• automate production to increase productivity and efficiency;
• speed up product development;
• enhance safety; and
• lower costs.
4. Swarm robot
Swarm robots (aka insect robots) work in fleets ranging from a few to
thousands, all under the supervision of a single controller. These robots are
analogous to insect colonies, in that they exhibit simple behaviours
individually, but demonstrate behaviours that are more sophisticated with an
ability to carry out complex tasks in total. They include tasks that
demand miniaturization and also in search and rescue missions.
5. Smart robot
This is the most advanced kind of robot. The smart robot has a built-in AI
system that learns from its environment and experiences to build knowledge
and enhance capabilities to continuously improve. A smart robot can
collaborate with humans and help solve problems in areas like the following:
• agricultural labor shortages;
• food waste;
• study of marine ecosystems;
• product organization in warehouses; and
• clearing of debris from disaster zones.
One type of robot commonly used in the industry is a robotic manipulator or
simply a robotic arm.
• It is an open or closed kinematic chain of rigid links interconnected by
movable joints.
• In some configurations, links can be considered to correspond to human
anatomy as waist, upper arm, and forearm with joints at shoulder and
elbow.
• At the end of the arm, a wrist joint connects an end effector to the
forearm.
• The end effector may be a tool and its fixture or a gripper or any other
device to do work.
• The end effector is similar to the human hand with or without fingers.