KS0486 Keyestudio PLUS Development Board (Black And Eco-friendly): Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(22 intermediate revisions by the same user not shown)
Line 10: Line 10:
<br>
<br>


<br>[[Image:04861.png|500px|frameless]]<br>
<br>[[Image:04861.png|800px|frameless]]<br>


== Specifications ==
== Specifications ==
Line 37: Line 37:
* IIC communication port: A4 is SDA, A5 is SCL
* IIC communication port: A4 is SDA, A5 is SCL


== Instruction ==
== Windows System ==
Programming the control board, we need to download Arduino IDE. <br>
 
You could download from the official website:
=== Installing Arduino IDE ===
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x. <br>
 
There are various versions of the IDE in the official link, here we download a Windows system, version 1.5.6. <br>  
When getting this control board, we need to install Arduino IDE
Enter the website https://www.arduino.cc/, click [[File:0173--1.png|500px|frameless|thumb]] and [[File:0173--2.png|500px|frameless|thumb]]
 
<br>[[File:0173--3.png|500px|frameless|thumb]]<br>
 
Select the version you want to download, the latest version could be downloaded.
 
<br>[[File:0173--4.png|500px|frameless|thumb]]<br>
 
Alternatively, you could select previous release.
In this project, we use 1.8.12 version.
 
<br>[[File:0173--5.png|500px|frameless|thumb]]<br>
 
Click[[File:KS0173----13.png|500px|frameless|thumb]] to view the below page
 
<br>[[File:0173--8.png|500px|frameless|thumb]]<br>


<br>[[Image:0486.2png.png|500px|frameless]]<br>


Click [[File:0173--6.png|500px|frameless|thumb]] to download an installer of Arduino 1.8.12 version,which needs to be installed manually.  When you tap [[File:0173--7.png|500px|frameless|thumb]],a zip file of Arduino 1.8.12 version will be directly downloaded, and you only need to unzip it to finish installation.


=== Installing Arduino IDE ===
<br>[[File:0497=21.png|500px|frameless|thumb]]<br>
Double click arduino-1.5.6-r2-windows to start.
 
Select “I Agree”to accept license agreement.
Click [[File:0173--9.png|500px|frameless|thumb]]icon to download Arduino IDE.
 
=== Installing Driver ===
Finish the download. Now, let’s install the driver of keyestudio PLUS control board. Its chip is CP2102 serial chip. In general, the driver of CP2102 serial chip is included in ARDUINO version 1.8 and above. The driver will be recognized and installed as long as you connect board to computer with USB.<br>
 
Some system can’t install automatically driver, you could install by hand. Open the device manager of computer and you will see a yellow exclamation mark which means the driver of CP2102 isn’t installed successfully.<br>
 
<big>
<span style=color:red>'''Note: If the version of Arduino IDE you download is below 1.8, you need to download the driver of CP2102.'''</span></big>
 
</big>'''Download the driver of CP2102''':</big>
</big><span style=color:red>'''https://fs.keyestudio.com/CP2102-WIN'''</span></big>
 
double-click the “Cp2102 USB to UART Bridge Controller” and a window pops up, click “update driver”, as shown below:<br>


<br>[[Image:0486.3png.png|500px|frameless]]<br>
<br>[[Image:04864png.png|500px|frameless]]<br>
Select components to install and click “Next”.<br>
<br>[[Image:0486-2.png|500px|frameless]]<br>
Click “Browse” and select another folder. Click “Install” to start the installation.<br>
<br>[[Image:0486-3.png|500px|frameless]]<br>
Finally, wait for a few minutes to finish.


<br>[[Image:0486-4.png|500px|frameless]]<br>
[[Image:04865png.png|500px|frameless]] <br>
<br>[[Image:0486-5.png|500px|frameless]]<br>


Click “Browse my computer for driver software” to find out the ARDUINO software to be installed.<br>
[[Image:04866png.png|500px|frameless]] <br>


=== 4.2 Installing Driver ===
There is a DRIVERS folder inside, enter it and the driver of CP210X series chip is shown.<br>
The corresponding driver is needed when using Arduino IDE. Its USB serial chip is CP2102. There are drivers of all edition systems in the link below.<br>
[[Image:04867png.png|500px|frameless]] <br>
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers <br>


You can refer to the link below:<br>
Choose the folder to be installed, click “Next”,  the driver of CP2010 is installed successfully.<br>
https://v.qq.com/x/page/s0367yegedj.html <br>
[[Image:04868png.png|500px|frameless]] <br>
Next, we introduce the driver installation method of Windows systems. Open the driver file, as shown below.<br>


<br>[[Image:0486-6.png|500px|frameless]]<br>
Up to now. Then you can right click “Computer” —>“Properties”—>“Device manager”, you will see the device as the figure shown below.<br>
Click [[Image:0486-7.png|200px|frameless]] click “next step”, as shown below:<br>
The driver is installed successfully and the yellow exclamation mark is gone.<br>
<br>[[Image:0486-8.png|500px|frameless]]<br>
[[Image:04869png.png|500px|frameless]] <br>
Click “next step”, as shown below:
<br>[[Image:0486-9.png|500px|frameless]]<br>
Installing successfully, click “complete” to end installation, as shown below.<br>
<br>[[Image:0486-10.png|500px|frameless]]<br>
Right click computer ---> Properties ---> ---> Device Manager, then the corresponding COM port is shown. (as shown below)
<br>[[Image:0486-11.png|500px|frameless]]<br>


=== Arduino IDE Setting ===
=== Arduino IDE Setting ===
Click[[Image:0486-12.png|200px|frameless]] icon,open Arduino IDE.
Click[[Image:0486-12.png|200px|frameless]] icon,open Arduino IDE.
<br>[[Image:0486-13.png|500px|frameless]]<br>
 
<br>[[File:0085=14.png|500px|frameless|thumb]]<br>


To avoid the errors when uploading the program to the board, you need to select the correct Arduino board that matches the board connected to your computer.
To avoid the errors when uploading the program to the board, you need to select the correct Arduino board that matches the board connected to your computer.
Then come back to the Arduino software, you should click Tools→Board, select the board. (as shown below)
Then come back to the Arduino software, you should click Tools→Board, select the board. (as shown below)
<br>[[Image:0486-14.png|500px|frameless]]<br>
<br>[[Image:0085=15.png|500px|frameless]]<br>




Then select the correct COM port (you can see the corresponding COM port after the driver is successfully installed)
Then select the correct COM port (you can see the corresponding COM port after the driver is successfully installed)


<br>[[Image:0486-11.png|500px|frameless]]<br>
<br>[[Image:04869png.png|500px|frameless]]<br>
<br>[[Image:0486-16.png|500px|frameless]]<br>
<br>[[Image:0085=16.png|500px|frameless]]<br>


Before uploading the program to the board, let’s demonstrate the function of each symbol in the Arduino IDE toolbar.<br>
Before uploading the program to the board, let’s demonstrate the function of each symbol in the Arduino IDE toolbar.<br>




<br>[[Image:0486-17.png|500px|frameless]]<br>
<br>[[Image:0085=17.png|500px|frameless]]<br>


A- Used to verify whether there is any compiling mistakes or not.<br>
A- Used to verify whether there is any compiling mistakes or not.<br>
Line 105: Line 123:
F- Used to send the serial data received from board to the serial monitor.<br>
F- Used to send the serial data received from board to the serial monitor.<br>


=== 4.4 Hello World! ===
=== Start the first program ===


Copy the following code on the Arduino IDE
Open file to choose Examples—>BASIC—>BLINK
<pre>
int val;
int ledpin=13;
void setup()
{
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
}
void loop()
{
val=Serial.read();
if(val=='R')
{
digitalWrite(ledpin,HIGH);
delay(500);
digitalWrite(ledpin,LOW);
delay(500);
Serial.println("Hello World!");
}
}
</pre>


<br>[[Image:048610png.png|500px|frameless]]<br>


<br>[[Image:0486-18.png|500px|frameless]]<br>
<br>[[Image:048611png.png|500px|frameless]]<br>


Set the board and COM port, the corresponding board and COM port are displayed in the lower right corner of the IDE.
Set board and COM port, the bottom right corner of the IDE displays the corresponding board and COM port
<br>[[Image:0486-19.png|500px|frameless]]<br>
<br>[[Image:048612png.png|500px|frameless]]<br>


Click [[Image:0486-20.png|500px|frameless]]icon to start compiling the program.
Click [[Image:0486-20.png|500px|frameless]]icon to start compiling the program.
<br>[[Image:0486-21.png|500px|frameless]]<br>
<br>[[Image:048613png.png|500px|frameless]]<br>
<br>[[Image:0486-22.png|500px|frameless]]<br>
 


Click[[Image:0486-23.png |500px|frameless]] icon to start upload the program, upload successfully.
Click[[Image:0486-23.png |500px|frameless]] icon to start upload the program, upload successfully.
<br>[[Image:0486-24.png|500px|frameless]]<br>
<br>[[Image:048614png.png|500px|frameless]]<br>
<br>[[Image:0486-25.png|500px|frameless]]<br>
 
 
The program is uploaded successfully, LED of board lights on for 1s, and lights off for 1s.
 
== MAC System ==
=== Install Arduino IDE on MAC System ===
 
The installation instruction is as same as the chapter 3.1, as shown below:
 
<br>[[Image:图片8883.png|500px|frameless]]<br>
 
=== Download the Driver of CP2102 ===
 
https://fs.keyestudio.com/CP2102-MAC
 
=== How to Install the Driver of CP2102 ===
 
The following link is for your reference:


Click[[Image:0486-26.png|500px|frameless]]to open serial monitor, set baud rate to 9600, enter “R” character, click “Send” (RX light will flash once when computer sends a “R” character to control board),then D13 indicator on the control board blinks once, "Hello World!" is shown on the serial monitor( control board sends "Hello World!" to the computer, TX light flashes once)
https://wiki.keyestudio.com/How_to_Install_the_Driver_of_CP2102_on_MAC_System
<br>[[Image:0486-27.png|500px|frameless]]<br>
 
=== Arduino IDE Setting ===
 
The setting method is as same as the chapter 3.3 except from COM port, as shown below.
 
<br>[[File:图片8884.png|500px|frameless|thumb]]<br>


== '''Resource''' ==
== '''Resource''' ==
*'''Download Link:'''https://1drv.ms/u/s!ArhgRvK6-RyJhTxgPQqWnuTyd11M?e=Omp3rL
*'''Download Link:
 
'''https://fs.keyestudio.com/KS0486'''
 
 
== Other Language ==
 
https://www.adrirobot.it/scheda-keyestudio-plus-ks0486/


== Get One Now ==
== Get One Now ==

Latest revision as of 15:48, 27 July 2022


0486-1 - 副本.png




Description

Doing experiment for electronic products, we often program on the Arduino IDE development environment by arduino series microcontrollers.
Keyestudio PLUS control board is fully compatible with Arduino IDE development environment. It contains all the functions of the Arduino UNO R3 board. Moreover, some improvements we made highly strengthen its function(as shown below). In order to wire efficiently, we equip with a 1m USB cable of type-c interface for you.


04861.png

Specifications


0486.1png.png


  • USB to serial chip: CP2102
  • Working voltage: 5V or 3.3V (DIP switch control)
  • External power: DC 6-15V (recommend 9V)
  • Digital I / O pins: 14 (D0-D13)
  • PWM channel: 6 (D3 D5 D6 D9 D10 D11)
  • Analog input channel (ADC): 8 (A0-A7)
  • Each I / O Port of DC output capability : 20 mA
  • Output capability of 3.3V port: 50 mA
  • Flash Memory: 32 KB (of which 0.5 KB is used by the bootloader)
  • SRAM: 2 KB (ATMEGA328P-AU)
  • EEPROM: 1 KB (ATMEGA328P-AU)
  • Clock speed: 16MHz
  • On-board LED pin: D13


  • Serial communication interface: D0 is RX, D1 is TX
  • PWM interface (pulse width modulation): D3 D5 D6 D9 D10 D11
  • External interrupt interface: D2 (interrupt 0) and D3 (interrupt 1)
  • SPI communication interface: D10 is SS, D11 is MOSI, D12 is MISO, D13 is SCK
  • IIC communication port: A4 is SDA, A5 is SCL

Windows System

Installing Arduino IDE

When getting this control board, we need to install Arduino IDE Enter the website https://www.arduino.cc/, click thumb and thumb


thumb

Select the version you want to download, the latest version could be downloaded.


thumb

Alternatively, you could select previous release. In this project, we use 1.8.12 version.


thumb

Clickthumb to view the below page


thumb


Click thumb to download an installer of Arduino 1.8.12 version,which needs to be installed manually. When you tap thumb,a zip file of Arduino 1.8.12 version will be directly downloaded, and you only need to unzip it to finish installation.


thumb

Click thumbicon to download Arduino IDE.

Installing Driver

Finish the download. Now, let’s install the driver of keyestudio PLUS control board. Its chip is CP2102 serial chip. In general, the driver of CP2102 serial chip is included in ARDUINO version 1.8 and above. The driver will be recognized and installed as long as you connect board to computer with USB.

Some system can’t install automatically driver, you could install by hand. Open the device manager of computer and you will see a yellow exclamation mark which means the driver of CP2102 isn’t installed successfully.

Note: If the version of Arduino IDE you download is below 1.8, you need to download the driver of CP2102.

Download the driver of CP2102: https://fs.keyestudio.com/CP2102-WIN

double-click the “Cp2102 USB to UART Bridge Controller” and a window pops up, click “update driver”, as shown below:


04864png.png

04865png.png

Click “Browse my computer for driver software” to find out the ARDUINO software to be installed.
04866png.png

There is a DRIVERS folder inside, enter it and the driver of CP210X series chip is shown.
04867png.png

Choose the folder to be installed, click “Next”, the driver of CP2010 is installed successfully.
04868png.png

Up to now. Then you can right click “Computer” —>“Properties”—>“Device manager”, you will see the device as the figure shown below.
The driver is installed successfully and the yellow exclamation mark is gone.
04869png.png

Arduino IDE Setting

Click0486-12.png icon,open Arduino IDE.


thumb

To avoid the errors when uploading the program to the board, you need to select the correct Arduino board that matches the board connected to your computer. Then come back to the Arduino software, you should click Tools→Board, select the board. (as shown below)
0085=15.png


Then select the correct COM port (you can see the corresponding COM port after the driver is successfully installed)


04869png.png

0085=16.png

Before uploading the program to the board, let’s demonstrate the function of each symbol in the Arduino IDE toolbar.



0085=17.png

A- Used to verify whether there is any compiling mistakes or not.
B- Used to upload the sketch to your Arduino board.
C- Used to create shortcut window of a new sketch.
D- Used to directly open an example sketch.
E- Used to save the sketch.
F- Used to send the serial data received from board to the serial monitor.

Start the first program

Open file to choose Examples—>BASIC—>BLINK


048610png.png


048611png.png

Set board and COM port, the bottom right corner of the IDE displays the corresponding board and COM port
048612png.png

Click 0486-20.pngicon to start compiling the program.
048613png.png


Click0486-23.png icon to start upload the program, upload successfully.
048614png.png


The program is uploaded successfully, LED of board lights on for 1s, and lights off for 1s.

MAC System

Install Arduino IDE on MAC System

The installation instruction is as same as the chapter 3.1, as shown below:


图片8883.png

Download the Driver of CP2102

https://fs.keyestudio.com/CP2102-MAC

How to Install the Driver of CP2102

The following link is for your reference:

https://wiki.keyestudio.com/How_to_Install_the_Driver_of_CP2102_on_MAC_System

Arduino IDE Setting

The setting method is as same as the chapter 3.3 except from COM port, as shown below.


thumb

Resource

  • Download Link:

https://fs.keyestudio.com/KS0486


Other Language

https://www.adrirobot.it/scheda-keyestudio-plus-ks0486/

Get One Now