Internet of Things Projects
with ESP32
Build exciting and powerful IoT projects using the all-new Espressif ESP32
Agus Kurniawan
BIRMINGHAM - MUMBAI
Internet of Things Projects with ESP32
Copyright 2019 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, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been 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.
Commissioning Editor: Vijin Boricha
Acquisition Editor: Prachi Bisht
Content Development Editor: Aishwarya Moray
Technical Editor: Prashant Chaudhari
Copy Editor: Safis Editing
Language Support Editor : Storm Mann
Project Coordinator: Nusaiba Ansari
Proofreader: Safis Editing
Indexer: Priyanka Dhadke
Graphics: Tom Scaria
Production Coordinator: Arvindkumar Gupta
First published: March 2019
Production reference: 1290319
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78995-687-0
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Packt.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Agus Kurniawan is an independent technology consultant, author, and lecturer. He has over 18 years' experience working on various software development projects, including delivering training courses and workshops, and delivering technical writing. He has done a few research activities related to wireless networking, software, and security in multiple universities. Currently, he is pursuing a Ph.D. program in Computer Science in Germany. He has previously written five books for Packt.
About the reviewer
Catalin Batrinu is an Electronics, Telecommunications and Information Technology graduate from the Politehnica University of Bucharest. After 5 years in applications development, where he helped companies move applications to the cloud, he moved to IoT. He has prototyped irrigation controllers, smart sockets, window shutters, lighting controls, environment controls et cetera, all controlled over the cloud. As an IoT Architect, he develops augmented/virtual reality frameworks, sensors and digital twin concepts, corresponding software architecture related to Big Data, real time performance, and structured/unstructured data analysis and modelling. He also identifies data sources, defines the single point of truth, and ensures data security.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
ESP32 is a low-cost MCU with integrated Wi-Fi and BLE. Various modules and development boards-based ESP32 are available to build Internet-of-Things ( IoT ) applications easily. Wi-Fi and BLE are common network stacks in IoT applications. These network modules can fulfil your business and project needs, providing cost-effective benefits.
This book will serve as a fundamental guide to developing an ESP32 program. We will start with GPIO programming, which will involve some sensor devices. Then, we will get deep into ESP32 development by building some IoT projects such as a weather station, a sensor logger, a smart home device, a Wi-Fi camera, and Wi-Fi Wardriving. Lastly, we will enable ESP32 to interact with mobile applications and cloud servers such as Amazon AWS.
By the end of this book, you will be up and running with various IoT projects based on the ESP32 chip .
Who this book is for
This book is designed for students, professional designers, developers, and IoT enthusiasts. Basic knowledge of ESP32 is not required to work with the content of this book.
What this book covers
, Getting Started with ESP32, presents a review of the ESP32 board. We also set up a development environment for ESP32 boards.
, Making Visual Data and Animation on an LCD, offers a brief introduction to weather systems. Here, we'll make a simple ESP32 program to sense temperature and humidity using the DHT22 sensor module. Furthermore, we'll work with the LCD on the ESP32 board, accessing the LCD modules through the ESP32 board.
, Building a Simple Game with an Embedded ESP32 Board, teaches you how to work with an analog joystick, along with an exploration of a simple sound device with a sound buzzer, and the development of a simple game.
, Building a Sensor Monitoring Logger, covers how to work with external storage, such as SD cards and microSD cards, on an ESP32 board. We'll store our sensor data on external storage, and use a sensor monitoring logger by applying sleep mode after sensing and storing sensor data.
, Controlling IoT Devices over the Internet
Next page