Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
ESP8266 Internet of Things Cookbook

You're reading from  ESP8266 Internet of Things Cookbook

Product type Book
Published in Apr 2017
Publisher Packt
ISBN-13 9781787288102
Pages 268 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Marco Schwartz Marco Schwartz
Profile icon Marco Schwartz

Table of Contents (15) Chapters

ESP8266 Internet of Things Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Configuring the ESP8266 2. Your First ESP8266 Projects 3. More ESP8266 Functions 4. Using MicroPython on the ESP8266 5. Cloud Data Monitoring 6. Interacting with Web Services 7. Machine to Machine Interactions Index

M2M alarm system


In the previous chapters, we looked at the different ways of achieving M2M communication between two ESP8266 boards. In this recipe, we will look at how to implement M2M communication in an IoT project. To do that, we will create a simple M2M alarm system with one ESP8266 board connected to a DHT11 sensor and the other connected to a buzzer. The alarm will be triggered when the temperature reading drops below 20 degrees Celsius.

Getting ready

You will need the following hardware components:

The DHT11 pin configuration is shown in the following figure:

  1. First, mount the ESP8266 board and the DHT11 sensor onto the breadboard.

  2. Connect a 10 kΩ pull up resistor to the DHT11 data pin and connect the VCC pin and GND pin to the 3V pin and GND pin of the ESP8266 board, respectively.

  3. Finally, connect the data pin of the DHT11 to GPIO2 of the ESP8266 board...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}