• Figure 1-1
  • Construction Figure 1-3 shows the schematic diagram for the project. Figure 1-3
  • What You Will Need
  • CHAPTER 1 Bluetooth Robot




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

    CHAPTER 1
    Bluetooth Robot
    T
    HE
    E
    VIL
    G
    ENIUS
    and his Android phone are inseparable. You will find him using it for grocery
    shopping, redirecting military satellites, and messaging his minions. The Evil Genius also loves to direct
    small robots by remote control using Bluetooth.
    This project employs a simple Android app (
    Figure 1-1
    ) and an Arduino-controlled robot using a
    low-cost Bluetooth module (
    Figure 1-2
    ).
    Figure 1-1 A remote-control app
    Figure 1-2 A Bluetooth robot
    Arduino boards are very popular microcontroller boards that have a number of advantages, not the
    least of which are:
    They are easy to program, and can be programmed from a Mac, Windows, or Linux computer.
    Many “shields” just plug into the top of the Arduino board.
    They are not expensive.
    www.ECA.ir ﮏﯾﻧورﺗﮑﻟا و قرﺑ ﯽﺻﺻﺧﺗ تﯾﺎﺳ بو
    @ECAir مارﮕﻠﺗ لﺎﻧﺎﮐ رد تﯾوﺿﻋ


    Construction
    Figure 1-3
     shows the schematic diagram for the project.
    Figure 1-3 The schematic diagram
    The robot’s drive motors are controlled by a motor shield kit, and the Bluetooth module is attached
    to the prototyping area of the shield, making this a simple project to construct, with a minimal amount of
    soldering required.
    All the software for the project can be downloaded from 
    www.duinodroid.com
    .
    What You Will Need
    In addition to a Bluetooth-equipped Android phone (Android 2.1 or later), you will need the components
    found in the following Parts Bin to make the project.
    www.ECA.ir ﮏﯾﻧورﺗﮑﻟا و قرﺑ ﯽﺻﺻﺧﺗ تﯾﺎﺳ بو
    @ECAir مارﮕﻠﺗ لﺎﻧﺎﮐ رد تﯾوﺿﻋ


    This design uses the Arduino Uno. The official Arduino web site (
    www.arduino.cc
    ) lists suppliers
    of the Uno. However, if you are on a budget, you can use a clone of the Arduino Uno. The Arduino is
    “open-source hardware,” which means all the design files are available under a Creative Commons
    license that permits third parties to make their own Arduinos. Many do, and an Internet search will find
    you cheap alternatives to the official “Uno.”
    There are many different types of Bluetooth modules on the market. The module that the author used
    is a simple “stick of gum”–shaped Bluetooth module with just four pins coming out of it that supply power
    and provide, receive, and transmit connections. These types of modules work at 5V and are ideally suited
    for use with an Arduino. They are usually made up of a base board with four pins on which an even
    smaller board is mounted that is the actual Bluetooth module. These can be bought on eBay for around
    USD 15. It is best to buy one with the miniboard already soldered to the main board, because the
    connections are very tiny and quite hard to solder. Higher-quality and more expensive versions are
    available in the Bluesmirf range from suppliers like Sparkfun. The main difference between the low-cost
    and more expensive modules is range.
    The gear motors from Pololu are ideal for this kind of application. They have about the right gear
    ratio and are not expensive. Alternatives are available, but try not to buy gear motors that draw more than
    about 1 amp, otherwise the motor shield will struggle to provide the necessary current.
    The motor shield greatly simplifies the whole process of driving motors, and what’s more, it has a
    handy little prototyping area at one end where you can attach your own extra components. In this case, that
    is where our Bluetooth module will sit. In the parts list, I specified the basic shield kit, which comes
    without header strips and screw terminals. This shield is also available as a “retail” kit that includes the
    pin header and screw terminals. See Sparkfun’s web site for details.
    In addition to these components, you will also need the following tools.
    TOOLBOX
    An electric drill and assorted drill bits
    A hacksaw or Dremel rotary tool
    A hot glue gun or epoxy glue
    www.ECA.ir ﮏﯾﻧورﺗﮑﻟا و قرﺑ ﯽﺻﺻﺧﺗ تﯾﺎﺳ بو
    @ECAir مارﮕﻠﺗ لﺎﻧﺎﮐ رد تﯾوﺿﻋ


     A computer to program the Arduino
    A USB-type A-to-B lead

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




    Download 22.85 Mb.
    Pdf ko'rish