AUTOMATION
AUTOMATION
UNIT -I
Introduction to Embedded System Design, Categories of ES, Overview of Embedded System Architecture, Recent
Trends in Embedded Systems, Hardware Architecture of Embedded System, Real-time Embedded Systems,
Robots and Robotics, Microprocessors and Microcontrollers, Microcontroller or Embedded Controller
UNIT - II
Robotics: Classification of Robots, Links and Joint, Degree of freedom, Motors-DC motors, Stepper Motors, Servo
Motors; Power Transmission-Type of Gears, Robotic Sensors, Applications of Robot, S/w used for Robot
programming.
UNIT- III
The AVR RISC microcontroller architecture: Introduction, AVR family architecture, register file, Pin
diagram of AVR, memory organization, I/O ports, timers, USART, Interrupt structure.
UNIT-IV
ARM Processor: Fundamentals, Registers, current program status register, pipeline concept, Interrupt and the
vector table.
UNIT V
AI IN ROBOTICS: Robotic perception, localization, mapping- configuring space, planning uncertain movements,
dynamics and control of movement, Ethics and risks of artificial intelligence in robotics.
TEXT BOOKS:
1) Subrata Ghoshal, "Embedded Systems & Robots", Cengage Learning
2) Stuart Russell, Peter Norvig, “Artificial Intelligence: A modern approch”, Pearson Education,
India2003.
3) ARM System Developer’s Guide: Designing and Optimizing System Software- Andrew N.
Sloss, Dominic Symes, Chris Wright, Elsevier Inc., 2007
REFERENCE BOOKS:
1) M.A. Mazidi, J.G. Mazidi, R.D. Mckinlay, "8051 Microcontroller and Embedded Systems", Pearson.
2) Dr. K.V.K. Prasad, "Embedded/Real-Time Systems: Concepts Design & Programming", Dreamtech.
3) Microcontrollers and applications, Ajay V Deshmukh , TMGH,2005
COURSE OUTCOMES:
At the end of the course, the students will be able to
1) Understand the overview of Embedded Systems, Robots,
Microprocessors &
Microcontrollers.
2) Understand in detail about Robotics and sensors.
3) Understand AVR RISC Microcontroller architecture in detail.
4) Understand about ARM Processor in detail.
5) Understand about Artificial Intelligence in Robotics.
UNIT-1
• Real Time Operating system (RTOS): RTOS supervises the way an embedded system
work. It acts as an interface between hardware and application software which
supervises the application software and provide mechanism to let the processor run on
the basis of scheduling.
An Embedded system is configured to perform a specific dedicated application.
Characteristics of an Embedded System: The important characteristics of an embedded
system are:
• Size and weight: As far as possible small in size and low weight
• So, an embedded system must perform the operations at a high speed so that it can be
readily used for re al time applications and its power consumption must be very low and
the size of the system should be as for as possible small and the readings must be
accurate with minimum error. The system must be easily adaptable for different
situations.
• Small scale embedded systems: Embedded systems which are simple in application needs
and where the performance requirements are not time critical fall under this category. An
embedded system supported by a single 8–16 bit Microcontroller with on-chip RAM and
ROM designed to perform simple tasks is a Small scale embedded system. A small scale
embedded system may or may not contain an operating system.
Eg: mp3 player, digital camera
• Medium scale embedded systems: Embedded systems which are slightly complex in
hardware and firmware requirements. An embedded system supported by 16–32 bit
Microcontroller /Microprocessor with external RAM and ROM or digital signal
processors that can perform more complex operations is a Medium scale embedded
system.
Eg: Routers used in networking
• Large scale embedded systems: An embedded system supported by 32-64 bit
processors/controllers or Reconfigurable system on chip (RSoC) or multicore processors
which can perform distributed jobs is considered as a Large scale embedded system.
Complex Embedded systems usually contain a high performance RTOS for task scheduling ,
prioritization and management.
Eg: Airline traffic control system
• Coming to the hardware details of the embedded system, it consists of the following
important blocks.
• I/O Devices
• Communication Interfaces
• With the fast developments in semiconductor industry and VLSI technology ,one can find
tremendous changes in the embedded system design in terms of processor speed ,
power , communication interfaces including network capabilities and software
developments like operating systems and programming languages etc.
• Processor speed and Power :With the advancements in processor technology ,the
embedded systems are now a days designed with 32,64 bit processors which can work in
real time environment. These processors are able to perform high speed signal processing
activities which resulted in the development of high definition communication devices like
3G mobiles etc.
• Also the recent developments in VLSI technology has paved the way for low power battery
operated devices which are very handy and have high longetivity. Also , the present day
embedded systems are provided with higher memory capabilities ,so that most of them
are based on tiny operating systems like android etc
• Communication interfaces : Most of the present day embedded systems are aimed at
internet based applications. So,the communication interfaces like Ethernet, USB, wireless
LAN etc.have become very common resources in almost all the embedded systems. The
developments in memory technologies also helped in porting the TCP/IP protocol stack
and the HTTP server software on to the embedded systems. Such embedded systems can
provide a link between any two devices anywhere in the globe.
• Operating systems : With recent software developments ,there is a considerable growth in
the availability of operating systems for embedded systems. Mainly new operating systems
are developed which can be used in real time applications. There are both commercial
RTOSes like Vx Works , QNX,WIN-CE and open source RTOSes like RTLINUX etc. The Android
OS in mobiles has revolutionized the embedded industry.
•
Programming Languages : There is also a remarkable development in the programming
languages. Languages like C++, Java etc. are now widely used in embedded application
programming. For example by having the Java virtual machine in a mobile phones ,one can
download Java applets from a server and can be executed on your mobile. In addition to
these developments, now a days we also find new devices like ASICs and FPGAs in the
embedded system market. These new hardware devices are popular as programmable
devices and reconfigurable devices.
Hardware Architecture of Embedded System
• A CPU is composed of an Arithmetic Logic Unit (ALU), a Control Unit (CU), and many internal
registers that are connected by buses.
• The ALU performs all the mathematical operations (Add, Sub, Mul, Div), logical operations
(AND, OR), and shifting operations within CPU. The timing and sequencing of all CPU
operations are controlled by the CU, which is actually built of many selection circuits
including latches and decoders. The CU is responsible for directing the flow of instruction
and data within the CPU and continuously running program instructions step by step.
• For embedded system design, many factors impact the CPU selection, e.g., the maximum
size (number of bits) in a single operand for ALU (8, 16, 32, 64 bits), and CPU clock
frequency for timing tick control, i.e. the number of ticks (clock cycles) per second in
measures of MHz .
• The CORE in the embedded system may be a general purpose processor like a
microcontroller or a special purpose processor like a DSP (Digital signal processor). But any
CORE consists of an Arithmetic Logic Unit (ALU), a Control Unit (CU), and many internal
registers that are connected by buses.
• In an embedded system, the CPU may never stop and run forever .The CPU works in a cycle
of fetching an instruction, decoding it, and executing it, known as the fetch-decodeexecute
cycle. The cycle begins when an instruction is fetched from a memory location pointed to
by the PC to the IR via the data bus.
• When data and code lie in different memory blocks, then the architecture is referred as
Harvard architecture. In case data and code lie in the same memory block, then the
architecture is referred as Von Neumann architecture.
Harvard Architecture:
• Computers have separate memory areas for program instructions and data using internal
data buses, allowing simultaneous access to both instructions and data.
Memory:
• Embedded system memory can be either on -chip or off -chip.
• On chip memory access is much fast than off -chip memory, but the size of on -chip
memory is much smaller than the size of off -chip memory.
• The ROM, EPROM, and Flash memory are all read -only type memories often used to store
code in an embedded system.
• The embedded system code does not change after the code is loaded into memory. The
ROM is programmed at the factory and cannot be changed over time.
• The newer microcontrollers come with EPROM or Flash instead of ROM.
• Most microcontroller development kit s come with EPROM as well.
• EPROM and Flash memory are easier to rewrite than ROM. EPROM is an Erasable
Programmable
• The size of EPROM ranges up to 32kb in most embedded systems.
• Flash memory is an EPROM which can be programmed from software so that the
developers don‘t need to physically remove the EPROM from the circuit to re -program it.
• It is much quicker and easier to re -write Flash than other types of EPROM.
• When the power is on, the first instruction in ROM is loaded into the PC and then the CPU
fetches the instruction from the location in the ROM pointed to by the PC and stores it in
the IR to start the continuous CPU fetch and execution cycle. The PC is advanced to the
address of the next instruction depending on the length of the current instr uction or the
destination of the Jump instruction.
• Most of data is stored in Random Access Memory (RAM) and code is stored in Read
Only Memory (ROM).
• This is due to the RAM constraint of the embedded system and the memory
organization. The RAM is readable and writable, faster access and more expensive
volatile storage, which can be used to store either data or code.
• Once the power is turned off, all information stored in the RAM will be lost.
• The RAM chip can be SRAM (static) or DRAM (dynamic) depending on the
manufacturer. SRAM is faster than DRAM, but is more expensive
I/O Ports:
• The I/O ports are used to connect input and output devices. The common input
devices for an embedded system include keypads, switches, buttons, knobs, and all
kinds of sensors (light, temperature, pressure, etc).
• The output devices include Light Emitting Diodes (LED), Liquid Crystal Displays (LCD),
printers, alarms, actuators, etc. Some devices support both input and output, such as
communication interfaces including Network Interface Cards (NIC), modems, and
mobile phones
Communication Interfaces:
• To transfer the data or to interact with other devices, the embedded devices are
provided the various communication interfaces like RS232, RS422, RS485,USB,
SPI(Serial Peripheral Interface ) ,SCI (Serial Communication Interface) ,Ethernet etc.
Application Specific Circuitry:
• The embedded system sometimes receives the input from a sensor or actuator. In such
situations certain signal conditioning circuitry is needed. This hardware circuitry may
contain ADC, Op-amps, DAC etc.
ADC & DAC:
• Many embedded system application need to deal with non-digital external signals such
as electronic voltage, music or voice, temperature, pressures, and many other signals
in the analog form.
• The digital computer does not understand these data unless they are converted to
digital formats.
• The ADC is responsible for converting analog values to binary digits.
• The DAC is responsible for outputting analog signals for automation controls such as DC
motor.
• In addition to these peripherals, an embedded system may also have sensors, Display
modules like LCD or Touch screen panels, Debug ports c,ertain communication peripherals
like I2C, SPI, Ethernet, CAN, USB for high speed data transmission. Now a days various
sensors are also becoming an important part in the design of real time embedded systems.
Sensors like temperature sensors, light sensors, PIR sensors, gas sensors are widely used in
application specific circuitry.
Power supply:
•
Most of the embedded systems now days work on battery operated supplies.
Because low power dissipation is always required. Hence the systems are designed to work
with batteries Clock:
The clock is used to control the clocking requirement of the CPU for executing instructions
and the configuration of timers.
• The watchdog timer is a special timing device that resets the system after a preset time
delay in case of system anomaly. The watchdog starts up automatically after the system
power up.
• One need to reboot the PC now and then due to various faults caused by hardware or
software. An embedded system cannot be rebooted manually, because it has been
embedded into its system. That is why many microcontrollers come with an on-chip
watchdog timer which can be configured just like the counter in the regular timer. After a
system gets stuck (power supply voltage out of range or regular timer does not issue
timeout after reaching zero count) the watchdog eventually will restart the system to bring
the system back to a normal operational condition.
Real Time Embedded Systems
• A real-time embedded system is a particular version of an embedded system that works on
the basis of real-time computing represented by a dedicated type of operating system —
RTOS.
• First come, first served (FCFS). This is a non-preventive 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.
• A robot is a type of automated machine that can execute specific tasks with
little or no human intervention and with speed and precision. The field of
robotics, which deals with robot design, engineering and operation
• Robots can perform some tasks better than humans, but others are best left
to people and not machines.
• Robotics: It is the science which deals with the issues related to design,
manufacturing and usage of robots.
• Hand-with Manipulator
• Head-with Intelligence
• Heart-with emotions
Machines that can replace human beings as regards to physical work and
decision making are categorized as Robots and their study as robotics.
• Czech writer ,Karel Capek in his drama introduced the word robot to the
world in1921.It is derived from the Czech word robota meaning “forced
labourer”.
• Isaac Asimov the well known Russian science fiction writer coined the word
Robotics in his story “Runaround” , published in 1942 to denote the science
devoted to the study of Robotics.
• Robots are being employed to construct and repair space stations and
satellites.
• There are now increasing number of applications of robots such as in nursing
and aiding a patient. Microrobots are being designed to do damage control
inside human veins.
• 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 a fixture or a gripper or any other
device to do work . The end effector is similar to the human hand with or
without fingers.
Motivation behind Robotics: To cope up with increasing demands of a dynamic
and competitive market, modern manufacturing methods should satisfy the
following requirements:
• Deliver online orders, room service and even food packets during
emergencies.
• Robots can also make music, monitor shorelines for dangerous predators,
help with search and rescue and even assist with food preparation.
Different Types of robots
• food waste;
• Microprocessors are not made for a specific task as well as they are useful
where tasks are complex and tricky like the development of software, games,
and other applications that require high memory and where input and
output are not defined.
• Devices often utilize multiple microcontrollers that work together within the
device to handle their respective tasks.
• For example, a car might have many microcontrollers that control various
individual systems within, such as the anti-lock braking system, traction
control, fuel injection or suspension control. All the microcontrollers
communicate with each other to inform the correct actions. Some might
communicate with a more complex central computer within the car, and
others might only communicate with other microcontrollers. They send and
receive data using their I/O peripherals and process that data to perform
their designated tasks.
Elements of a microcontroller:
The core elements of a microcontroller are:
• The processor (CPU) -- A processor can be thought of as the brain of the
device. It processes and responds to various instructions that direct the
microcontroller's function. This involves performing basic arithmetic, logic
and I/O operations. It also performs data transfer operations, which
communicate commands to other components in the larger embedded
system.
• Data memory, which is required for temporary data storage while the
instructions are being executed. Data memory is volatile, meaning the data it
holds is temporary and is only maintained if the device is connected to a
power source.
I/O peripherals -- The input and output devices are the interface for the processor
to the outside world. The input ports receive information and send it to the
processor in the form of binary data. The processor receives that data and sends
the necessary instructions to output devices that execute tasks external to the
microcontroller.
There are many supporting components that can be classified as peripherals.
• System bus -- The system bus is the connective wire that links all
components of the microcontroller together.
• Serial port -- The serial port is one example of an I/O port that allows the
microcontroller to connect to external components. It has a similar function
to a USB or a parallel port but differs in the way it exchanges bits.
Microcontroller features:
• MCUs feature input and output pins to implement peripheral functions. Such
functions include analog-to-digital converters, liquid crystal display (LCD)
,Sensors gathering data.
2. Home robots
3. Defence robots
4. Entertainment robots
5. Agricultural robots
6. Educational robots
• Medical robots are professional service robots that are used in and out of
hospital settings to improve the level of patient care. These robots reduce
the workload of the medical staff, which allows them to spend more time
caring directly for patients. Mobile medical robots are used for the delivery
of medication and other sensitive materials in a hospital. Home robots
automate tasks like cleaning and disinfecting.
• The primary purpose of Education robots is to make kids aware of their
potential, utility, and help kids build their own robots using readymade kits.
Educational robots are used extensively in schools, both in classrooms and in
extracurricular activities.
• One of the most important uses of robots in defence is to ensure the safety
of soldiers and civilians. For example, remotely operated vehicles (ROVs) are
used to carry out dangerous tasks or activities in hazardous environments,
drones are used for surveillance, and so on.
• Agricultural robots sense weather pattern and can adjust the watering of
crop as needed, can be used for sowing, de-weeding, and harvesting crops.
Classifying Robots by their Kinematics or Locomotion: Robots can also be
classified according to how they move – or not move.
• Cartesian Robots: these are perhaps the most common types of robots.
They have three axes which are linear i.e, they can only move in straight lines
rather than rotating and are mounted at right angles to each other. Because
of their rigid structure, this type of robots usually can offer good levels of
precision and repeatability. Cartesian robots are mostly used in the industrial
and the manufacturing sector for pick and place type of operations.
• Cylindrical robots: The body of this type of robot is such that the robotic
arm can move up and down along a vertical member. The arm can rotate
about that vertical axis and the arm can also extend or contract. This
construction makes the manipulator able to work in a cylindrical space. They
are used for assembly operations, spot welding and for die casting machines.
These cannot reach the objects lying on the floor. Eg: Versatran 600
Spherical coordinate Robots(Polar coordinate Robots): This type of robot works in
a spherical system. It can move in a bi-angular and single linear direction. SCARA
Robots: SCARA stands for Selective Compliance Arm for Robotic Assembly. This
type of robot has one linear and two rotary movements. Can be used to pick up
objects lying on the floor. They are used for assembly purposes all over the world
Eg: Unimate 2000B
armature
from an external source of DC supply
Series wound DC motor: In a series wound DC motor, the field winding is connected in series with
the armature winding
Stepper Motor:
parallel to the 2) Separately Excited DC Motor: In a separately excited DC motor,
the field coils are energised
• The stepper motor can be controlled by energizing every stator one by one.
So the stator will magnetize & works like an electromagnetic pole which uses
repulsive energy on the rotor to move forward. The stator’s alternative
magnetizing as well as demagnetizing will shift the rotor gradually &allows it
to turn through great control.
• This technique is most frequently used due to its accuracy. The variable step
current will supply by the stepper motor driver circuit toward stator coils
within the form of a sinusoidal waveform. The accuracy of every step can be
enhanced by this small step current. This technique is extensively used
because it provides high accuracy as well as decreases operating noise to a
large extent.
Servo Motors