KS0389 keyestudio ESP8266 WiFi Module (Black and Eco-friendly): Difference between revisions
Keyestudio (talk | contribs) No edit summary |
Keyestudio (talk | contribs) |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[image:ks0389.png|thumb|500px|right|Keyestudio | [[image:ks0389.png|thumb|500px|right|Keyestudio ESP8266 WiFi Module ]] | ||
==Description== | ==Description== | ||
This keyestudio ESP8266 WI-FI development board is based on the ESP8266-12FWIFI module developed by Ai-Thinker. | This keyestudio ESP8266 WI-FI development board is based on the ESP8266-12FWIFI module developed by Ai-Thinker. <br> | ||
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. | 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.<br> | ||
It supports RTOS, integrated with Wi-Fi MAC/BB/RF/PA/LNA. Onboard comes with curved antenna. | It supports RTOS, integrated with Wi-Fi MAC/BB/RF/PA/LNA. Onboard comes with curved antenna.<br> | ||
This development board is a standalone network controller, which can add networking function to those existing devices. | This development board is a standalone network controller, which can add networking function to those existing devices. <br> | ||
When using, power the board and upload the program via a Micro USB port, and the current supply should be 2A. | When using, power the board and upload the program via a Micro USB port, and the current supply should be 2A. | ||
<br>[[Image:ks0389-1.png| | <br>[[Image:ks0389-1.png|400px|frameless]]<br> | ||
<br> | |||
==Technical Details== | ==Technical Details== | ||
Line 21: | Line 22: | ||
<br>[[Image:ks0389-2.png|600px|frameless]]<br> | <br>[[Image:ks0389-2.png|600px|frameless]]<br> | ||
<br> | |||
==Element and Interfaces= | ==Element and Interfaces== | ||
Here is an explanation of what every element and interface of the board has: | Here is an explanation of what every element and interface of the board has: | ||
<br>[[Image:ks0389- | <br>[[Image:ks0389-3.png|600px|frameless]]<br> | ||
<br> | |||
==Specialized Functions of Some Pins== | ==Specialized Functions of Some Pins== | ||
* Serial communication pins: RX and TX | * Serial communication pins: RX and TX | ||
Line 34: | Line 36: | ||
* GPIO pins: D0(GPIO16); D1(GPIO5); D2(GPIO4); D3(GPIO0); D4(GPIO2); D5(GPIO14); D6(GPIO12); D7(GPIO13); D8(GPIO15); RX(GPIO3); TX(GPIO1); SD3(GPIO10); SD2(GPIO9) | * GPIO pins: D0(GPIO16); D1(GPIO5); D2(GPIO4); D3(GPIO0); D4(GPIO2); D5(GPIO14); D6(GPIO12); D7(GPIO13); D8(GPIO15); RX(GPIO3); TX(GPIO1); SD3(GPIO10); SD2(GPIO9) | ||
<br> | |||
==Detailed Using Method as follows== | ==Detailed Using Method as follows== | ||
===Step1| Install the Arduino IDE=== | ===Step1| Install the Arduino IDE=== | ||
When programming the control board, first you should install the Arduino software and driver. | When programming the control board, first you should install the Arduino software and driver. <br> | ||
You can download the different versions for different systems from the link below: | You can download the different versions for different systems from the link below: <br> | ||
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x | https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x | ||
<span style="color: red">'''Note: ''' | <span style="color: red">'''Note: ''' this control board is only compatible with Arduino 1.6.5 version or latest. <br> | ||
In the following, we will download the Arduino 1.6.5 version. | In the following, we will download the Arduino 1.6.5 version. </span><br> | ||
<br>[[Image:ks0389 Step1-1.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step1-1.png|600px|frameless]]<br> | ||
In this Windows system page, there are two options. One is Windows version, the other is Windows Installer. | In this Windows system page, there are two options. One is Windows version, the other is Windows Installer. <br> | ||
For Windows Installer, you can download the installation file, this way you need to install the arduino IDE. | For Windows Installer, you can download the installation file, this way you need to install the arduino IDE. | ||
<br>[[Image:ks0389 Step1-2.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step1-2.png|600px|frameless]]<br> | ||
Line 55: | Line 57: | ||
<br>[[Image:KS0313-5.png|600px|frameless]]<br> | <br>[[Image:KS0313-5.png|600px|frameless]]<br> | ||
Click '''JUST DOWNLOAD'''. | Click '''JUST DOWNLOAD'''. <br> | ||
When the ZIP file is downloaded well to your computer, you can directly unzip the file. Open the Arduino-1.6.5-r5 folder, you should get it as follows.[[Image:ks0389 Step1-4.png| | When the ZIP file is downloaded well to your computer, you can directly unzip the file. Open the Arduino-1.6.5-r5 folder, you should get it as follows.[[Image:ks0389 Step1-4.png|400px|frameless]]<br> | ||
<br>[[Image:ks0389 Step1-5.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step1-5.png|600px|frameless]]<br> | ||
Click the icon of ARDUINO software to open it. This is your Arduino. | Click the icon of ARDUINO software to open it. This is your Arduino. | ||
<br>[[Image:ks0389 Step1-6.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step1-6.png|600px|frameless]]<br> | ||
<br> | |||
===Step2| Install the Driver=== | ===Step2| Install the Driver=== | ||
The USB to serial port chip of this control board is '''CP2102-GMR'''. So you need to install the driver for the chip. | The USB to serial port chip of this control board is '''CP2102-GMR'''. So you need to install the driver for the chip. <br> | ||
You can click the driver package download link here. | You can click the driver package download link here.<br> | ||
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers | https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers | ||
Line 81: | Line 83: | ||
<br>[[Image:ks0389 Step2-6.png|600px|frameless]] [[Image:ks0389 Step2-7.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step2-6.png|600px|frameless]] [[Image:ks0389 Step2-7.png|600px|frameless]]<br> | ||
<br> | |||
===Step3| Install the ESP8266 with Arduino=== | ===Step3| Install the ESP8266 with Arduino=== | ||
Double-click the icon of Arduino software downloaded well, you will get the interface shown below. | Double-click the icon of Arduino software downloaded well, you will get the interface shown below. | ||
Line 115: | Line 117: | ||
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. | 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. | ||
<br>[[Image:ks0389 Step3- | <br>[[Image:ks0389 Step3-3.png|600px|frameless]]<br> | ||
Then open the Arduino IDE, click the “File” to select the “Preferences”. | Then open the Arduino IDE, click the “File” to select the “Preferences”. | ||
<br>[[Image:ks0389 Step3- | <br>[[Image:ks0389 Step3-2.png|600px|frameless]]<br> | ||
The pop-up interface is shown below. | The pop-up interface is shown below. <br> | ||
See the “Additional Boards Manager URLs”, copy and paste the link below: | See the “Additional Boards Manager URLs”, copy and paste the link below: | ||
http://arduino.esp8266.com/stable/package_esp8266com_index.json | http://arduino.esp8266.com/stable/package_esp8266com_index.json | ||
Line 133: | Line 135: | ||
<br>[[Image:ks0389 Step3-6.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step3-6.png|600px|frameless]]<br> | ||
Done downloading the relevant file, it will pop up the window below. | Done downloading the relevant file, it will pop up the window below. <br> | ||
Then enter the 8266 on the blank bar and click Install. | Then enter the 8266 on the blank bar and click Install. | ||
<br>[[Image:ks0389 Step3-7.png|600px|frameless]] [[Image:ks0389 Step3-8.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step3-7.png|600px|frameless]] [[Image:ks0389 Step3-8.png|600px|frameless]]<br> | ||
Line 140: | Line 142: | ||
<br>[[Image:ks0389 Step3-9.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step3-9.png|600px|frameless]]<br> | ||
<br> | |||
===Step4| Add the Libraries=== | ===Step4| Add the Libraries=== | ||
Before upload the code to test your board, you should first add the library ESP8266WiFi into the libraries folder of Arduino-1.6.5-r5. | Before upload the code to test your board, you should first add the library ESP8266WiFi into the libraries folder of Arduino-1.6.5-r5. <br> | ||
You can click the link to download the library needed. | You can click the link to download the library needed.<br> | ||
https://drive.google.com/open?id=1_Y5lKCrDgY3AeovXZKorQ8FVk2olUOOL | https://drive.google.com/open?id=1_Y5lKCrDgY3AeovXZKorQ8FVk2olUOOL | ||
<br>[[Image:ks0389 Step4-1.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step4-1.png|600px|frameless]]<br> | ||
Line 150: | Line 153: | ||
Before adding the library, you have opened the Arduino IDE. After add the library successfully, must restart the IDE, so the library can work. | Before adding the library, you have opened the Arduino IDE. After add the library successfully, must restart the IDE, so the library can work. | ||
<br> | |||
===Step5| Select the Board and Serial Port=== | ===Step5| Select the Board and Serial Port=== | ||
Open the Arduino IDE, you’ll need to click the “Tools”, then select the Board and the Serial Port. | Open the Arduino IDE, you’ll need to click the “Tools”, then select the Board and the Serial Port. | ||
<br>[[Image:ks0389 Step3-9.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step3-9.png|600px|frameless]]<br> | ||
You can check out the Serial Port on your computer’s Device Manager. | You can check out the Serial Port on your computer’s Device Manager.<br> | ||
Select your proper COM Port. | Select your proper COM Port. | ||
<br>[[Image:ks0389 Step5-1.png|600px|frameless]] [[Image:ks0389 Step5-1.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step5-1.png|600px|frameless]] [[Image:ks0389 Step5-1.png|600px|frameless]]<br> | ||
<br> | |||
===Step6| Upload the Code=== | ===Step6| Upload the Code=== | ||
Add well the libraries mentioned above, and select the proper Board and Port, you should upload the code to test the module. | Add well the libraries mentioned above, and select the proper Board and Port, you should upload the code to test the module. <br> | ||
Below is an example code, you can copy and paste it on Arduino IDE. | Below is an example code, you can copy and paste it on Arduino IDE. | ||
<pre> | <pre> | ||
Line 220: | Line 223: | ||
<br>[[Image:ks0389 Step6-3.png|600px|frameless]] [[Image:ks0389 Step6-4.png|600px|frameless]]<br> | <br>[[Image:ks0389 Step6-3.png|600px|frameless]] [[Image:ks0389 Step6-4.png|600px|frameless]]<br> | ||
<br> | |||
===Step7| What Should You See=== | ===Step7| What Should You See=== | ||
Done uploading the code, open the serial monitor and set the baud rate to 115200, you should see all the WIFI information. | Done uploading the code, open the serial monitor and set the baud rate to 115200, you should see all the WIFI information. | ||
<br>[[Image:ks0389 Step7-1.png| | <br>[[Image:ks0389 Step7-1.png|800px|frameless]]<br> | ||
<br> | |||
==Package Includes== | ==Package Includes== | ||
Line 230: | Line 233: | ||
* USB cable * 1 | * USB cable * 1 | ||
<br>[[Image:ks0389.png|600px|frameless]]<br> | <br>[[Image:ks0389.png|600px|frameless]]<br> | ||
<br> | |||
==Resources== | |||
*'''Code and Libraries:''' <br> | |||
https://fs.keyestudio.com/KS0389 | |||
<br> | |||
==Get One Now== | |||
*[https://www.keyestudio.com/keyestudio-esp8266-wi-fi-module-shield-1m-micro-usb-cable-for-arduino-chip-is-cp2102-gmr-p0508-p0508.html '''Official website''' ] | |||
*[https://www.aliexpress.com/store/product/NEW-Keyeastudio-NodeMcu-Lua-ESP8266-ESP-12F-WIFI-Module-1M-USB-Cable-Development-Board-Compatible-with/1452162_32668574859.html?spm=2114.12010615.8148356.1.6ee877f1Rg6xH0 Shop on aliexpress ] | |||
[[Category: Module]] | [[Category: Module]] |
Latest revision as of 13:33, 4 March 2021
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.
Technical Details
- Microcontroller: ESP8266-12F WIFI Module
- USB to Serial Chip: CP2102-GMR
- Operating Voltage: DC5V
- Input Current: 2A
- Main frequency supports 80 MHz and 160 MHz
- Analog Input Pins: 1(A0)
- Micro USB cable: 1m
- Dimensions: 49mm*26mm*12mm
Element and Interfaces
Here is an explanation of what every element and interface of the board has:
Specialized Functions of Some Pins
- Serial communication pins: RX and TX
- SPI communication pins: CLK(CLK); SD0(MIS0); CMD(MOSI); SD1(INT).
- SD Card communication pins: D3(SD3); D2(SD2); D1(SD1); CMD(CMD); D0(SD0); CLK(CLK).
- 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); SD3(GPIO10); SD2(GPIO9)
Detailed Using Method as follows
Step1| Install the Arduino IDE
When programming the control board, first you should install the Arduino software and driver.
You can download the different versions for different systems from the link below:
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x
Note: this control board is only compatible with Arduino 1.6.5 version or latest.
In the following, we will download the Arduino 1.6.5 version.
In this Windows system page, there are two options. One is Windows version, the other is Windows Installer.
For Windows Installer, you can download the installation file, this way you need to install the arduino IDE.
For simple Windows version, you can download the software directly, do not need to install, just directly use the software after unzip the file.
Next, we click the Windows, pop up the interface as below.
Click JUST DOWNLOAD.
When the ZIP file is downloaded well to your computer, you can directly unzip the file. Open the Arduino-1.6.5-r5 folder, you should get it as follows.
Click the icon of ARDUINO software to open it. This is your Arduino.
Step2| Install the Driver
The USB to serial port chip of this control board is CP2102-GMR. So you need to install the driver for the chip.
You can click the driver package download link here.
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
You can download the driver software for different systems.
For example, download for Windows 7, you can get the driver package CP210x_Windows_Drivers.
Unzip the package to install the driver.
Then double click CP210xVCPInstaller_x64 to install the driver. Shown below.
Step3| Install the ESP8266 with Arduino
Double-click the icon of Arduino software downloaded well, you will get the interface shown below.
(Note: if the Arduino software loads in the wrong language, you can change it in the preferences dialog. See the environment page for details.)
The functions of each button on the Toolbar are listed below:
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
After that, click “Tools”, for “Board”, enter the Boards Manager, it will automatically download the relevant file. Shown below.
Done downloading the relevant file, it will pop up the window below.
Then enter the 8266 on the blank bar and click Install.
Installation completed, click Close, then click “Tools”, for “Board”, you should see the NodeMCU 1.0 (ESP-12E Module). Shown below.
Step4| Add the Libraries
Before upload the code to test your board, you should first add the library ESP8266WiFi into the libraries folder of Arduino-1.6.5-r5.
You can click the link to download the library needed.
https://drive.google.com/open?id=1_Y5lKCrDgY3AeovXZKorQ8FVk2olUOOL
Note:
Before adding the library, you have opened the Arduino IDE. After add the library successfully, must restart the IDE, so the library can work.
Step5| Select the Board and Serial Port
Open the Arduino IDE, you’ll need to click the “Tools”, then select the Board and the Serial Port.
You can check out the Serial Port on your computer’s Device Manager.
Select your proper COM Port.
Step6| Upload the Code
Add well the libraries mentioned above, and select the proper Board and Port, you should upload the code to test the module.
Below is an example code, you can copy and paste it on Arduino IDE.
/* * 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); }
After copy and paste the code on IDE, click the compile button, if compiling successfully, the message "Done compiling." will appear in the status bar.
Then click the “Upload” button, if the upload is successful, the message "Done uploading." will appear in the status bar.
Step7| What Should You See
Done uploading the code, open the serial monitor and set the baud rate to 115200, you should see all the WIFI information.
Package Includes
- Keyestudio ESP8266 WI-FI module* 1
- USB cable * 1
Resources
- Code and Libraries:
https://fs.keyestudio.com/KS0389