Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES ここでご購入を!

In this lesson, we will show how to use the OSOYOO ESP8266 Wi-Fi Shield and the OSOYOO Basic Board (fully compatible with Arduino UNO) to work as a web server and display the message “Hello World!” in a browser.

Simply insert the OSOYOO ESP8266 Wi-Fi Shield into the OSOYOO Basic Board and use a jumper cap to connect E_TX to D4 and E_RX to D5, as shown in the following picture.

Note: If you want to use the above Wi-Fi Shield on a Leonardo Board instead of the OSOYOO Basic Board, you will have to remove the jumper cap between D4 and E-TX. Then use a jumper wire to connect E-TX to D8 pin on the Leonardo Board. You will also need to set the Software Serial RX pin to D8 instead of D4 in your sketch code.

Download the Frizzing Part file from the following link
https://osoyoo.com/driver/Esp8266_Arduino_IOT/OSOYOO-WiFI-shield-V1.3.fzz

Software IDE:

Software Installation

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

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

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

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

Then, in your IDE, go to Sketch > Include Library > Add .ZIP Library and select the WiFiEsp-master.zip file that you just downloaded. Upload it to the IDE.

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

Step D) Connect the OSOYOO Basic board to the computer via a USB cable.

Step E) Open the IDE and choose the corresponding board type and port type for your project.

Step F) IDE: Click File > Open > Choose the code “esp8266-lesson1” and load the sketch onto your IDE.

In the sketch, find the following lines:

char ssid[] = "******"; // your network SSID (name)
char pass[] = "******"; // your network password
Please replace the "******" with your correct Wi-Fi SSID and password. Otherwise, your project 
cannot connect to the Internet.

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

You will see the following message.

From the serial monitor, you can see the IP address of your OSOYOO Basic board in the red circle (in the above picture, 192.168.50.116).

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

Learn More about parts

No. Picture Product Name Link
1 OSOYOO basic board https://osoyoo.store/products/osoyoo-uno-r3-for-arduino?variant=31955265290351
2 OSOYOO Wi-Fi shield https://osoyoo.store/products/esp8266-wifi-shiled-osoyoo-wifi-internet-of-things-learning-kit-for-arduino-uno?variant=31955252215919
3 Photoresistor Sensor Module https://osoyoo.store/products/photoresistor-sensor-module-light-detection-digital-switch-mete-for-arduino?variant=31955271057519
4 Water Level Detection Sensor https://osoyoo.store/products/rain-water-level-sensor-module-detection-liquid-surface-depth-height-for-arduino?variant=31955273810031
5 Sound Detection Sensor Module https://osoyoo.store/products/high-sensitivity-sound-microphone-sensor-detection-module-for-arduino-avr-pic?variant=31955278921839
6 Ultrasonic sensor https://osoyoo.store/products/hc-sr04-ultrasonic-sensor-module-for-arduino?variant=31957815558255
7 Servo motor https://osoyoo.store/products/sg90-micro-servo-for-arduino-raspberry-pi-robot?variant=31957821096047
8 Active Buzzer Module https://osoyoo.store/products/buzzer-sensor-module-for-esp8266-iot-kit?variant=31955947225199
9 Temperature&Humidity Sensor https://osoyoo.store/products/dht11-temperature-humidity-sensor-module-for-arduino?variant=31955953221743
10 Relay Module https://osoyoo.store/products/single-channel-relay-module-for-arduino-raspberry-pi?variant=31955954401391
11 Gas Sensor Module https://osoyoo.store/products/mq-2-smoke-sensor-for-arduino?variant=31955955417199
12 Digital Barometric Pressure Sensor Module https://osoyoo.store/products/bmp180-high-precision-pressure-sensor-for-arduino?variant=31957739339887
13 Infrared Sensor Module https://osoyoo.store/products/hc-sr501-pir-motion-sensor-for-arduino?variant=31957812838511
14 LED(6 x White, 6 x Red, 6 x Yellow, 6x Green) https://osoyoo.store/products/led-packs-for-arduino?variant=31957816442991