KS0367 keyestudio ESP8266 WiFi Board

1. Description
This keyestudio ESP8266 WI-FI development board is based on the ESP8266-12FWIFI module developed by Ai-Thinker.
The processor ESP8266 integrates the industry-leading Tensilica L106 ultra-low-power 32-bit micro MCU in a smaller package, with 16-bit Lite mode.
The main frequency supports 80MHz and 160 MHz.
It supports RTOS, integrated with Wi-Fi MAC/BB/RF/PA/LNA. Onboard comes with curved antenna.
This development board is a standalone network controller, which can add networking function to those existing devices.
When using, power the board and upload the program via a Micro USB port, and the current supply should be 2A.
2. Description
This keyestudio ESP8266 WI-FI development board is based on the ESP8266-12FWIFI module developed by Ai-Thinker.
The processor ESP8266 integrates the industry-leading Tensilica L106 ultra-low-power 32-bit micro MCU in a smaller package, with 16-bit Lite mode.
The main frequency supports 80MHz and 160 MHz.
It supports RTOS, integrated with Wi-Fi MAC/BB/RF/PA/LNA. Onboard comes with curved antenna.
This development board is a standalone network controller, which can add networking function to those existing devices.
When using, power the board and upload the program via a Micro USB port, and the current supply should be 2A.
3. Technical Details
Microcontroller: ESP8266-12F
Operating Voltage: DC5V
Input Current: 2A
Main frequency supports 80 MHz and 160 MHz
Analog Input Pins: 1(A0)
Micro USB cable: 1m
Dimensions: 32mm * 60mm * 16mm

4. Element and Interfaces
Here is an explanation of what every element and interface of the board has:

5. Specialized Functions of Some Pins
Serial communication pins: RX and TX
SPI communication pins: S1(MOSI); SC(CS); S0(MISO); SK(SCLK)
HSPI communication pins: D5(HSCLK); D6(HMISO); D7(HMOSI); D8(HCS)
Analog output pin: A0
GPIO pins: D0(GPIO16); D1(GPIO5); D2(GPIO4); D3(GPIO0); D4(GPIO2); D5(GPIO14); D6(GPIO12); D7(GPIO13); D8(GPIO15); RX(GPIO3); TX(GPIO1); S3(GPIO10); S2(GPIO9)
6. Detailed Using Methods are as follows
6.1 Software Download
Open the browser and search: https://www.arduino.cc/en/software, we will take WINDOWS system as an example to show you how to download and install.

You just need to click JUSTDOWNLOAD,then click the downloaded file to install it. And when the ZIP file is downloaded,you can directly unzip and start it.

6.2 Installing the Driver
The driver is usually installed automatically when the board is connected to the computer. When the Arduino IDE can recognize the board port and upload the program, it proves that the installation has been completed automatically, so there is no need to carry out the operation of the tutorial in this section. If you can’t recognize the board port and upload the program, please refer to the tutorial to install the driver manually.
1. Windows System
Checking the driver
Connect the motherboard to the computer.
Open Device Manager,Open the device manager, if the prompt “USB-SERIAL CH340(COMX)” appears to prove that the driver has been installed, please skip the “Driver installation” part.

Manual driver installation
Driver download
Windows System: Windows System driver
Connect the motherboard to the computer, open the device manager, if there is a yellow exclamation mark in front of the driver in the picture, it proves that the driver is not installed, please download the driver and install it manually.

2. MAC System
Checking the driver
Connect the development board to the computer, according to [Tools] —> [Port] to select the development board port (Note: If you can not confirm which port is the development board, please connect the motherboard to take pictures to record all the ports, and then unplug the development board to re-take pictures to record all the ports, and then compare to find the disappeared ports, and then unplug the motherboard after the disappeared ports is the port of the board, and then select the port on the line)If you can not recognize the port, please replace the computer USB port or around the phone cable to re-recognize the port, if it still does not work refer to the following steps to install the driver.

Manual driver installation
Driver download
Mac System: Mac System driver
double-click to decompress the downloaded driver zip package

At this point, the port can be recognized by plugging in the board again.
6.3 Installing the ESP8266 with Arduino
Double-click the icon of Arduino software downloaded well, you will get the interface shown below.

The functions of each button on the Toolbar are listed below:

Picture |
Name |
Introduction |
|---|---|---|
|
Verify/Compile |
Check the code for errors |
|
Upload |
Upload the current Sketch to the Arduino |
|
Serial Monitor |
Display the serial data being sent from the Arduino |
Firstly, plug one end of your USB cable into the Keyestudio ESP8266 WI-FI module and the other into a USB socket on your computer.

Then open the Arduino IDE, click the “File” to select the “Preferences”.

The pop-up interface is shown below. See the “Additional Boards Manager URLs”, copy and paste the link below: http://arduino.esp8266.com/stable/package_esp8266com_index.json. and then click “OK”.

After that, click “Tools”, for “Board”, enter the “Boards Manager”, it will automatically download the relevant file. Shown below.

Pop up the following window:

Installation completed, click Close, then click “Tools”, for “Board”, you should see the Generic ESP8266 Module. Shown below.

6.4 Add the Libraries
Download Resources : Resources
Open the Arduino IDE, follow [Sketch] → [Include Library] → [Add .zip Library].

6.5 Select the Board and Serial Port
Open the Arduino IDE, click the “Tools”, then select the Board and the Serial Port.

Select the Serial Port.

You can check the Serial Port on your computer’s Device Manager.

6.6 Upload the Code
Note: before uploading the code, you need to import the library files; otherwise, the code upload will fail.
/*
* This sketch demonstrates how to scan WiFi networks.
* The API is almost the same as with the WiFi Shield library,
* the most obvious difference being the different file you need to include:
*/
#include "ESP8266WiFi.h"
void setup()
{
Serial.begin(115200);
// Set WiFi to station mode and disconnect from an AP if it was previously connected
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
Serial.println("Setup done");
}
void loop()
{
Serial.println("scan start");
// WiFi.scanNetworks will return the number of networks found
int n = WiFi.scanNetworks();
Serial.println("scan done");
if (n == 0)
Serial.println("no networks found");
else
{
Serial.print(n);
Serial.println(" networks found");
for (int i = 0; i < n; ++i)
{
// Print SSID and RSSI for each network found
Serial.print(i + 1);
Serial.print(": ");
Serial.print(WiFi.SSID(i));
Serial.print(" (");
Serial.print(WiFi.RSSI(i));
Serial.print(")");
Serial.println((WiFi.encryptionType(i) == ENC_TYPE_NONE)?" ":"*");
delay(10);
}
}
Serial.println("");
// Wait a bit before scanning again
delay(5000);
}
6.7 Result
Done uploading the code, open the serial monitor and set the baud rate to 115200, you should see all the WIFI information.

7. Package List
Keyestudio ESP8266 WI-FI Board * 1
USB cable * 1



