grid workshop

Upload: nishant-garg

Post on 07-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/4/2019 GRID Workshop

    1/18

  • 8/4/2019 GRID Workshop

    2/18

    It is a competition in Tryst in which one has to design a robot which cantrace its path from the start position of the grid to the finish over a givenpath.

    The path will be given in form of series of coordinates which you are

    expected to trace.

    You have to program your machine to traverse this path.

    The winner would be decided on the basis of time.

  • 8/4/2019 GRID Workshop

    3/18

    We can approach the problem in many ways..Following are the two suggested methods->

    1.Using a DC-motor drive system and an array of black line sensors for feedback.2.Using a stepper motor drive system in which one may not need to have

    feedback from the sensors .

    Though the second method is a much professional way to solving the problem wewill in our talk consider the first method usind sensors and DC motors without

    encoders.

  • 8/4/2019 GRID Workshop

    4/18

    ARRAY OFSENSORS

    ANALOGSIGNALS

    COMPARITORLM 324

    BINARY DATA

    PIC18F4550

    TO THE MOTORDRIVER

    L293-D

    MOTORS

    Here is the overview of the robot that would be required for grid.It shows the independent modules of the robot and their interconnections

  • 8/4/2019 GRID Workshop

    5/18

    SENSORPOSITION FORCOUNTING No.OF CROSSINGS

    SENSOR

    POSITION FORFOLLOWING

    THE LINE

    LINES INBLACK

  • 8/4/2019 GRID Workshop

    6/18

    Sensor C on

    Sensor D onMotor C is onMotor D is on

    Sensor D off

    Sensor C onMotor D is offMotor C is on

    Sensor D onSensor C off

    Motor D is onMotor C is off

  • 8/4/2019 GRID Workshop

    7/18

    Cross Detection Sensors on thecrossing (On)

    Cross Detection Sensorsaway from crossing (Off)

  • 8/4/2019 GRID Workshop

    8/18

  • 8/4/2019 GRID Workshop

    9/18

  • 8/4/2019 GRID Workshop

    10/18

    COMPARITOR IS A DEVICEWHICH CAN COMPARE TWO

    VOLTAGES AND WILL GIVE AN

    OUTPUT ONLY WHEN+IN > -IN

    BY USING LM 324 WE CAN

    SIMULTANEOUSLY COMPARE 4VOLTAGE PAIRS

  • 8/4/2019 GRID Workshop

    11/18

    The circuit shown is the basicprogrammable circuit ofMicrochips Programmable IC.

    The shown hardware can bedirectly connected to the PC usinga USB cord and can be

    programmed according to ourrequirements.

    There are around 30 pins availablefor use that can be independentlycontrolled by the program code.

    There are also some special pinsfor activities such as PWM and

    ADC and serial communication,etc.

  • 8/4/2019 GRID Workshop

    12/18

    Need for motor drivers->We cannot drive our motors using an output port of the PIC.We therefore require current amplification using motor drivers.Further motor drivers provide us a method to drive the motor forward andbackward according to the signals received from the MCU.(PIC)

    For unidirectional drive->ULN2003AFor bidirectional drive->L293D

  • 8/4/2019 GRID Workshop

    13/18

    L293D The current amplifier

  • 8/4/2019 GRID Workshop

    14/18

    Motor interface and control circuit

  • 8/4/2019 GRID Workshop

    15/18

    We use DC motors in thebot as they are easy todeal with.

    Alongside is shown thefigure if the grid followerwith 2 DC motorsmounted on the PCB

    which contains thecircuit and acts like achassis as well.

  • 8/4/2019 GRID Workshop

    16/18

    Shown is the circuitry ofthe grid follower

  • 8/4/2019 GRID Workshop

    17/18

    Bottom side of thegrid follower

  • 8/4/2019 GRID Workshop

    18/18