Internet of Things with ESP8266
eBook - ePub

Internet of Things with ESP8266

Marco Schwartz

Share book
  1. 226 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Internet of Things with ESP8266

Marco Schwartz

Book details
Book preview
Table of contents
Citations

About This Book

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.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Internet of Things with ESP8266 an online PDF/ePUB?
Yes, you can access Internet of Things with ESP8266 by Marco Schwartz in PDF and/or ePUB format, as well as other popular books in Computer Science & Hardware. We have over one million books available in our catalogue for you to explore.

Information

Year
2016
ISBN
9781786468024
Edition
1

Internet of Things with ESP8266


Table of Contents

Internet of Things with ESP8266
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with the ESP8266
How to choose your ESP8266 module
Hardware requirements
Hardware configuration
Installing the Arduino IDE for the ESP8266
Connecting your module to your Wi-Fi network
Summary
2. First Projects with the ESP8266
Controlling an LED
Reading data from a GPIO pin
Grabbing the content from a web page
Reading data from a digital sensor
Summary
3. Cloud Data Logging with the ESP8266
Hardware and software requirements
Hardware configuration
Testing the sensor
Logging data to Dweet.io
Displaying data using Freeboard.io
Summary
4. Control Devices from Anywhere
Hardware and software requirements
Configuring the ESP8266 module and controlling an LED
Controlling the LED from a cloud dashboard
Controlling the lamp from anywhere in the world
Summary
5. Interacting With Web Services
Hardware and software requirements
Getting weather data from Yahoo
Posting temperature and humidity data to Twitter
Creating a new Facebook post from the ESP8266
Summary
6. Machine-to-Machine Communications
Hardware and software requirements
Simple machine-to-machine communication
Building a light-activated relay
Summary
7. Sending Notifications from the ESP8266
Hardware and software requirements
Hardware configuration
Sending an e-mail notification
Sending data via text message
Receiving alerts via push notifications
Summary
8. Controlling a Door Lock from the Cloud
Hardware and software requirements
Configuring the hardware
Configuring the ESP8266 board
Controlling the lock from the cloud
Receiving notifications when the lock is opened
Summary
9. Building a Physical Bitcoin Ticker
What is Bitcoin?
Online Bitcoin services
Hardware and software requirements
Configuring the hardware
Testing the ticker
Adding alert LEDs to the ticker
Summary
10. Wireless Gardening with the ESP8266
Hardware and software requirements
Hardware configuration
Creating alerts to water your plant
Monitoring the temperature and humidity
Automating your gardening
Summary
11. Cloud-Based Home Automation System
Hardware and software requirements
Hardware configuration
Controlling your home from a dashboard
Creating a cloud alarm system
Automating your home
Summary
12. Cloud-Controlled ESP8266 Robot
Hardware and software requirements
Hardware configuration
Testing the motors
Connecting the robot to the cloud
Controlling the robot from a dashboard
Summary
13. Building Your Own Cloud Platform to Control ESP8266 Devices
Hardware and software requirements
Hardware configuration
Creating a cloud server
The aREST cloud server code
Deploying the server
Connecting the ESP8266 board to your cloud server
Summary
Index

Internet of Things with ESP8266

Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author(s), nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2016
Production reference: 1260716
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78646-802-4
www.packtpub.com

Credits

Author
Marco Schwartz
Reviewer
Catalin Batrinu
Commissioning Editor
Pratik Shah
Acquisition Editor
Prachi Bisht
Content Development Editor
Mamta Walkar
Technical Editor
Naveenkumar Jain
Copy Editor
Sneha Singh
Project Coordinator
Kinjal Bari
Proofreader
Safis Editing
Indexer
Pratik Shirodkar
Graphics
Kirk D'Penha
Production Coordinator
Shantanu N. Zagade
Cover Work
Shantanu N. Zagade

About the Author

Marco Schwartz is an electrical engineer, an entrepreneur, and a blogger. He has a master's degree in electrical engineering and computer science from Supélec, France, and a master's degree in micro engineering from the Ecole Polytechnique Fédérale de Lausanne (EPFL) in Switzerland.
He has more than five years of experience working in the domain of electrical engineering. Marco's interests gravitate around electronics, home automation, the Arduino and Raspberry Pi platforms, open source hardware projects, and 3D printing.
He has several websites about Ardu...

Table of contents