0%

Book Description

Design and build fantastic projects and devices using the Arduino platform

About This Book

  • Explore the different sensors that can be used to improve the functionality of the Arduino projects
  • Program networking modules in conjunction with Arduino to make smarter and more communicable devices
  • A practical guide that shows you how to utilize Arduino to create practical, useful projects

Who This Book Is For

This book is an ideal choice for hobbyists or professionals who want to create quick and easy projects with Arduino. As a prerequisite, readers must have a working Arduino system and some programming background, ideally in C/C++. Basic knowledge of Arduino is helpful but not required to follow along with this book.

What You Will Learn

  • Understand and utilize the capabilities of the Arduino
  • Integrate sensors to gather environmental data and display this information in meaningful ways
  • Add modules such as Bluetooth and Wi-Fi that allow the Arduino to communicate and send data between devices
  • Create simple servers to allow communication to occur
  • Build automated projects including robots while learning complex algorithms to mimic biological locomotion
  • Implement error handling to make programs easier to debug and look more professional
  • Integrate powerful programming tools and software such as Python and Processing to broaden the scope of what the Arduino can achieve
  • Practice and learn basic programming etiquette

In Detail

Arduino an opensource physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board. The opensource Arduino software (IDE) makes it easy to write code and upload it to the board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing and other opensource software.

With the growing interest in home-made, weekend projects among students and hobbyists alike, Arduino offers an innovative and feasible platform to create projects that promote creativity and technological tinkering.

Arduino by Example is a project-oriented guide to help you fully utilize the power of one of the world's most powerful open source platforms, Arduino. This book demonstrates three projects ranging from a home automation project involving your lighting system to a simple robotic project to a touch sensor project. You will first learn the basic concepts such as how to get started with the Arduino, and as you start building the project, you will develop the practical skills needed to successfully build Arduino powered projects that have real-life implications.

The complexity of the book slowly increases as you complete a project and move on to the next. By the end of this book, you will be able to create basic projects and utilize the elements used in the examples to construct your own devices.

Style and approach

This book follows a project-oriented approach, with multiple images and plenty of code to help you build your projects easily. The book uses a tutorial-based methodology where the concepts are first explained and then implemented to help you develop the projects.

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 code file.

Table of Contents

  1. Arduino by Example
    1. Table of Contents
    2. Arduino by Example
    3. Credits
    4. About the Author
    5. Acknowledgements
    6. About the Reviewers
    7. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    8. 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
    9. 1. Getting Started with Arduino
      1. Prerequisites
        1. Materials needed
        2. Note
      2. Setting up
        1. Downloading and installing the software
          1. Windows
          2. Mac OS X
          3. Linux (Ubuntu 12.04 and above)
      3. Connecting the Arduino
        1. Windows
        2. Mac OS X
        3. Linux
        4. The Arduino IDE
      4. Hello World
        1. Writing a simple print statement
      5. LED blink
      6. Summary
    10. 2. Digital Ruler
      1. Prerequisites
      2. A bit about the sensor
      3. Hooking up an LCD to the Arduino
      4. Best of both worlds
      5. Summary
    11. 3. Converting Finger Gestures to Text
      1. Prerequisites
      2. What is a capacitive touch sensor?
      3. An introduction to Processing
      4. Tic-tac-toe with touch
        1. Arduino and Processing
        2. The result
      5. Pattern recognition
      6. Summary
    12. 4. Burglar Alarm – Part 1
      1. What is a passive infrared sensor?
      2. A mini PIR-Arduino alarm
      3. Testing the camera
        1. Installing the camera on the network
        2. Setting up the mugshot URL
      4. Putting it together
        1. An introduction to Python
        2. Hooking up the Bluetooth module
      5. Summary
    13. 5. Burglar Alarm – Part 2
      1. Dealing with the image
      2. Sending a notification to a smart device
      3. Putting the pieces together
      4. Summary
    14. 6. Home Automation – Part 1
      1. Prerequisites
      2. Connecting the Wi-Fi module
        1. The CC3000 Arduino shield
        2. Testing the shield
      3. Using relays to control appliances
        1. Understanding the basics of the relay
        2. Diving deeper into relay functionality
        3. Programming a relay
          1. Testing the relay with a light bulb
      4. Communicating through a terminal
      5. Summary
    15. 7. Home Automation – Part 2
      1. Communicating via a smart phone
        1. Android devices
        2. iOS (Apple) devices
      2. Implementing speech recognition
        1. The software
        2. Configuring the software
        3. Creating a voice schema
        4. Testing out the software
        5. Making a more reliable schema
      3. Upgrading the home automation system
        1. Controlling multiple appliances
        2. Via the terminal
        3. Via the smart phone (Android)
        4. Via the smart phone (iOS)
        5. Via the speech recognition software (BitVoicer)
      4. Complete home automation
      5. Summary
    16. 8. Robot Dog – Part 1
      1. Prerequisites
      2. Introducing Arduino MEGA 2560
        1. The microcontroller
          1. Testing MEGA
        2. Understanding servos
          1. Servo 101
          2. Testing a servo
          3. Programming a servo
          4. Using multiple servos
      3. Understanding power requirements
        1. Limitations of Arduino MEGA 2560
        2. Choosing the right power source
        3. Using the right power source(s)
      4. Building the chassis
        1. Using prior art
      5. Summary
    17. 9. Robot Dog – Part 2
      1. Building the chassis
        1. Sticks and servos
      2. Completing the circuit
        1. Labeling the servos
        2. Building a tiny circuit
        3. Putting it all together
      3. Summary
    18. 10. Robot Dog – Part 3
      1. Programming the robot
        1. Weight distribution
        2. Test one
          1. The walking gait
        3. Test two
      2. Developing personality
        1. Circuit upgrade
        2. Body upgrade
        3. Sensors
        4. The switch
        5. Coding the personality
      3. Implementing speech control
        1. Connecting the HC-06 module
        2. Programming the Arduino
        3. Setting up BitVoicer
      4. Summary
    19. Index
3.137.185.180