Exploring the low cost WiFi moduleAbout This Book⢠Leverage the ESP8266's on-board processing and storage capability⢠Get hand- on experience of working on the ESP8266 Arduino Core and its various libraries⢠A practical and enticing recipe-based book that will teach you how to make your environment smart using the ESP8266Who This Book Is ForThis book is targeted at IOT enthusiasts who are well versed with electronics concepts and have a very basic familiarity with the ESP8266. Some experience with programming will be an advantage.What You Will Learn⢠Measure data from a digital temperature and humidity sensor using the ESP8266⢠Explore advanced ESP8266 functionalities⢠Control devices from anywhere in the world using MicroPython⢠Troubleshoot issues with cloud data monitoring⢠Tweet data from the Arduino board⢠Build a cloud-connected power-switch with the ESP8266⢠Create an ESP8266 robot controlled from the cloudIn DetailThe ESP8266 Wi-Fi Module is a self contained System on Chip (SOC) with an integrated TCP/IP protocol stack and can give any microcontroller access to your Wi-Fi network. It is capable of either hosting an application or offloading all Wi-Fi networking functions from another application processor.This book contains practical recipes that will help you master all ESP8266 functionalities. You will start by configuring and customizing the chip in line with your requirements. Then you will focus on core topics such as on-board processing, sensors, GPIOs, programming, networking, integration with external components, and so on. We will also teach you how to leverage Arduino using the ESP8266 and you'll learn about its libraries, file system, OTA updates, and so on. The book also provide recipes on web servers, testing, connecting with the cloud, and troubleshooting techniques. Programming aspects include MicroPython and how to leverage it to get started with the ESP8266. Towards the end, we will use these concepts and create an interesting project (IOT).By the end of the book, readers will be proficient enough to use the ESP8266 board efficiently.Style and approachThis recipe-based book will teach you to build projects using the ESP8266.

- 268 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
ESP8266 Internet of Things Cookbook
About this book
Trusted byĀ 375,005 students
Access to over 1.5 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
ESP8266 Internet of Things Cookbook
Table of Contents
ESP8266 Internet of Things Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Configuring the ESP8266
Introduction
Setting up the Arduino development environment for the ESP8266
Getting ready
How it worksā¦
See also
Choosing an ESP8266 board
Available options
What to choose?
There's moreā¦
See also
Required additional components
Required components
Sensors
DHT11
Photocell
Soil humidity sensor
Actuators
Relays
Power switch tail kit
Water pump
Breadboard
Jumper wires
Micro USB cable
See also
Uploading your first sketch to the ESP8266
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Connecting the ESP8266 to your local Wi-Fi network
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Connecting the ESP8266 to a cloud server
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Troubleshooting basic ESP8266 issues
The Board is not visible from the Arduino IDE
The board cannot be configured from the Arduino IDE
The board does not connect to your local Wi-Fi network
2. Your First ESP8266 Projects
Introduction
Functionalities of the ESP8266
Features
Pin configuration
Power pins
Serial pins
I2C and SPI pins
GPIO pins
Analog pins
Control pins
How it works...
See also
Reading digital signals
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Reading analog signals
Getting ready
How to do itā¦
How it worksā¦
See also
Controlling an LED
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Dimming an LED
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Controlling a servo motor
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Measuring data from a digital sensor
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Controlling an OLED screen
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Troubleshooting basic ESP8266 issues
The analog pin cannot measure high voltages
The board stops working when things are connected to some pins
The board keeps on crashing and resetting
The board produces gibberish on the serial monitor when I rest it
3. More ESP8266 Functions
Introduction
Discovering the advanced functions of the ESP8266
Wi-Fi connectivity
Real-Time Clock (RTC)
Over the air update
Low power management
Working with files
See also
Using libraries on the ESP8266
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Discovering the filesystem of the ESP8266
Flash memory
Filesystem memory management
Setting up the ESP8266FS tool
There's moreā¦
See also
Storing data in the ESP8266 filesystem
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Discovering the over the air update of the ESP8266 (OTA)
Over the air
Security
Safety
See also
Programming your ESP8266 OTA
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Troubleshooting basic ESP8266 issues
The Arduino IDE does not show the OTA port
The library no longer compiles
The txt file in my filesystem only holds one value even after saving several values in it
4. Using MicroPython on the ESP8266
Introduction
Introduction to MicroPython on the ESP8266
MicroPython & the ESP8266
See also
Discovering the MicroPython language
Discovering MicroPython
Auto-indent
Auto-completion
Interrupting a running program
Paste mode
Soft reset
The special variable _ (underscore)
Raw mode
See also
Getting started with MicroPython on the ESP8266
Getting ready
How to do itā¦
How it worksā¦
See also
Controlling pins using MicroPython
Getting ready
How to do itā¦
How it worksā¦
There is moreā¦
See also
Reading data from a sensor using MicroPython
Getting ready
How to do itā¦
How it worksā¦
See also
Sending data to the cloud using MicroPython
Getting ready
How to do itā¦
How it worksā¦
See also
Troubleshooting common MicroPython issues
A library can't be used
The menu to upload files to the ESP8266 is not visible
The board can't be configured via OTA
5. Cloud Data Monitoring
Introduction
Internet of Things platforms for the ESP8266
Sparkfun ESP8266 thing
Adafruit feather HUZZAH
NodeMCU ESP8266
Wio Link
See also
Connecting sensors to your ESP8266 board
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Posting the sensor data online
Getting ready
How to do itā¦
How it worksā¦
See also
Retrieving your online data
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Securing your online data
Locking your things
See also
Monitoring sensor data from a cloud dashboard
Getting ready
How to do itā¦
See also
Creating automated alerts based on the measured data
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Monitoring seve...
Table of contents
- ESP8266 Internet of Things Cookbook
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
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.5 million books across 990+ topics, weāve got you covered! Learn about our mission
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 about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere ā even offline. Perfect for commutes or when youāre on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access ESP8266 Internet of Things Cookbook by Marco Schwartz in PDF and/or ePUB format, as well as other popular books in Computer Science & Hardware. We have over 1.5 million books available in our catalogue for you to explore.