O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Internet of Things with Arduino Blueprints

Book Description

Develop interactive Arduino-based Internet projects with Ethernet and WiFi

About This Book

  • Build Internet-based Arduino devices to make your home feel more secure
  • Learn how to connect various sensors and actuators to the Arduino and access data from Internet
  • A project-based guide filled with schematics and wiring diagrams to help you build projects incrementally

Who This Book Is For

This book is intended for those who want to learn more about Arduino and make Internet-based interactive projects with Arduino. If you are an experienced software developer who understands the basics of electronics, then you can quickly learn how to build the Arduino projects explained in this book.

What You Will Learn

  • Make a powerful Internet controlled relay with an embedded web server to monitor and control your home electrical appliances
  • Build a portable Wi-Fi signal strength sensor to give haptic feedback about signal strength to the user
  • Measure water flow speed and volume with liquid flow sensors and record real-time readings
  • Secure your home with motion-activated Arduino security cameras and upload images to the cloud
  • Implement real-time data logging of a solar panel voltage with Arduino cloud connectors
  • Track locations with GPS and upload location data to the cloud
  • Control a garage door light with your Twitter feed
  • Control infrared enabled devices with IR remote and Arduino

In Detail

Arduino is a small single-chip computer board that can be used for a wide variety of creative hardware projects. The hardware consists of a simple microcontroller, board, and chipset. It comes with a Java-based IDE to allow creators to program the board. Arduino is the ideal open hardware platform for experimenting with the world of the Internet of Things. This credit card sized Arduino board can be used via the Internet to make more useful and interactive Internet of things projects.

Internet of Things with Arduino Blueprints is a project-based book that begins with projects based on IoT and cloud computing concepts. This book covers up to eight projects that will allow devices to communicate with each other, access information over the Internet, store and retrieve data, and interact with users—creating smart, pervasive, and always-connected environments. It explains how wired and wireless Internet connections can be used with projects and the use of various sensors and actuators. The main aim of this book is to teach you how Arduino can be used for Internet-related projects so that users are able to control actuators, gather data from various kinds of sensors, and send and receive data wirelessly across HTTP and TCP protocols.

Finally, you can use these projects as blueprints for many other IoT projects and put them to good use. By the end of the book, you will be an expert in the use of IoT with Arduino to develop a set of projects that can relate very well to IoT applications in the real world.

Style and approach

Every chapter in this book clearly explains how to assemble components through easy-to-follow steps on while laying out important concepts, code snippets, and expected output results so that you can easily end up with a successful project where you can also enhance or modify the project according to your requirements.

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. Internet of Things with Arduino Blueprints
    1. Table of Contents
    2. Internet of Things with Arduino Blueprints
    3. Credits
    4. About the Author
    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. Internet-Controlled PowerSwitch
      1. Getting started
        1. Hardware and software requirements
        2. Arduino Ethernet Shield
        3. The Arduino Ethernet board
        4. Connecting Arduino Ethernet Shield to the Internet
        5. Testing your Arduino Ethernet Shield
      2. Selecting a PowerSwitch Tail
        1. PN PSSRKT-240
        2. PN80135
        3. Wiring PowerSwitch Tail with Arduino Ethernet Shield
      3. Turning PowerSwitch Tail into a simple web server
        1. What is a web server?
        2. A step-by-step process for building a web-based control panel
          1. Handling client requests by HTTP GET
        3. Sensing the availability of mains electricity
        4. Testing the mains electricity sensor
        5. Building a user-friendly web user interface
      4. Adding a Cascade Style Sheet to the web user interface
      5. Finding the MAC address and obtaining a valid IP address
        1. Finding the MAC address
        2. Obtaining an IP address
          1. Assigning a static IP address
          2. Obtaining an IP address using DHCP
      6. Summary
    9. 2. Wi-Fi Signal Strength Reader and Haptic Feedback
      1. Prerequisites
      2. Arduino WiFi Shield
        1. Firmware upgrading
        2. Stacking the WiFi Shield with Arduino
        3. Hacking an Arduino earlier than REV3
        4. Knowing more about connections
        5. Fixing the Arduino WiFi library
        6. Connecting your Arduino to a Wi-Fi network
      3. Wi-Fi signal strength and RSSI
        1. Reading the Wi-Fi signal strength
      4. Haptic feedback and haptic motors
        1. Getting started with the Adafruit DRV2605 haptic controller
        2. Selecting a correct vibrator
        3. Connecting a haptic controller to Arduino WiFi Shield
        4. Soldering a vibrator to the haptic controller breakout board
        5. Downloading the Adafruit DRV2605 library
        6. Making vibration effects for RSSI
      5. Implementing a simple web server
        1. Reading the signal strength over Wi-Fi
      6. Summary
    10. 3. Internet-Connected Smart Water Meter
      1. Prerequisites
      2. Water flow sensors
        1. Wiring the water flow sensor with Arduino
        2. Reading pulses
        3. Rising edge and falling edge
        4. Reading and counting pulses with Arduino
        5. Calculating the water flow rate
        6. Calculating the water flow volume
      3. Adding an LCD screen to the water meter
      4. Converting your water meter to a web server
        1. A little bit about plumbing
      5. Summary
    11. 4. Arduino Security Camera with Motion Detection
      1. Prerequisites
      2. Getting started with TTL Serial Camera
        1. Wiring the TTL Serial Camera for image capturing
        2. Wiring the TTL Serial Camera for video capturing
          1. Testing NTSC video stream with video screen
      3. Connecting the TTL Serial Camera with Arduino and Ethernet Shield
        1. Image capturing with Arduino
          1. The Software Serial library
          2. How the image capture works
      4. Uploading images to Flickr
        1. Creating a Flickr account
        2. Creating a Temboo account
        3. Creating your first Choreo
          1. Initializing OAuth
          2. Finalizing OAuth
          3. Generating the photo upload sketch
        4. Connecting the camera output with Temboo
        5. Motion detection
      5. Summary
    12. 5. Solar Panel Voltage Logging with NearBus Cloud Connector and Xively
      1. Connecting a solar cell with the Arduino Ethernet board
        1. Building a voltage divider
        2. Building the circuit with Arduino
      2. Setting up a NearBus account
      3. Defining a new device
        1. Examining the device lists
        2. Downloading the NearBus agent
      4. Creating and configuring a Xively account
      5. Configuring the NearBus connected device for Xively
      6. Developing a web page to display the real-time voltage values
        1. Displaying data on a web page
      7. Summary
    13. 6. GPS Location Tracker with Temboo, Twilio, and Google Maps
      1. Hardware and software requirements
        1. Hardware requirements
        2. Software requirements
      2. Getting started with the Arduino GPS shield
      3. Connecting the Arduino GPS shield with the Arduino Ethernet board
        1. Testing the GPS shield
        2. Displaying the current location on Google Maps
      4. Getting started with Twilio
        1. Creating a Twilio account
        2. Finding Twilio LIVE API credentials
        3. Finding Twilio test API credentials
        4. Get your Twilio number
      5. Creating Twilio Choreo with Temboo
        1. Sending an SMS with Twilio API
        2. Send a GPS location data using Temboo
      6. Summary
    14. 7. Tweet-a-Light – Twitter-Enabled Electric Light
      1. Hardware and software requirements
        1. Hardware
        2. Software
      2. Getting started with Python
        1. Installing Python on Windows
        2. Setting environment variables for Python
        3. Installing the setuptools utility on Python
        4. Installing the pip utility on Python
        5. Opening the Python interpreter
        6. Installing the Tweepy library
        7. Installing pySerial
      3. Creating a Twitter app and obtaining API keys
        1. Writing a Python script to read Twitter tweets
      4. Reading the serial data using Arduino
        1. Connecting the PowerSwitch Tail with Arduino
      5. Summary
    15. 8. Controlling Infrared Devices Using IR Remote
      1. Building an Arduino infrared recorder and remote
        1. Hardware
        2. Software
      2. Building the IR receiver module
        1. Capturing IR commands in hexadecimal
        2. Capturing IR commands in the raw format
        3. Building the IR sender module
        4. Controlling through the LAN
      3. Adding an IR socket to non-IR enabled devices
      4. Summary
    16. Index