• Figure 1-5
  • Figure 1-6
  • Step 1. Attach Pin Headers to the Shield




    Download 22.85 Mb.
    Pdf ko'rish
    bet7/106
    Sana27.06.2022
    Hajmi22.85 Mb.
    #24472
    1   2   3   4   5   6   7   8   9   10   ...   106
    Bog'liq
    Arduino-Android ProjectsfortheEvilGenius-SimonMonk

    Step 1. Attach Pin Headers to the Shield
    The first step is to attach the pin headers to the motor shield. 
    Figure 1-4
    shows the bottom of the shield
    with the pin headers attached. Your header strips will probably come in a single long length that is
    designed to be snapped into sections of the correct length. You will need to break off two lengths of six
    pins and two lengths of eight pins.
    Figure 1-4 The motor shield with pin headers attached
    The easiest way to keep the pins straight is to plug the long ends of the headers into your Arduino
    board while you solder them to the shield. However, this will heat up the plastic of the socket underneath
    and may distort it. So either solder quickly, or just solder the pins at each end of a section so the header is
    held in the right place, and then remove the shield and solder the rest of the pins.
    When all the pins are in place, the top of the shield should look like 
    Figure 1-5
    .
    www.ECA.ir ﮏﯾﻧورﺗﮑﻟا و قرﺑ ﯽﺻﺻﺧﺗ تﯾﺎﺳ بو
    @ECAir مارﮕﻠﺗ لﺎﻧﺎﮐ رد تﯾوﺿﻋ


    Figure 1-5 The top side of the motor shield
    Step 2. Attach Screw Terminals to the Shield
    The screw terminals fit next to the A and B channels for the motors. We will also attach a screw terminal
    to the power socket, as it is easier to connect to than the main 2.1mm power socket on the Arduino.
    Solder the four screw terminals into place, with the opening facing toward the outside of the shield.
    Figure 1-6
     shows the shield with the screw terminals attached and the shield plugged into an Arduino.
    Figure 1-6 The shield with screw terminals attached
    Step 3. Install the Bluetooth Module
    Figure 1-7
     shows the Bluetooth module soldered into place and the wiring attached.
    www.ECA.ir ﮏﯾﻧورﺗﮑﻟا و قرﺑ ﯽﺻﺻﺧﺗ تﯾﺎﺳ بو
    @ECAir مارﮕﻠﺗ لﺎﻧﺎﮐ رد تﯾوﺿﻋ


    Figure 1-7 The completed shield
    Before attaching the Bluetooth module, carefully bend the pins with pliers so the board lies flat
    against the shield. Solder the module itself into place first, and then attach the four wires as listed next:
    +5V on the Bluetooth module to +5V on the shield
    GND on the Bluetooth module to GND on the shield
    TXD on the Bluetooth module to RX on the shield
    RXD on the Bluetooth module to TX on the shield
    Note the cross-over between transmit and receive between the Arduino and the Bluetooth module.
    That’s it for the electronics. We now turn to constructing the hardware for the robot.

    Download 22.85 Mb.
    1   2   3   4   5   6   7   8   9   10   ...   106




    Download 22.85 Mb.
    Pdf ko'rish

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Step 1. Attach Pin Headers to the Shield

    Download 22.85 Mb.
    Pdf ko'rish