ESP8266 Wi-Fi Module for IoT Communication

ESP8266 Wi-Fi Module for IoT Communication

The ESP8266 is an ultra-low-power, UART-WiFi module of transparent transmission. With industry-leading package size and ultra-low power technology designed for mobile devices and IoT applications, it can connect users’ physical devices to Wi-Fi wireless network for Internet or LAN communication.

ESP8266 is widely used in smart grid, intelligent transportation, smart furniture, handheld devices, industrial control and other fields.

Main functions

The main functions that ESP8266 can achieve include serial port transparent transmission, PWM regulation, and GPIO control.

  • Serial port transparent transmission: data transmission with great reliability, the maximum transmission rate is 460800bps.
  • PWM regulation: light adjustment, three-color LED adjustment, motor speed regulation, etc.
  • GPIO control: control switches, relays, etc.


Working modes

The ESP8266 module supports three working modes: STA, AP and STA+AP.

  • STA mode: The ESP8266 module connects to the Internet through a router, and the mobile phone or computer can remotely control the device through the Internet.
  • AP mode: The ESP8266 module acts as a hotspot, enabling the mobile phone or computer to communicate directly with the module to achieve wireless control of the local area network.
  • STA+AP mode: Two modes coexist, the seamless handover can be realized through the Internet control, which is convenient for operation.



  • Serial port CH340 to Wi-Fi;
  • Industrial transparent transmission DTU;
  • Wi-Fi remote monitor/control;
  • Toy;
  • Colorful LED control;
  • Integrated management of fire and security intelligence;
  • Smart card terminals, wireless POS machines, Wi-Fi cameras, handheld devices, etc.



– 1 * Adeept UNO board

– 1 * USB cable

– 1 * ESP8266-01 Wi-Fi module

– 1 *Jumper wire

– 1 *LED

– 1 *220Ω resistor



Step 1 connect the circuit as shown below.

Step 2 upload the program.

File name:Adeept_wifi_control_led
#include<SoftwareSerial.h>    //use the library to commmunicate with esp8266 wifi module
#define rxPin 2               //define rx and tx pin
#define txPin 3

SoftwareSerial mySerial = SoftwareSerial(rxPin,txPin); //creat an object mySerial

//define esp8266 wifi module variate
char judge = 0;
String comdata = "";
//define receive data
String text1 = "\r\n+IPD,0,1:1";
String text2 = "\r\n+IPD,0,1:2";

// put your setup code here, to run once:
void setup() {
  mySerial.begin(115200);                  // set up a wifi serial communication baud rate 115200
   mySerial.println("AT+RST\r\n");         //reset wifi
   mySerial.println("AT+CWMODE=3\r\n");    //set to softAP+station mode
   mySerial.println("AT+CIPMUX=1\r\n");    //set to multi-connection mode
   mySerial.println("AT+CIPSERVER=1\r\n"); //set as server
   mySerial.println("AT+CIPSTO=7000\r\n"); //keep the wifi connecting 7000 seconds
   digitalWrite(13,HIGH);                  //configuration is complete

// put your main code here, to run repeatedly:
void loop() {
  //receive the data
    comdata += char(;

  //set the judge
  //judge the variate "judge"
         case 1: while(!mySerial.available()){digitalWrite(13,HIGH); }
         case 2: while(!mySerial.available()) {digitalWrite(13,LOW);} 
         default:  break;

  //set the judge
void judgement(){
    if (comdata.length() > 0)
        comdata = "";


Step 3 configure Net Assistant (server IP and port number are factory default).

Step 4 connect the computer and ESP8266-01 module.

Step 5 start wireless control of LED through the Net Assistant.


7 Replies to “ESP8266 Wi-Fi Module for IoT Communication”

  1. Pingback: Masum
  2. Here at Leslie’s Pugsland Breeder, Our beautiful fawn pug has given birth to 4 healthy Pug puppies.
    She is our beloved family dog and this is her 1st litter.
    Both mum and dad are AKC registered with 5 gen pedigree certificate. Both from Top Champion bloodlines.Mum and Dad can be seen. Puppies have been wormed weeks 2,4,6,8 and will have had a flea preventative treatment before leaving us.
    They will have their vet check, 1st vaccinations and microchip.
    To view all available puppies and recent pictures, Search us in google as LESLIE’S PUGSLAND BREEDER or click on our website link bellow :

    Pug Puppies for sale | pug for sale near me | pug puppy for sale | pug puppy | pug for sale | pug puppies for sale in va | black pug puppies for sale

Leave a Reply