Book Image

Internet of Things with ESP8266

By : Marco Schwartz
Book Image

Internet of Things with ESP8266

By: Marco Schwartz

Overview of this book

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.
Table of Contents (20 chapters)
Internet of Things with ESP8266
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Index

A

  • Adafruit
    • reference link / How to choose your ESP8266 module
  • Additional Board Manager
    • URL field / Installing the Arduino IDE for the ESP8266
  • alerts
    • receiving, via push notifications / Receiving alerts via push notifications
  • API (Application Programming Interface)
    • about / Online Bitcoin services
  • Arduino IDE
    • installing, for ESP8266 / Installing the Arduino IDE for the ESP8266
    • installation link / Installing the Arduino IDE for the ESP8266
    • URL / Hardware and software requirements, Hardware and software requirements, Hardware and software requirements, Hardware and software requirements
    • reference link / Hardware and software requirements, Hardware and software requirements
  • aREST
    • reference link / Configuring the ESP8266 module and controlling an LED
    • URL / Controlling the lock from the cloud
  • aREST API
    • reference link / Reading data from a digital sensor
  • aREST cloud server
    • reference link / Configuring the ESP8266 module and controlling an LED
    • code / The aREST cloud server code
  • aREST dashboard
    • reference link / Hardware and software requirements
    • URL / Controlling your home from a dashboard
  • aREST framework
    • reference link / Reading data from a digital sensor

B

  • Bitcoin
    • about / What is Bitcoin?
    • online services / Online Bitcoin services
  • Bitcoin ticker
    • URL / Online Bitcoin services
  • Breadboard
    • reference link / Hardware and software requirements

C

  • cloud-based home automation system
    • hardware requisites / Hardware and software requirements
    • hardware configuration / Hardware configuration
    • controlling, from dashboard / Controlling your home from a dashboard
    • cloud alarm system, creating / Creating a cloud alarm system
    • automating / Automating your home
  • cloud-based home automation system, hardware requisites
    • about / Hardware and software requirements
  • cloud-based home automation system, software requisites
    • about / Hardware and software requirements
  • cloud-controlled ESP8266 robot
    • hardware configuration / Hardware configuration
    • motors, testing / Testing the motors
    • connecting, to cloud / Connecting the robot to the cloud
    • controlling, from dashboard / Controlling the robot from a dashboard
  • cloud-controlled ESP8266 robot, hardware requisites
    • about / Hardware and software requirements
  • cloud-controlled ESP8266 robot, software requisites
    • about / Hardware and software requirements
  • Coindesk
    • URL / Online Bitcoin services
  • content
    • grabbing, from web page / Grabbing the content from a web page
  • custom cloud platform
    • aREST cloud server code / The aREST cloud server code
  • custom cloud server
    • hardware configuration / Hardware configuration
    • deploying / Deploying the server
    • ESP8266 board, connecting to / Connecting the ESP8266 board to your cloud server
  • custom cloud server, creating / Creating a cloud server
  • custom cloud server, hardware requisites
    • about / Hardware and software requirements
  • custom cloud server, software requisites
    • about / Hardware and software requirements

D

  • dashboard
    • cloud-based home automation system, controlling from / Controlling your home from a dashboard
    • cloud-controlled ESP8266 robot, controlling from / Controlling the robot from a dashboard
  • dashboard.arest.io
    • URL / Monitoring the temperature and humidity
  • data
    • reading, from GPIO pin / Reading data from a GPIO pin
    • reading, from digital sensor / Reading data from a digital sensor
    • logging, to Dweet.io / Logging data to Dweet.io
    • displaying, Freeboard.io used / Displaying data using Freeboard.io
    • displaying, using Freeboard.io / Displaying data using Freeboard.io
    • sending, via text message / Sending data via text message
  • DHT11 sensor
    • reference link / Reading data from a digital sensor
  • DHT library
    • URL / Hardware and software requirements
  • Digital Ocean
    • URL / Creating a cloud server
    • URL, for tutorials / Creating a cloud server
  • digital sensor
    • data, reading from / Reading data from a digital sensor
  • door lock, controlling with ESP8266 Wi-Fi chip
    • hardware, configuring / Configuring the hardware
    • ESP8266 board, configuring / Configuring the ESP8266 board
    • from cloud / Controlling the lock from the cloud
    • notifications, receiving when lock is opened / Receiving notifications when the lock is opened
  • Dweet.io
    • data, logging / Logging data to Dweet.io

E

  • e-mail notifications
    • Breadboard, URL / Hardware and software requirements
    • Adafruit ES8266 module, URL / Hardware and software requirements
    • FTDI USB module, URL / Hardware and software requirements
    • DHT11 sensor, URL / Hardware and software requirements
    • Jumper wires, URL / Hardware and software requirements
    • hardware configuration / Hardware configuration
    • sending / Sending an e-mail notification
  • ESP8266
    • Arduino IDE, installing / Installing the Arduino IDE for the ESP8266
  • ESP8266 board
    • connecting, to custom cloud server / Connecting the ESP8266 board to your cloud server
  • ESP8266 chip
    • Facebook post, creating from / Creating a new Facebook post from the ESP8266
  • ESP8266 module
    • about / How to choose your ESP8266 module
    • selecting / How to choose your ESP8266 module
    • URL / How to choose your ESP8266 module
    • details, reference link / How to choose your ESP8266 module
    • connecting, to WiFi network / Connecting your module to your Wi-Fi network
    • configuring / Configuring the ESP8266 module and controlling an LED

F

  • Facebook post
    • creating, from ESP8266 chip / Creating a new Facebook post from the ESP8266
  • Freeboard.io
    • used, for displaying data / Displaying data using Freeboard.io
    • URL / Displaying data using Freeboard.io

G

  • GPIO pin
    • data, reading from / Reading data from a GPIO pin

H

  • hardware configuration, for ESP8266 board
    • about / Hardware configuration
  • hardware requirements
    • for cloud data logging / Hardware and software requirements
  • hardware requirements, e-mail notifications
    • about / Hardware and software requirements
  • hardware requirements, ESP826
    • about / Hardware and software requirements
  • hardware requirements, ESP8266
    • about / Hardware requirements
    • Breadboard / Hardware requirements
    • olimex module / Hardware requirements
    • breadboard 3.3V power supply / Hardware requirements
    • 3.3V FTDI USB module / Hardware requirements
    • jumper wires / Hardware requirements
    • hardware configuration / Hardware configuration
  • hardware requirements, for cloud data logging
    • ESP8266 Olimex module, URL / Hardware and software requirements
    • Breadboard 3.3V power supply, URL / Hardware and software requirements
    • 3.3V FTDI USB module, URL / Hardware and software requirements
    • DHT11 sensor, URL / Hardware and software requirements
    • Jumper wires, URL / Hardware and software requirements
  • hardware requirements, Machine-to-Machine (M2M) communications
    • about / Hardware and software requirements
  • hardware requirements, MQTT
    • about / Hardware and software requirements
  • hardware requirements, web services
    • about / Hardware and software requirements
  • hardware requisites
    • Adafruit ES8266 module, URL / Hardware and software requirements, Hardware and software requirements, Hardware and software requirements
    • FTDI USB module, URL / Hardware and software requirements, Hardware and software requirements, Hardware and software requirements, Hardware and software requirements, Hardware and software requirements
    • LED x 2, URL / Hardware and software requirements
    • 330 Ohm resistor x 2, URL / Hardware and software requirements
    • OLED display 128x64 pixels with SSD1306 driver, URL / Hardware and software requirements
    • Jumper wires, URL / Hardware and software requirements, Hardware and software requirements, Hardware and software requirements, Hardware and software requirements
    • Breadboard, URL / Hardware and software requirements, Hardware and software requirements, Hardware and software requirements, Hardware and software requirements
    • AdafruitES8266 module, URL / Hardware and software requirements
    • Soil moisture sensor, URL / Hardware and software requirements
    • 5V relay module, URL / Hardware and software requirements
    • 10K Ohm resistor, URL / Hardware and software requirements
    • LED, URL / Hardware and software requirements, Hardware and software requirements
    • Breadboard (x3), URL / Hardware and software requirements
    • Adafruit ES8266 module (x3), URL / Hardware and software requirements
    • DHT11 sensor, URL / Hardware and software requirements, Hardware and software requirements
    • 330 Ohm resistor, URL / Hardware and software requirements, Hardware and software requirements
    • PIR motion sensor, URL / Hardware and software requirements
    • Jumper wires (x3), URL / Hardware and software requirements
    • Rover robot chassis with two motors, URL / Hardware and software requirements
    • L293D motor driver, URL / Hardware and software requirements
    • 7.4V battery with DC jack, URL / Hardware and software requirements
  • hardware requisites, cloud-based home automation system
    • about / Hardware and software requirements
  • hardware requisites, cloud-controlled ESP8266 robot
    • about / Hardware and software requirements
  • hardware requisites, custom cloud platform
    • about / Hardware and software requirements
  • hardware requisites, custom cloud server
    • about / Hardware and software requirements
  • hardware requisites, door lock
    • about / Hardware and software requirements
  • hardware requisites, physical Bitcoin ticker
    • about / Hardware and software requirements
  • hardware requisites, wireless gardening
    • about / Hardware and software requirements
  • hardware requisities
    • Resistor, URL / Hardware and software requirements
    • Diode, URL / Hardware and software requirements
    • Breadboard, URL / Hardware and software requirements
    • Adafruit ES8266 module, URL / Hardware and software requirements
    • FTDI USB module, URL / Hardware and software requirements
    • Lock Style Solenoid, URL / Hardware and software requirements
    • NPN transistor, URL / Hardware and software requirements
    • Jumper wires, URL / Hardware and software requirements

I

  • IFTTT
    • URL / Hardware and software requirements, Creating alerts to water your plant, Creating a cloud alarm system
  • iot-esp8266-packt
    • URL / Reading data from a digital sensor, Testing the sensor, Logging data to Dweet.io, Simple machine-to-machine communication, Sending an e-mail notification, Testing the ticker
    • reference link / Hardware and software requirements

L

  • lamp
    • controlling / Controlling the lamp from anywhere in the world
  • LED
    • controlling / Controlling an LED, Configuring the ESP8266 module and controlling an LED
    • reference link / Configuring the ESP8266 module and controlling an LED
    • controlling, from cloud dashboard / Controlling the LED from a cloud dashboard

M

  • Machine-to-Machine (M2M)
    • Breadboard (x2) communications, URL / Hardware and software requirements
  • Machine-to-Machine (M2M) communications
    • LED, URL / Hardware and software requirements
    • Relay, URL / Hardware and software requirements
    • Photocell, URL / Hardware and software requirements
    • Adafruit ES8266 module (x2), URL / Hardware and software requirements
    • FTDI USB module, URL / Hardware and software requirements
    • 330 Ohm resistor, URL / Hardware and software requirements
    • 10K Ohm resistor, URL / Hardware and software requirements
    • Mini push button, URL / Hardware and software requirements
    • 1K Ohm resistor, URL / Hardware and software requirements
    • Jumper wires, URL / Hardware and software requirements
    • simple case, developing / Simple machine-to-machine communication
    • light-activated relay, building / Building a light-activated relay
  • Maker
    • about / Sending an e-mail notification, Creating a cloud alarm system
  • Meteor
    • URL, installation / The aREST cloud server code
  • Meteor Up
    • about / Deploying the server
  • monitoring
    • temperature and humidity / Monitoring the temperature and humidity
  • MQTT
    • LED, reference link / Hardware and software requirements
    • Breadboard, reference link / Hardware and software requirements
    • Adafruit ES8266 module, reference link / Hardware and software requirements
    • FTDI USB module, reference link / Hardware and software requirements
    • 330 Ohm resistor, reference link / Hardware and software requirements
    • PowerSwitch Tail Kit, reference link / Hardware and software requirements
    • Jumper wires, reference link / Hardware and software requirements
    • ESP8266 module, configuring / Configuring the ESP8266 module and controlling an LED
    • LED, controlling / Configuring the ESP8266 module and controlling an LED
    • LED, controlling from cloud dashboard / Controlling the LED from a cloud dashboard
    • lamp, controlling / Controlling the lamp from anywhere in the world

N

  • Node.js
    • URL / Deploying the server
  • NodeMCU
    • reference link / How to choose your ESP8266 module
  • NodeMCU module
    • reference link / How to choose your ESP8266 module

P

  • physical Bitcoin ticker
    • hardware, configuring / Configuring the hardware
    • testing / Testing the ticker
    • alert LEDs, adding / Adding alert LEDs to the ticker
  • physical Bitcoin ticker, hardware requisites
    • about / Hardware and software requirements
  • physical Bitcoin ticker, software requisites
    • about / Hardware and software requirements
  • prerequisites, LED
    • 5mm LED, reference link / Controlling an LED
    • 330 Ohm, reference link / Controlling an LED
  • push notifications
    • alerts, receiving via / Receiving alerts via push notifications
  • pushover
    • URL / Receiving alerts via push notifications

R

  • recipe
    • about / Sending an e-mail notification

S

  • sensor
    • testing / Testing the sensor
  • SHT10 sensor
    • URL / Hardware and software requirements
  • software requirements, e-mail notifications
    • about / Hardware and software requirements
  • software requirements, ESP826
    • about / Hardware and software requirements
  • software requirements, Machine-to-Machine (M2M) communications
    • about / Hardware and software requirements
  • software requirements, MQTT
    • about / Hardware and software requirements
  • software requirements, web services
    • about / Hardware and software requirements
  • software requisites, cloud-based home automation system
    • about / Hardware and software requirements
  • software requisites, cloud-controlled ESP8266 robot
    • about / Hardware and software requirements
  • software requisites, custom cloud platform
    • about / Hardware and software requirements
  • software requisites, custom cloud server
    • about / Hardware and software requirements
  • software requisites, door lock
    • about / Hardware and software requirements
  • software requisites, physical Bitcoin ticker
    • about / Hardware and software requirements
  • software requisites, wireless gardening
    • about / Hardware and software requirements
  • Sparkline
    • about / Displaying data using Freeboard.io

T

  • Temboo
    • reference link / Posting temperature and humidity data to Twitter
  • temperature and humidity
    • monitoring / Monitoring the temperature and humidity
  • temperature and humidity data
    • posting, to Twitter / Posting temperature and humidity data to Twitter
  • text message
    • data, sending via / Sending data via text message
  • Twitter
    • temperature and humidity data, posting / Posting temperature and humidity data to Twitter
    • reference link / Posting temperature and humidity data to Twitter

W

  • weather data
    • obtaining, from Yahoo / Getting weather data from Yahoo
  • web page
    • content, grabbing from / Grabbing the content from a web page
  • web services
    • Breadboard, reference link / Hardware and software requirements
    • Adafruit ES8266 module, reference link / Hardware and software requirements
    • FTDI USB module, reference link / Hardware and software requirements
    • DHT11 sensor, reference link / Hardware and software requirements
    • Jumper wires, reference link / Hardware and software requirements
  • WiFi network
    • ESP8266 module, connecting / Connecting your module to your Wi-Fi network
  • wireless gardening, hardware requisites
    • about / Hardware and software requirements
  • wireless gardening, software requisites
    • about / Hardware and software requirements
  • wireless gardening, with ESP8266 chip
    • hardware configuration / Hardware configuration
    • alerts, creating to water plant / Creating alerts to water your plant
    • automating / Automating your gardening

Y

  • Yahoo
    • weather data, obtaining from / Getting weather data from Yahoo
  • Yahoo Weather service
    • reference link / Getting weather data from Yahoo