basic robotics and sensors

Embed Size (px)

Citation preview

  • 8/13/2019 basic robotics and sensors

    1/47

    Autonomous Robotics

    PATH-FINDER

    Robotics Club

  • 8/13/2019 basic robotics and sensors

    2/47

    Difference b/w Machine and Robots

    Reach

    it

  • 8/13/2019 basic robotics and sensors

    3/47

    Basics of mobile robot

    Sensory devices for direction and feedback

    Sensor data processing unit Actuators

    Locomotion system

    Control system for making decisions Power supply

  • 8/13/2019 basic robotics and sensors

    4/47

    Some Most Common Sensors

    Touch Sensor and IR Sensor

  • 8/13/2019 basic robotics and sensors

    5/47

    Touch Sensors

    One of the most simple ones---just a switch

    force voltagemeasurement

    electrical flow

  • 8/13/2019 basic robotics and sensors

    6/47

    IR Sensor

    This Consists of IR LED, IR sensor and a

    variable resistance (preset).The LED continuously emits and when any

    obstacle comes in front, the intensity is

    increased at the sensors, hence changing

    their state from OFF to ON.The range of these LEDs can be changed using

    the preset (changing threshold).

  • 8/13/2019 basic robotics and sensors

    7/47

    Light Sensor Photo Diode

    This consists of a

    photodiode which

    allows current through

    it, exponentially

    proportional to light

    absorbed by it, exactly

    like a valve. It may or

    may not require an

    LED.

    voltagemeasurement

    light energy

    electrical flow

    voltagemeasurement

    light energy

    low light

    bright light

  • 8/13/2019 basic robotics and sensors

    8/47

    Light Sensors LDR

    LDRs are light dependent resistances

    Two circuits are possible as shown and theformula for them is

    Rvariable

    Rvariable

  • 8/13/2019 basic robotics and sensors

    9/47

    Actuators

    Wordweb:A mechanism that puts something

    into automatic action. They convert electrical energy into

    mechanical energy.

    Motors provide rotational motion

    Electromagnet provides linear motion

  • 8/13/2019 basic robotics and sensors

    10/47

    Types of Motors

    DC motors :Extensively used, all purposeones, driven by dc power supply

    AC motor : not used in robotics, driven by acpower

    Stepper motor: extensively used in robotics

    where controlled rotation is required Servo motor: geared dc motor with inbuilt

    feedback and error compensation

  • 8/13/2019 basic robotics and sensors

    11/47

    DC Motor

    Operates with dcvoltage

    Can run in bothdirections

    Speed control

  • 8/13/2019 basic robotics and sensors

    12/47

    Working of a DC Motor

    1. Direction of motion is controlled by polarity of voltageor direction of current

    2. Speed is controlled by changing the average power

    (energy) fed to the DC motor

  • 8/13/2019 basic robotics and sensors

    13/47

    DC motor continued

    DC motors are high speed and low torque

    devices Gears are used to decrease the speed and

    increase the torque

    They give a smooth shaft movement

    Easy to operate

  • 8/13/2019 basic robotics and sensors

    14/47

    DC motor drivers

    Drivers are current amplifier circuits

    A low current control signal is convertedinto a proportionally higher current signal

    that can drive a motor

    But How????

    Power Transistors---Those which

    can handle current of the order of Amps

  • 8/13/2019 basic robotics and sensors

    15/47

    Switching circuit

  • 8/13/2019 basic robotics and sensors

    16/47

    H-bridge working

  • 8/13/2019 basic robotics and sensors

    17/47

    Electronic direction control

  • 8/13/2019 basic robotics and sensors

    18/47

    H-Bridge working

  • 8/13/2019 basic robotics and sensors

    19/47

    Actual Circuit

    When both the points A & B are "HIGH" Q1

    and Q2 are in saturation. Hence the bases of Q3

    to Q6 are grounded. Hence Q3,Q5 are OFF and

    Q4,Q6 are ON . The voltages at both the motor

    terminals is same, so the motor is OFF.

    Similarly when both A and B are "LOW" the

    motor is OFF. When A is HIGH and B is LOW,

    Q1 saturates ,Q2 is OFF. The bases of Q3 and

    Q4 are grounded and that of Q4 and Q5 are

    HIGH.

    Therefore Q4 and Q5 conduct making the right

    terminal of the motor more positive than the left

    and the motor is ON. When A is LOW and B is

    HIGH ,the left terminal of the motor is more

    positive than the right and the motor rotates in the

    reverse direction. You can use only theSL/SK100s ,but BC148 used have a very low

    hFE ~70 and they would enter the active region

    for 3V(2.9V was what I got from the computer

    for a HIGH) . You can ditch the BC148 if you

    have a SL/SK100 with a decent value of hFE

    ( like 150).The diodes protect the transistors from

    surge produced due to the sudden reversal of the

    motor. The approx. cost of the circuit without the

    motor is around Rs.40.

  • 8/13/2019 basic robotics and sensors

    20/47

    DC motor Speed control circuit

    Input: Operating voltage and control signal

    Output: Part of operating voltage according

    to control signal:

  • 8/13/2019 basic robotics and sensors

    21/47

    DC Motor speed control continued.

    Voltage across the terminal of Motor can be

    changed by passing current through avariable resistor. But it is extremely energy

    inefficient

    A reduced average voltage is supplied to the

    motor by a technique called PWM

  • 8/13/2019 basic robotics and sensors

    22/47

    PWM

    Pulse width modulation

    PWM is a technique to generate waveformof different duty cycles depending upon an

    input control voltage

    After feeding voltage waveform and

    changing its duty cycle ,speed can becontrolled.

  • 8/13/2019 basic robotics and sensors

    23/47

    Duty cycle

  • 8/13/2019 basic robotics and sensors

    24/47

    Duty cycle continue..

    Time period (T): duration after which thevoltage waveform repeats itself

    Duty cycle: % time of T when the voltage isequal to operating voltage

    Average voltage:=

    Duty cycle x operating voltage-------------------------------------

    100

  • 8/13/2019 basic robotics and sensors

    25/47

    PWM generation

    Timer IC 555 is used for generation ofwaveform

    Pin outs

  • 8/13/2019 basic robotics and sensors

    26/47

    Circuit for PWM generation

    Download Datasheet for NE555

    http://www.downloadcatalog.com/http://www.downloadcatalog.com/
  • 8/13/2019 basic robotics and sensors

    27/47

    Both speed and direction control

  • 8/13/2019 basic robotics and sensors

    28/47

    L293D Quad Half H-Bridge

  • 8/13/2019 basic robotics and sensors

    29/47

    Pin outs of L293D

  • 8/13/2019 basic robotics and sensors

    30/47

    Stepper Motor

    Widely use in Robotics ---why??

    Because it is more precise than DC motorMeasured rotation and can be held at a

    particular position

    Alignation is much better in a differentialdrive

  • 8/13/2019 basic robotics and sensors

    31/47

    Stepper motor continue

  • 8/13/2019 basic robotics and sensors

    32/47

    Types of Stepper

    Mainly of two types

    Unipolarmotor: the current only flows in onedirection in the windings of the coils. i.e. the stator

    poles can only be polarized one way.

  • 8/13/2019 basic robotics and sensors

    33/47

    Continued.

    Bipolar motor: the current flows in both

    direction in the windings of the coils. i.e. the

    stator poles can be polarized both way.

  • 8/13/2019 basic robotics and sensors

    34/47

    Comparison

    Unipolar

    Current flow in one direction

    Simple drive circuit

    Less torque

    Smooth drive

    Bipolar

    Current flow in both direction

    Complicated drive Circuit

    High Torque

    Not Smooth

  • 8/13/2019 basic robotics and sensors

    35/47

    Unipolar Stepper Motor

    This kind of motor has four coils .

    When energized in the correct sequence, it causes

    the permanent magnet attached to the shaft to

    rotate.

    There are 4 basic step sequences. After step 4, the

    sequence is repeated from step 1 again.

    Reversing the order of the steps in a sequence will

    reverse the direction of rotation.

  • 8/13/2019 basic robotics and sensors

    36/47

    Single coil excitation

    0010

    0100

    1000

    0001

  • 8/13/2019 basic robotics and sensors

    37/47

    a. Single-Coil Excitation - Each

    successive coil is energized in turn.

  • 8/13/2019 basic robotics and sensors

    38/47

    Double coil Excitation

    0011 0110 1100 1001

    Note:

    The excitation of Coil 4 is always the inverse of the excitation of Coil 2.

    The excitation of Coil 1 is always the inverse of the excitation of Coil 3.

    So, with the right circuit, you can generate this sequence with only two

    data lines.

    http://www.doc.ic.ac.uk/~ih/doc/stepper/control2/connect.htmlhttp://www.doc.ic.ac.uk/~ih/doc/stepper/control2/connect.html
  • 8/13/2019 basic robotics and sensors

    39/47

    b. Two-Coil Excitation - Each successive pair of

    adjacent coils is energized in turn.

  • 8/13/2019 basic robotics and sensors

    40/47

    Interleaving the two sequences will

    cause the motor to half-step

  • 8/13/2019 basic robotics and sensors

    41/47

    Single and Double coil Excitation1000 1100 0100 0110 0010 0011 0001 1001

    0100 0011

    0010

    0110

    01001100

    1000

    1001

  • 8/13/2019 basic robotics and sensors

    42/47

    Comparison

    Single coil

    Low torque

    Consume less energy

    Settling time is more

    Double coil

    High torque

    Consume double

    energy Settling time is less

  • 8/13/2019 basic robotics and sensors

    43/47

    Circuit Diagram

  • 8/13/2019 basic robotics and sensors

    44/47

    The Coil Diagram

  • 8/13/2019 basic robotics and sensors

    45/47

    Connections

    DataPort1

    Data

    Port2

    Motor 1

    Motor 2

    Note connect a 15v zener diode to pin 10 of IC as shown to prevent damageto the IC due to "back emf" when loads such as motors switch on and off

  • 8/13/2019 basic robotics and sensors

    46/47

    25-way Female D-Type Connector

  • 8/13/2019 basic robotics and sensors

    47/47

    PC parallel Port

    The PC's Parallel Printer Port has a total of

    12 digital outputs and 5 digital inputs accessed via 3

    consecutive 8-bit ports in the processor's I/O space. 8 output pins accessed via the DATA Port

    5 input pins (one inverted) accessed via the STATUS

    Port

    4 output pins (three inverted) accessed via theCONTROL Port

    The remaining 8 pins are grounded