In this lesson, we will show how to use OSOYOO ESP8266 wifi Module and Arduino UNO board to work as Web Server  and show “hello world!” message in browser.

Wire Connection:

OSOYOO Wifi Module Arduino UNO
E_RX D5
E_TX D4
GND GND
VCC 5V

You can download above circuit Fritzing file from https://osoyoo.com/driver/osoyoo-esp8266-module/lesson1/osoyoo-wifi-module-lesson1.fzz

Software Installation

Step A) Install latest Arduino IDE (If you have Arduino IDE version after 1.1.16, please skip this step).

Download Arduino IDE from https://www.arduino.cc/en/Main/Software?setlang=en, then install the software.

Step B)WifiESP Library is required to run OSOYOO ESP8266 shield sketch code. If you have installed this library, please skip this step.

WifiESP library can be downloaded from following link:
https://osoyoo.com/driver/WiFiEsp-master.zip

then in your Arduino IDE ->Sketch->Include Library->Add .ZIP Library and select the WiFiEsp-master.zip file you just downloaded, and upload it to Arduino.

Step C)Download and Edit esp8266-lesson1.ino file
Please download sketch from https://osoyoo.com/driver/wifi-iot/lesson1/esp8266-lesson1.zip and unzip the file and double click esp8266-lesson1.ino file, you can edit this file in Arduino IDE.

Step D) Open the Arduino IDE and choose corresponding board type and port type for you project.

Step E) Arduino IDE: Click file -> click Open -> choose code “esp8266-lesson1” and open it.

In the  sketch, find   following lines:

char ssid[] = "******"; // your network SSID (name)
char pass[] = "******"; // your network password
please replace the ****** with your correct wifi SSID and password, otherwise your project can
 not connect to Internet. not connect to Internet.

After loading the sketch to Arduino , open the serial monitor in the upper-right corner of Arduino IDE

You will see following message:

From the serial monitor , you can see the IP address of your UNO board in the read circle (in above example, our Arduino IP address is 192.168.50.116).

Then use your browser to visit the website http://192.168.50.116, you will see following result: