arduino robot kit

Upload: rohit-vaishampayan

Post on 07-Aug-2018

233 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/20/2019 Arduino Robot Kit

    1/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 1

     Arduino Based Robot

    Starter Kit  

  • 8/20/2019 Arduino Robot Kit

    2/12

  • 8/20/2019 Arduino Robot Kit

    3/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 3

    &. 

    !otor "hield:

    !otor $river "hield for *rduino to po'er $% "tepper and "ervo

    motors for simple to medium comple( proects.

    #eatures:

    •  4 8-9ridges: &;3$ chipset provides earbo(

    •  3

  • 8/20/2019 Arduino Robot Kit

    4/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 4

    4. heels & %m idth: 

    #eatures:

    •  6mm diameter

    •  &cm 'idth

    •  8ole diameter 6.1 mm

    •  "cre' for fastening on motor shaft

    •  !ade from virgin plastic

    =. *dvance %hassis:

    ,o'der coated !etal chassis for robots. Aas) to mount the motors

    on place b) using normal motor mount nut. The bod) contains

    perforated holes for eas) mounting of various si7e circuit boards

    and other mechanical components.

    $imensions:

    ength : 1;

  • 8/20/2019 Arduino Robot Kit

    5/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 5

    !otor Terminals B5bects

    !1 - * !& - 9

    !3 - % !4 - $

    *ssemble each motor to advance chassis using nut provided 'ith

    the $% motor.

    !ake sure )ou pass the motor 'ires through the perforated holesof advance chassis for better and cleaner connections of 'ires to

    the motor driver.

  • 8/20/2019 Arduino Robot Kit

    6/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 6

    %onnect each 'heel to the motor shaft using %"C scre' provided

    'ith the 'heel. ,ass the scre' through hole given in the shaft for

    rigid connections.

    Alectronics %onnection:

    !ount the Roboduino motor shield on top of Roboduino board.

    ?ote: %heck for the orientation as per the image.

  • 8/20/2019 Arduino Robot Kit

    7/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 7

    ire the motor and batter) to their respective terminal as

    mentioned on the robotic shield.

    Cindl) provide adequate insulation using cardboard foam sheet

    or elevating the board using spacers bet'een the metal chassis

    and Roboduino uno board to avoid damaging due to electrical

    shorting.

  • 8/20/2019 Arduino Robot Kit

    8/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 8

    4. 

    Reference %ode:

    Install The !otor.7ip lib into the librar) folder of *rduino Ide for

    using !otor driver functions

    #include // include motor driver lib for using motor

    fuctions

    int i,j;

    DCMotor motor!"; // cre$ting objects.DCMotor %motor!&;DCMotor Cmotor!';DCMotor Dmotor!(;

    void setu)! *

    +

    void loo)!

    *for!i-;i

  • 8/20/2019 Arduino Robot Kit

    9/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page

    del$2!"-;+

    for!j;j>";j33*

    %$c41$rd!j;del$2!"-;

    +

    5eft!;

    del$2!'---;6ight!;

    del$2!'---;+

    ////77777776obot control functions77777777////

    void 0or1$rd!unsigned ch$r S)eed // 6obot runs in for1$rd

    direction*

    motor.run!08696D;%motor.run!08696D;

    Cmotor.run!08696D;

    Dmotor.run!08696D;motor.setS)eed!S)eed;

    %motor.setS)eed!S)eed;Cmotor.setS)eed!S)eed;

    Dmotor.setS)eed!S)eed;

    +

    void %$c41$rd!unsigned ch$r S)eed // 6obot runs in b$c41$rddirection

    *motor.run!%C:96D;

    %motor.run!%C:96D;Cmotor.run!%C:96D;Dmotor.run!%C:96D;

  • 8/20/2019 Arduino Robot Kit

    10/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 1!

    motor.setS)eed!S)eed;%motor.setS)eed!S)eed;Cmotor.setS)eed!S)eed;

    Dmotor.setS)eed!S)eed;+

    void 6ight!void // S4id steer left turn.

    *

    motor.run!08696D;Cmotor.run!%C:96D;

    %motor.run!%C:96D;Dmotor.run!08696D;

    motor.setS)eed!&;%motor.setS)eed!&;

    Cmotor.setS)eed!&;

    Dmotor.setS)eed!&;

    +

    void 5eft!void // S4id steer right turn.

    * motor.run!%C:96D;

    Cmotor.run!08696D;

    %motor.run!08696D;Dmotor.run!%C:96D;

    motor.setS)eed!&;%motor.setS)eed!&;

    Cmotor.setS)eed!&;

    Dmotor.setS)eed!&;+

    void 6ight_0or1$rd! // 6ight side motor for1$rd

    *motor.run!08696D;

    Dmotor.run!08696D;motor.setS)eed!&;Dmotor.setS)eed!&;

  • 8/20/2019 Arduino Robot Kit

    11/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 11

    +

    void 6ight_%$c41$rd! // 6ight side motor b$c41$rd

    *motor.run!%C:96D;

    Dmotor.run!%C:96D;motor.setS)eed!&;

    Dmotor.setS)eed!&;

    +

    void 5eft_0or1$rd! // 5eft side motor for1$rd*

    %motor.run!08696D;Cmotor.run!08696D;

    %motor.setS)eed!&;

    Cmotor.setS)eed!&;

    +

    void 5eft_%$c41$rd! // 5eft side motor b$c41$rd

    * %motor.run!%C:96D;

    Cmotor.run!%C:96D;

    %motor.setS)eed!&;Cmotor.setS)eed!&;

    +

    void Sto)!void // ll motor h$lt*

    motor.setS)eed!-;%motor.setS)eed!-;

    Cmotor.setS)eed!-;Dmotor.setS)eed!-;

    +

  • 8/20/2019 Arduino Robot Kit

    12/12

     

    http://www.robokits.co.in

    http://www.robokitsworld.com Page 12

    Ideas for e(tending the Robots.

    1. 5bstacle *voider

    Interface ultra sonic sensor and make an *utonomous 5bstacle avoider

    robot.

    &. ,"& Remote controlled Robot

    !ake )our robot 'ireless 'ith R# &.4>87 coded Remote control. Ideal

    for making an) $% motor controlled robot. It can drive robot in skidsteer control 'ith analog speed control.