0%

Book Description

Get the best out of Arduino by interfacing it with Android to create engaging interactive projects

In Detail

Arduino is an open source microcontroller built on a single-circuit board that is capable of receiving sensory input from the environment and controlling interactive physical objects.

The first few projects of this book will focus on displaying tweets within your app by connecting to Twitter, controlling basic functions of the Arduino board, and connecting an Arduino-powered weather station to an Android phone via Bluetooth. Next, you will learn how to use the Arduino Yún board to connect a standard USB camera to a local Wi-Fi network. At the end of the book, you will build a simple mobile robot, connect it to an Arduino board and a Bluetooth module, then control the robot from an Android phone using Bluetooth.

Each project is explained in a step-by-step fashion, always starting with the choice of components and the assembly of the hardware.

What You Will Learn

  • Build Arduino systems that can be controlled via Wi-Fi or Bluetooth Low Energy
  • Make a weather measurement station that can be monitored from Android
  • Build a smart power switch that can be controlled via Wi-Fi from Android
  • Monitor your home remotely with a wireless security camera
  • Control a servo motor with Bluetooth Low Energy using your phone's gyroscope
  • Open or close a door using voice controls or NFC
  • Control a mobile robot using Bluetooth Low Energy

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Arduino Android Blueprints
    1. Table of Contents
    2. Arduino Android Blueprints
    3. Credits
    4. About the Authors
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. Setting Up Your Workspace
      1. Hardware and software requirements
      2. Installing Java Developer Kit
        1. Checking the JDK version
          1. Mac
          2. Windows
        2. Installing Java
      3. Installing Android Studio
        1. Mac
        2. Windows
      4. Setting up the Android Software Development Kit
        1. Setting up your physical Android device for development
          1. Enabling Developer options
          2. Enabling USB debugging
          3. Entrusting the computer with the installed IDE using secure USB debugging (devices with Android 4.4.2)
      5. Hardware configuration
      6. Learning to use the aREST library
      7. Creating your first Android project
        1. Setting up your first Hello Arduino project
        2. Installing your app on your physical device
      8. Summary
    9. 2. Controlling an Arduino Board via Bluetooth
      1. Hardware and software requirements
        1. Configuring the hardware
      2. Writing the Arduino sketch
        1. How to create a simple Android app to connect to the BLE module
        2. Modifying the Android layout file
        3. Connecting the modified layout to the corresponding activity
        4. How to go further
      3. Summary
    10. 3. Bluetooth Weather Station
      1. Hardware and software requirements
        1. Hardware configuration
        2. Testing the sensors
      2. Writing the Arduino sketch
        1. Wireframing our Android application and modifying the layout files
        2. Implementing Android layouts in the main activity
      3. Enhancing the user interface
        1. Creating and adding our very own app icon
        2. Centering and enlarging the data output text
        3. Modifying the buttons and adding some color to our text
        4. How to go further
      4. Summary
    11. 4. Wi-Fi Smart Power Plug
      1. Hardware and software requirements
        1. Configuring the hardware
        2. Testing the relay
      2. Writing the Arduino sketch
        1. Wireframing our Android application
        2. Implementing our layouts into the code
        3. Polishing the user interface and experience
        4. Adding a new app icon
        5. Centering and enlarging the data output text
        6. Aligning and styling the buttons
        7. Changing the application name within the action bar
        8. How to go further
      3. Summary
    12. 5. Wi-Fi Remote Security Camera
      1. Hardware and software requirements
        1. Hardware configuration
        2. Setting up video streaming
        3. Implementing a fullscreen stream player on Android
        4. How to go further
      2. Summary
    13. 6. Android Phone Sensor
      1. Hardware and software requirements
        1. Configuring the hardware
        2. Testing the servo
      2. Writing the Arduino sketch
        1. Setting up the Android app project
        2. Laying out the Android user interface and permissions
        3. Setting up the app's internals
        4. How to go further
      3. Summary
    14. 7. Voice-activated Arduino
      1. Hardware and software requirements
        1. Configuring the hardware
      2. Writing the Arduino sketch
        1. Setting up the Android app
        2. Laying out the Android user interface and permissions
        3. Coding the app's internals
        4. How to go further
      3. Summary
    15. 8. Control an Arduino Board via NFC
      1. Hardware and software requirements
        1. Configuring the hardware
        2. Testing the NFC shield
      2. Writing the Arduino sketch
        1. Setting up the Android app
        2. Laying out the Android user interface and permissions
        3. Coding the app's internals
        4. How to go further
      3. Summary
    16. 9. Bluetooth Low Energy Mobile Robot
      1. Hardware and software requirements
        1. Configuring the hardware
        2. Testing the robot
      2. Writing the Arduino sketch
        1. Setting up the Android app
        2. Laying out the Android user interface and setting permissions
        3. Coding the app's internals
      3. Enhancing the user interface further
        1. Adding a new app icon
        2. Styling the user interface buttons
        3. How to go further
      4. Summary
    17. 10. Pulse Rate Sensor
      1. Hardware and software requirements
        1. Configuring our hardware
        2. Testing the sensor
      2. Writing the Arduino sketch
        1. Setting up the Android app
        2. Laying out the Android user interface and setting permissions
        3. Coding the app's internals
        4. How to go further
      3. Summary
    18. Index
3.137.161.222