Ait304 Module 2 Notes
Ait304 Module 2 Notes
Sensors: Sensors are devices that can sense and measure physical properties of the
environment, e.g. temperature, luminance, resistance to touch, weight, size, etc.
Transduction (engineering) is a process that converts one type of energy to another.
They deliver low-level information about the environment.
• e.g. temperature, luminance, resistance to touch, weight, size, etc.
• The key phenomenon is transduction
• Transduction (engineering) is a process that converts one type of energy to
another
Transducers and sensors: Transducer is a device that converts one type of physical
variable (eg; force, temperature, velocity, flow rate etc) into another form. Generally we
convert this to electrical voltages. The reason for this is that the converted signal is more
convenient to use and evaluate. Sensor is just used to sense the signals.
There are generally two categories of sensors used in robotics; these are for
internal purposes, and those for external purposes. Internal sensors are used to monitor
and control the various joints of the robot; they form a feedback control loop with the
External sensors are external to the robot itself, and are used when we wish to
control the operations of the robot with other pieces of equipment in the robotic work
cell. External sensors can be relatively simple devices, such as limit switches that
determine whether a part has been positioned properly, or whether a part is ready to be
picked up from an unloading bay.
How it works
3. LiDar
A LiDAR (Light Detection and Ranging) sensor is a remote sensing technology that
uses pulsed laser light to measure distances and create precise, high-resolution 3D maps
of environments by emitting laser beams and timing how long the light takes to bounce
back from objects. It works by sending out pulses of light and calculating the distance
based on the "time-of-flight," generating detailed point cloud data that represents objects
and terrain, making it crucial for autonomous vehicles, mapping, and surveying.
Position Sensors
Tactile Sensor
• Used to determine whether contact is made between sensor and other object.
• Tactile sensors provide the robot with the capability to respond to contact forces
between itself and other objects within its work volume.
• Tactile sensors can be divided into two types:
1. Touch sensors (micro switch)
2. Stress(Force) sensors (Strain Gauge)
1. Touch Sensor
• A touch sensor is an electronic sensor used in detecting and recording physical
touch. Also known as tactile sensors.
• A touch sensor works like a switch, where when there’s contact, touch, or
pressure on the surface of a touch sensor, it opens up an electrical circuit and
allows currents to flow through it.
Velocity Sensors
• When the shaft rotates faster, the coil cuts the magnetic field faster.
• According to Fleming’s rule, more voltage is generated when rotation speed
increases.
• This voltage is then converted into a digital signal and given to the controller or
computer.
2. Hall-effect sensor
• The principle of the Hall Effect states that when a current-carrying conductor or a
semiconductor is introduced to a perpendicular electric field and magnetic field, a
voltage can be generated at the right angle to the applied electric and magnetic
field. This effect of obtaining a measurable voltage is known as the Hall Effect.
• A Hall-effect sensor is used to measure velocity or speed using magnetic fields.
• A thin flat piece of semiconductor material (called a Hall chip) is used.
• Normally, if you apply voltage to two opposite ends of the chip, the voltage on
the other two sides will be zero.
• But when a magnetic field is applied at right angles to the chip, a new voltage is
produced on the other sides. This new voltage is called the Hall voltage.
• The Hall voltage changes depending on how fast the shaft or object is moving.
• Hall effect sensors detect magnetic fields for non-contact sensing, widely used
in automotive (ABS, ignition, crankshaft position), industrial automation
(proximity, speed, current sensing), and consumer electronics (smartphones for
flip covers, keyboards, laptops) for position, speed, and current monitoring,
offering robust, long-life alternatives to mechanical switches.
Acceleration Sensors
Digital Camera
1. A CCD camera uses a charge-coupled device sensor to convert incident light into
electrical charges and then into a digital image.
• Working Principle
o Light falls on CCD pixels → generates electric charge (photoelectric effect).
o Charges are stored in each pixel.
o Charges are transferred pixel-by-pixel to a readout register.
o Output charge is converted to voltage and then digitized.
• Advantages
o High image quality
• Construction
o Conventional camera + convex mirror (parabolic or hyperbolic)
o Or multiple wide-angle cameras stitched together
• Working Principle
o Light from all directions reflects off the mirror.
o The camera captures a circular image covering the entire surroundings.
o Image is unwrapped using software into panoramic view.
• Advantages
o Complete situational awareness
o Suitable for dynamic environments
o Reduced need for camera rotation
• Disadvantages
o Lower resolution per direction
o Image distortion
o Complex image processing
• Applications
o Mobile robotics
o Autonomous navigation
o Surveillance and security
Actuator
Actuators: Actuation is the process of conversion of energy to mechanical form. A
device that accomplishes this conversion is called actuator.
Actuator plays a very important role while implementing control. The controller
provides command signal to the actuator for actuation.
The control codes aims at “ deriving the actuator when an event has occurred”
Actuators are the muscles of robots. There are many types of actuators available
depending on the load involved. The term load is associated with many factors
including force, torque, and speed of operation, accuracy, precision and power
consumption.
An actuator is an electromechanical device which converts energy into mechanical
work (or motion).
For robots, actuators are like muscles that perform work. The work can be either
to induce motion, or to object motion; i.e. either to start a movement, or to stop it.
There are different types of actuators available and most of them either create
rotational motion, or linear motion. (Oscillatory motion is rarely used, and even if
required can be created using a linear or a rotary actuator).
Linear Actuators
As the name says, linear actuator creates linear motion, i.e. it creates to and fro
motion. These actuators can be driven by either linear or rotational motion.
To simplify things, let us take an example of a bicycle. When the cyclist pushes the
pedal, it rotates the bottom bracket in a cycle which is connected to a roller chain.
Now the rotational motion from the bracket creates a linear motion in the roller
chain.
Rotatory Actuators
Rotational actuator induces rotary or rotational motion. A simple DC motor is an
example of rotational actuator. Similar to linear actuator, rotation actuators can
be driven by either linear motion or rotational motion. Consider bicycle example
to understand how linear motion can be used to create rotary motion. The roller
chain in a bicycle is connected to sprocket gear of the driving wheel (Normally
back wheel). When a cyclist pedals, the roller chain (remember that roller chain is
an example of linear motion) rotates the sprocket gear creating a rotational
motion further rotates the wheel.
Most actuators can be mechanically designed to induce rotary motion or linear
motion. A simple nut attached to a linear member can create a rotary motion. On
the other hand, attaching a screw to a rotary actuator creates linear motion.
DC MOTOR
DC electric-motors are arguably the most used method for locomotion in mobile
robots. DC motors are clean, quiet, and can produce sufficient power for a variety
of tasks.
Standard DC motors revolve freely. Motor control therefore requires a feedback
mechanism using shaft encoders.
A DC motor consist basically of two parts, the stationary body of the motor called
the “Stator” and the inner part which rotates producing the movement called the
“Rotor”. For D.C. machines the rotor is commonly termed the “Armature”.
Generally in small light duty DC motors the stator consists of a pair of fixed
permanent magnets producing a uniform and stationary magnetic flux inside the
motor giving these types of motors their name of “permanent-magnet direct
current” (PMDC) motors.
The motors armature consists of individual electrical coils connected together in
a circular configuration around its metallic body producing a North-Pole then a
South-Pole then a North-Pole etc, type of field system configuration.
The current flowing within these rotor coils producing the necessary
electromagnetic field. The circular magnetic field produced by the armatures
windings produces both north and south poles around the armature which are
repelled or attracted by the stator’s permanent magnets producing a rotational
movement around the motors central axis as shown.
As the armature rotates electrical current is passed from the motors terminals to
the next set of armature windings via carbon brushes located around the
commutator producing another magnetic field and each time the armature rotates
a new set of armature windings are energised forcing the armature to rotate more
and more and so on.
So the rotational speed of a DC motor depends upon the interaction between two
magnetic fields, one set up by the stator’s stationary permanent magnets and the
other by the armatures rotating electromagnets and by controlling this interaction
we can control the speed of rotation.
Pulse Width Modulation
So how do we control the flow of current through the motor. Well many people
attempt to control the speed of a DC motor using a large variable resistor
(Rheostat) in series with the motor as shown.
While this may work, but it generates a lot of heat and wasted power in the
resistance. One simple and easy way to control the speed of a motor is to regulate
the amount of voltage across its terminals and this can be achieved using “Pulse
Width Modulation” or PWM.
Pulse Width Modulation speed control works by driving the motor with a series of
“ON-OFF” pulses and varying the duty cycle, the fraction of time that the output
voltage is “ON” compared to when it is “OFF”, of the pulses while keeping the
frequency constant.
The power applied to the motor can be controlled by varying the width of these
applied pulses and thereby varying the average DC voltage applied to the motors
terminals.
By changing or modulating the timing of these pulses the speed of the motor can
be controlled, ie, the longer the pulse is “ON”, the faster the motor will rotate
and likewise, the shorter the pulse is “ON” the slower the motor will rotate.
In other words, the wider the pulse width, the more average voltage applied to the
motor terminals, the stronger the magnetic flux inside the armature windings and
the faster the motor will rotate and this is shown below.
The use of pulse width modulation to control a small motor has the advantage in
that the power loss in the switching transistor is small because the transistor is
either fully “ON” or fully “OFF”. As a result the switching transistor has a
much reduced power dissipation giving it a linear type of control which results in
better speed stability.
Also the amplitude of the motor voltage remains constant so the motor is always
at full strength. The result is that the motor can be rotated much more slowly
without it stalling.
Pulse width modulation or PWM for short is a smart method for avoiding analog
power circuitry by utilizing the fact that mechanical systems have a certain
latency.
Instead of generating an analog output signal with a voltage propoRtional to the
desired motor speed, it is sufficient to generate digital pulses at the full system
voltage level (for example 5V). These pulses are generated at a fixed frequency,
for example 20 kHz, so they are beyond the human hearing range.
By varying the pulse width in software we also change the equivalent or effective
analog motor signal and therefore control the motor speed. One could say that the
motor system behaves like an integrator of the digital input impulses over a
certain time span. The quotient ton/tperiod is called the “pulse–width ratio” “
duty cycle”.
H- BRIDGE
An H-bridge is a simple circuit that lets you control a DC motor to go backward or
forward.
You normally use it with a microcontroller, such as an Arduino, to control motors.
An H-bridge is what is needed to enable a motor to run forward/backward.
A DC motor spins either backward or forward, depending on how you connect the
plus and the minus.
If you close switches 1 and 4, you have plus connected to the left side of the motor
and minus to the other side. And the motor will start spinning in one direction.
If you instead close switches 2 and 3, you have plus connected to the right side and
minus to the left side. And the motor spins in the opposite direction.
Stepper Motors
Stepper motors differ from standard DC motors in such a way that they have two
independent coils which can be independently controlled.
As a result, stepper motors can be moved by impulses to proceed exactly a single
step for- ward or backward, instead of a smooth continuous motion in a standard
DC motor.
A typical number of steps per revolution is 200, resulting in a step size of 1.8°.
Some stepper motors allow half steps, resulting in an even finer step size.
There is also a maximum number of steps per second, depending on load, which
limits a stepper motor’s speed.
A stepper motor is a type of DC motor that rotates in steps. When electrical signal
is applied to it, the motor rotates in steps and the speed of rotation depends on the
rate at which the electrical signals are applied and the direction of rotation is
dependent on the pattern of pulses that is followed.
A stepper motor is made up of a rotor, which is normally a permanent magnet and
it is, as the name suggests the rotating component of the motor.
A stator is another part which is in the form of winding (electromagnet).
In the diagram, the center is the rotor which is surrounded by the stator winding.
This is called as four phase winding.
The centre tap on the stator winding allows the current in the coil to change
direction when the winding are grounded.
The magnetic property of the stator changes and it will selectively attract and
repel the rotor, thereby resulting in a stepping motion for the motor.
Working Principle
The basic working principle of a servo motor involves the controller receiving two
types of input signals:
A set point signal: This is an analog or digital signal that represents the desired
position, speed, or torque of the output shaft.
A feedback signal: This is an analog or digital signal that represents the actual
position, speed, or torque of the output shaft measured by the sensor.
The controller compares these two signals and calculates an error signal that
represents the difference between them.
The error signal is then processed by a control algorithm (such as PID) that
generates a control signal that determines how much voltage or current should be
applied to the motor.
The control signal is sent to a power amplifier (such as an H-bridge) that converts
it into an appropriate voltage or current level for driving the motor.
The motor then rotates or moves according to the control signal and changes its
position, speed, or torque, and sends a new feedback signal to the controller.
The process repeats until the error signal becomes zero or negligible, indicating
that the output shaft has reached the desired set point.
Applications of Servo Motor
Robotics: Servo motors are used to provide precise motion and force for robotic
arms, legs, joints, grippers, etc. They enable robots to perform tasks such as
picking, placing, welding, assembling, etc.
CNC machinery: Servo motors are used to drive the axes of CNC machines such as
lathes, mills, routers, etc. They enable CNC machines to perform accurate and
complex machining operations such as cutting, drilling, engraving, etc.
Automated manufacturing: Servo motors are used to control the movement and
position of various components and devices in automated manufacturing systems,
such as conveyors, feeders, loaders, unloaders, etc. They enable automated
manufacturing systems to achieve high productivity and quality.
Medical equipment: Servo motors are used to operate various medical devices
and instruments such as surgical robots, scanners, pumps, ventilators, etc. They
enable medical equipment to perform precise and safe operations and treatments.
Difference between Servo motor and Stepper motor
Basic Difference Servo Motor Stepper Motor
A type of electric motor whose A type of brushless DC motor
operation is controlled with which divides the full rotation
Definition the help of servo mechanism of shaft into a number of equal
is known as servo motor. discrete steps is known as
stepper motor.
The operation servo motor is The operation of stepper
Operation continuous. motor is divided into discrete
steps.
Control system Servo motor is configured in a Stepper motor has open loop
configuration closed loop control system. control system
Feedback The feedback mechanism No feedback mechanism in
mechanism exists in a servo motor. case of stepper motor.
Torque speed Servo motor produces high Stepper motors produce high
characteristics torque at high speeds. torque at low speeds.
Suitability with Servo motors are not suitable Stepper motors can be used for
fluctuating loads for fluctuating loads. fluctuating loads as well.
Servo motors have relatively The stepper motors are
Design
complex design. simpler in design.
Power Servo motors need relatively Stepper motors consume
consumption less power. comparatively more power.
The efficiency of servo motor The stepper motors are
Efficiency
is comparatively high. relatively less efficient.
The noise in case of servo Stepper motors produce high
Noise
motor is comparatively less. noise.
Servo motors have high The operating speed for
Operating speed
operating speed. stepper motors is low.
The cost of servo motors is The cost of stepper motors is
Cost
high. comparatively less.
Servo motors are extensively Stepper motors are used in 3D
used in remote controlled printers, welding machines,
Applications equipment, robots, antenna textile machines, medical
positioning systems, industrial equipment, etc.
automation, cameras, etc.
Pneumatic Actuators
These actuators use the principle of Pneumatics (where pressurized air/gas) to
create motion (or perform work). Pneumatic actuators can be used to produce
both rotational motion and linear motion.
The basic design includes a Cylinder, a Piston and few supporting components like
valves, springs, stoppers etc.,
Compressed Air or pressurized gas is filled into the cylinder and the compressed
air tries to expand to reach atmospheric pressure. This expansion is forced
towards a piston or any other mechanical device which makes an attached object
move.
Depending on the design, it can either create rotational motion or linear motion.
Most air compressors and air pumps use this principle due to its simplistic design.
Image shows single acting cylinder where a spring pushes the piston back to its
base position. In a double acting cylinder, another valve on other end of the
cylinder pushes the piston back to base position.
Hydraulic Actuators
According to Blaise Pascal, when there is an increase in pressure at any point in a
confined incompressible fluid, then there is an equal increase at every point in the
container. Hydraulic actuators are designed based on this principle (Pascal’s law).
These actuators are powered by hydraulic fluids. When hydraulic pressure acts on
it, a piston connected to a piston rod within the cylinder moves back and forth
creating linear motion.
Hydraulic cylinders can also convert hydraulic pressure into rotation creating a
rotary actuator, based on the mechanical design.
BASICS OF CONTROL SYSTEM
In a mechanical system, we are concerned with the response of the system to
certain inputs. These inputs include commands to drive the system and
disturbances from the environment.
We can divide a system into five major components:
1. The input (or inputs) to the system
2. The controller and actuating devices
3. The plant (the mechanism or process being controlled)
4. The output (the controlled variable)
5. Feedback elements (sensors)
A general block diagram of the control system components for one joint of a robot
manipulator is shown.
The input command is the defined position (and possibly speed) to which the joint
is directed to move.
The output variable is the actual position (and speed) of the joint.
The components of a control system include the controller and actuator.
The purpose of the controller is to compare the actual output of the plant with the
input command and to provide a control signal which will reduce the error to zero
or as close to zero as possible.
The controller generally consists of a summing junction where the input and
output signals are compared, a control device which determines the control
action, and the necessary power amplifiers and associated hardware devices to
accomplish the control action in the plant.
The actuator is used in robotics to convert the control action into physical
movement of the manipulator.
The controller and actuator may be operated by pneumatic, hydraulic, mechanical,
or electronic means, or combinations of these.
There are four basic control actions which are used singly or in combination to
provide six common types of controller: on-off control, proportional control,
derivative control and integral control.
The six controller types are:
1. On-off
2. Proportional
3. Integral
4. Proportional-plus-integral (P-I)
5. Proportional-plus-derivative (P-D)
6. Proportional-plus-integral-plus-derivative (P-I-D)
ON-OFF CONTROL
In the on off controller, the control element provides only two levels of
control, full-on or full-off.
An example of a common implementation of this type of controller is the
household thermostat (A room thermostat keeps your home at a steady
temperature. It turns the heating on until it reaches your chosen
temperature, then switches it off until the room cools slightly).
On-Off control is the simplest form of feedback control.
Sometimes, the control element has only two positions either it is fully
closed or fully open.
This control element does not operate at any intermediate position, i.e.
partly open or partly closed position. Transmits only two output signal-ON
between a desired target (setpoint) and the robot's actual state (position,
speed, etc.).
It uses three terms: Proportional for current error, Integral for past errors
(eliminating steady-state errors), and Derivative for predicted future
errors (improving stability and reducing overshoot), ensuring smooth,
accurate, and stable robotic operation for tasks like arm positioning, flight
control, and autonomous navigation.
P-I-D control is the most general control type and probably the most
commonly used type of controller. It provides quick response, good control
of system stability and low steady-state error. The computations
associated with any of the above controllers are typically performed by
microcomputers in a modern robot controller.