Class: ece 579 Author: David Gaskin



Download 8.91 Mb.
Page4/18
Date05.05.2018
Size8.91 Mb.
#48028
1   2   3   4   5   6   7   8   9   ...   18

  • We chose Simplified Serial mode for ease of use.

  • We wanted to be able to select multiple motor controllers, so we entered more than one. Per serial line, the Arduino can support up to 8 motor controllers. That’s a lot of motors!

  • We chose a 9600 baud rate, and you want yours to match that dip configuration unless you want a higher BAUD.

    Once your dip switch selection is complete, you will want to look into wiring the board with your arduino. We used the following configuration:

    Arduino Pin

    Where too

    TX 18 pin

    Serial transmit pin to motor controller

    RX 19 pin

    Left floating, not needed

    Digital I/O pin 52

    Used to select Motor controller 1

    Digital I/O pin 53

    Used to select Motor controller 2

    See the picture below on how to hook up the motor controllers, it is important that the ground only be connected to motor controller 1 (hooked up to select pin 1).



    The complete pin setup for the motor controllers can be seen below:

    Pins

    I/O

    Use

    0v

    I

    0v Signal ground, to be connected to ground of device sending signals.

    5v

    O

    5v output for pots

    S1

    I

    Input signal

    S2

    I

    Input signal

    B+

    Input

    Battery+ terminal

    B-

    Input

    Batter- terminal

    M1B

    O

    Motor driving outputs, can reverse to change direction

    M1A

    O

    Motor driving outputs, can reverse to change direction

    M2B

    O

    Motor driving outputs, can reverse to change direction

    M2A

    O

    Motor driving outputs, can reverse to change direction




    Download 8.91 Mb.

    Share with your friends:
  • 1   2   3   4   5   6   7   8   9   ...   18




    The database is protected by copyright ©ininet.org 2024
    send message

        Main page