Data Sheet
73 
Lesson 32  ESP8266 
Overview 
The ESP-01S ESP8266 WiFi Module is a self-contained SOC with integrated TCP/IP protocol 
stack  that can  let any  microcontroller  access  to your  WiFi network.  The  ESP-01S  ESP8266 
module comes with pre-programmed AT command set firmware which means that you can 
simply hook it up to your Arduino directly. 
In this lesson, you will learn how to use ESP8266 to build a WIFI remote control system. 
Components Required 
Name  Qty  Name  Qty 
MEGA 2560  1  ESP8266 Module  1 
Relay  1  DuPont Wire  9 
An Android app should be downloaded and installed to work with the lesson32 and lesson33 
projects.  It  can  communicate  with  UNO  or  MEGA2560  by  the  ESP8266  on-board  WiFi  to 
control the relay and motor. It can also read the temperature and humidity from the sensors. 
Step 1 Open the code from lesson 32 and change the SSID and the PASSWORD to match 
your home WIFI network. 
Step 2  The following dialog box will appear when the ESP8266 accessed  WiFi successfully. 
The IP  address shows  after the "STAIP" string  will  be used  in the  next step, please  write  it 
down. 
#define   SS I D “KK”  // type your own SS I D name
#define PASSW O RD “12345687”  // type your own WIF I password
#define Temp_maxlimit  Maximum temperature 29   // type your 
#define Temp_minlimit  Minimum temperature 28   // type your 










