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 ESP8266

Book Description

Build amazing Internet of Things projects using the ESP8266 Wi-Fi chip

About This Book

  • Get to know the powerful and low cost ESP8266 and build interesting projects in the field of Internet of Things
  • Configure your ESP8266 to the cloud and explore the networkable modules that will be utilized in the IoT projects
  • This step-by-step guide teaches you the basics of IoT with ESP8266 and makes your life easier

Who This Book Is For

This book is for those who want to build powerful and inexpensive IoT projects using the ESP8266 WiFi chip, including those who are new to IoT, or those who already have experience with other platforms such as Arduino.

What You Will Learn

  • Control various devices from the cloud
  • Interact with web services, such as Twitter or Facebook
  • Make two ESP8266 boards communicate with each other via the cloud
  • Send notifications to users of the ESP8266, via email, text message, or push notifications
  • Build a physical device that indicates the current price of Bitcoin
  • Build a simple home automation system that can be controlled from the cloud
  • Create your own cloud platform to control ESP8266 devices

In Detail

The Internet of Things (IoT) is the network of objects such as physical things embedded with electronics, software, sensors, and connectivity, enabling data exchange. ESP8266 is a low cost WiFi microcontroller chip that has the ability to empower IoT and helps the exchange of information among various connected objects. ESP8266 consists of networkable microcontroller modules, and with this low cost chip, IoT is booming. This book will help deepen your knowledge of the ESP8266 WiFi chip platform and get you building exciting projects.

Kick-starting with an introduction to the ESP8266 chip, we will demonstrate how to build a simple LED using the ESP8266. You will then learn how to read, send, and monitor data from the cloud. Next, you’ll see how to control your devices remotely from anywhere in the world. Furthermore, you’ll get to know how to use the ESP8266 to interact with web services such as Twitter and Facebook. In order to make several ESP8266s interact and exchange data without the need for human intervention, you will be introduced to the concept of machine-to-machine communication.

The latter part of the book focuses more on projects, including a door lock controlled from the cloud, building a physical Bitcoin ticker, and doing wireless gardening. You’ll learn how to build a cloud-based ESP8266 home automation system and a cloud-controlled ESP8266 robot. Finally, you’ll discover how to build your own cloud platform to control ESP8266 devices.

With this book, you will be able to create and program Internet of Things projects using the ESP8266 WiFi chip.

Style and approach

This is a step-by-step guide that provides great IOT projects with ESP8266. All the key concepts are explained details with the help of examples and demonstrations of 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. Internet of Things with ESP8266
    1. Table of Contents
    2. Internet of Things with ESP8266
    3. Credits
    4. About the Author
    5. About the Reviewer
    6. www.PacktPub.com
      1. eBooks, discount offers, and more
        1. Why subscribe?
    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. Getting Started with the ESP8266
      1. How to choose your ESP8266 module
      2. Hardware requirements
        1. Hardware configuration
      3. Installing the Arduino IDE for the ESP8266
      4. Connecting your module to your Wi-Fi network
      5. Summary
    9. 2. First Projects with the ESP8266
      1. Controlling an LED
      2. Reading data from a GPIO pin
      3. Grabbing the content from a web page
      4. Reading data from a digital sensor
      5. Summary
    10. 3. Cloud Data Logging with the ESP8266
      1. Hardware and software requirements
      2. Hardware configuration
      3. Testing the sensor
      4. Logging data to Dweet.io
      5. Displaying data using Freeboard.io
      6. Summary
    11. 4. Control Devices from Anywhere
      1. Hardware and software requirements
      2. Configuring the ESP8266 module and controlling an LED
      3. Controlling the LED from a cloud dashboard
      4. Controlling the lamp from anywhere in the world
      5. Summary
    12. 5. Interacting With Web Services
      1. Hardware and software requirements
      2. Getting weather data from Yahoo
      3. Posting temperature and humidity data to Twitter
      4. Creating a new Facebook post from the ESP8266
      5. Summary
    13. 6. Machine-to-Machine Communications
      1. Hardware and software requirements
      2. Simple machine-to-machine communication
      3. Building a light-activated relay
      4. Summary
    14. 7. Sending Notifications from the ESP8266
      1. Hardware and software requirements
      2. Hardware configuration
      3. Sending an e-mail notification
      4. Sending data via text message
      5. Receiving alerts via push notifications
      6. Summary
    15. 8. Controlling a Door Lock from the Cloud
      1. Hardware and software requirements
      2. Configuring the hardware
      3. Configuring the ESP8266 board
      4. Controlling the lock from the cloud
      5. Receiving notifications when the lock is opened
      6. Summary
    16. 9. Building a Physical Bitcoin Ticker
      1. What is Bitcoin?
      2. Online Bitcoin services
      3. Hardware and software requirements
      4. Configuring the hardware
      5. Testing the ticker
      6. Adding alert LEDs to the ticker
      7. Summary
    17. 10. Wireless Gardening with the ESP8266
      1. Hardware and software requirements
      2. Hardware configuration
      3. Creating alerts to water your plant
      4. Monitoring the temperature and humidity
      5. Automating your gardening
      6. Summary
    18. 11. Cloud-Based Home Automation System
      1. Hardware and software requirements
      2. Hardware configuration
      3. Controlling your home from a dashboard
        1. Creating a cloud alarm system
        2. Automating your home
        3. Summary
    19. 12. Cloud-Controlled ESP8266 Robot
      1. Hardware and software requirements
      2. Hardware configuration
      3. Testing the motors
      4. Connecting the robot to the cloud
        1. Controlling the robot from a dashboard
        2. Summary
    20. 13. Building Your Own Cloud Platform to Control ESP8266 Devices
      1. Hardware and software requirements
      2. Hardware configuration
      3. Creating a cloud server
      4. The aREST cloud server code
      5. Deploying the server
      6. Connecting the ESP8266 board to your cloud server
      7. Summary
    21. Index