KS0499 KEYESTUDIO Mega 2560 Plus Board: Difference between revisions
Keyestudio (talk | contribs) (Created blank page) |
Keyestudio (talk | contribs) |
||
(38 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<br>[[Image:7FFG51P%(CW.png|600px|right|frameless|]]<br> | |||
==Description== | |||
KEYESTUIDO Mega 2560 plus Board, whose processor core is ATMEGA2560-16AU, is fully compatible with ARDUINO MEGA 2560 REV3. | |||
USB to TTL chip adopts more economic and stable CP2012. | |||
This plus board consists of 54-channel digital input and output ports, of which 15 pins are served as PWM output, 16 analog inputs, 4 serial communication ports, one 16MHz crystal oscillator, 1 USB port, 1 power socket, 1 ICSP interface and 1 reset button. | |||
== Specification == | |||
* Microcontroller: ATMEGA2560-16AU | |||
* USB to TTL chip:CP2102 | |||
* Operating Voltage: 5V | |||
* Input Voltage (recommended):DC 7-12V | |||
* Digital I/O Pins: 54 (D0-D53) | |||
* PWM Digital I/O Pins:15(D2-D13 D44-D46) | |||
* Analog Input Pins: 16(A0-A15) | |||
* DC Current per I/O Pin: 20 mA | |||
* DC Current for 3.3V Pin: 50 mA | |||
* Flash Memory: 256 KB of which 8 KB used by bootloader | |||
* SRAM: 8 KB | |||
* EEPROM: 4 KB | |||
* Clock Speed: 16 MHz | |||
* LED_BUILTIN:D13 | |||
== Interfaces Description== | |||
<br>[[Image:0499.png|500px|frameless]]<br> | |||
== Special Interfaces Description== | |||
* Serial communication interface(4 channel): Serial(D0 =RX0, D1 =TX0), Serial1(D19 is RX1, D18 is TX1) | |||
* Serial2 (D17 is RX2, D16 equals to TX2), Serial3(D15 is RX3, D14 is TX3), D0 and D1 are connected to ATMEGA16U2-MU | |||
* PWM port(Pulse width modulation): D2-D13 and D44-D46 | |||
* External interrupt pins:D2(interrupt 0), D3(interrupt 1), D21(interrupt 2), D20 (interrupt 3), D19(interrupt 4)and D18(interrupt 5) | |||
* SPI communication interface:D53 stands for SS, D51 is MOSI, D50 is MISO, D52 equals to SCK | |||
* IIC communication interface:D20 represents SDA, D21 is SCL | |||
== Install Arduino IDE and Driver == | |||
=== Download Arduino IDE === | |||
====A. Windows System==== | |||
You could download Arduino IDE from the official website: https://www.arduino.cc/ | |||
Enter the link and click SOFTWARE: | |||
<html><img src="https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20230331165128482-1685496644801-1.png" width="50%" height="50%"></html> | |||
There are various versions of IDE for Arduino. Just download a version compatible with your system. | |||
<html><img src="https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20230531112709308.png" width="50%" height="50%"></html> | |||
Here we will show you how to download and install the windows version of Arduino IDE. | |||
There are two versions of IDE for WINDOWS system. You can choose between the installer (.exe) and the Zip file. For installer, it can be directly downloaded, without the need of installing it manually while for Zip package, you will need to install the driver manually. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20230331165316657-1685496675570-5.png | |||
You just need to click JUST DOWNLOAD. | |||
====B. Mac System==== | |||
The versions of Arduino IDE vary from operation systems. | |||
For how to download Arduino IDE on Mac, please refer to Windows: | |||
<html><img src="https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20230531112759668.png" width="40%" height="40%"></html> | |||
After downloading, double-click to open it and follow the installation instructions. | |||
C.Detailed installation steps: | |||
1.Save the .exe file downloaded from the software page to your hard drive and simply run the file . | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20231030111507277.png | |||
2.Read the License Agreement and agree it. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20231030111548510.png | |||
3.Choose the installation options. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20231030111609783.png | |||
4.Choose the install location. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20231030111627536.png | |||
5.Click finish and run Arduino IDE | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20231030111656023.png | |||
=== '''Installing Driver''' === | |||
====Install CP2102 Driver on Windows System==== | |||
Now, let’s install the driver of keyestudio MEGA PLUS control board. Its chip is CP2102 serial chip.<br> | |||
Some system(WIN11) can’t install automatically driver but you could install it by hand.<br> | |||
<big>Download CP2102 driver: https://fs.keyestudio.com/CP2102-WINDOWS</big><br> | |||
<big>Or Download the driver of CP2102: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads</big><br> | |||
Click the link to download https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20230426100746100.png, and we unzip it to https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20230426100852988.png. | |||
Unzip again and we will get the folder https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20230426101012182.png. Please remember the path of this folder for later use. | |||
Right click Computer—– Properties—– Device Manager. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/wps5.jpg | |||
The yellow exclamation mark on the page implies an unsuccessful installation and you should double click img, then click “Update Drive…”to update the driver. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/wps7.jpg | |||
Click “Browse my computer for drivers” to find the downloaded Arduino software. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/wps8.jpg | |||
There is a DRIVERS folder in Arduino software installed package, please open this folder and check the driver of CP210X series chips. | |||
Click “Browse…”, then search the driver of CP2102 and click“Next”. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/wps9.png | |||
After a while, the driver is installed successfully. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/wps10.jpg | |||
When opening the device manager, we will find that the yellow exclamation mark disappears, which means the driver of CP2102 is installed successfully. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/wps11.jpg | |||
====Install CP2102 Driver on MAC System==== | |||
Connect board we provide to your computer, and open Arduino IDE. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/40A968D312A8B080E52C4559201F498A.png | |||
Click “Tools” to select Board: Arduino Uno and Port: /dev/cu.usbserial-0001. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/3123378638D9C83554A2C90BFA436BCF.png | |||
Tap https://getting-started-with-arduino.readthedocs.io/en/latest/_images/image-20230601153931790.png to upload code, if burn successfully, you will view Done uploading. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/E97244571B69D21FF31DE3B879B8B0E5.png | |||
Note: If burn unsuccessfully, you need to install driver of CP2102, please continue to follow the instructions as below: | |||
Download the driver of CP2102:https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads | |||
1. Select Mac OSX edition | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/6E53A3DACDEC57D5EE0B15B48D771A5B.png | |||
2. Unzip the downloaded package | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/8DCED2768D5F86D3D0C3F6076D87A9A8.png | |||
3. Open folder and double-click SiLabsUSBDriverDisk.dmg file. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/61AE3E706A1C4AFA7948D5FB2E797A6D.png | |||
4. You will view the following files as follows: | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/3FFD0525E16492EDE92BDB8C84198DB9.png | |||
5. Double-click Install CP210x VCP Driver, tick Don’t warn me and tap Open. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/14F6EBB088E654ABC2F0149645E34ED1.png | |||
6. Tap Continue | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/A243872CDBB520E4D298C006E001FFF5.png | |||
7. Tap Continue and Agree | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/AE367C1894DF6745E46BBDFC460C1F99.png | |||
8. Click Continue and input your password | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/27B7214283D7F76ABA3557DD629BD965.png | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/29BBCA3360D806164717733460574356.png | |||
9. Select Open Security Preferences | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/CA6BC6E536202F07A53C09201A0996FF.png | |||
10. Click the lock to unlock security & privacy preference. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/379CAA1889F4A45614B27C9B2B934869.png | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/88A1B169A192EE6C49E95947D6287FC2.png | |||
11. Then click Allow | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/19E43624EFDE1B223800201C944D25E9.png | |||
12. Back to installation page, and wait to install. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/BB0E17AFD8BAD8B8013F19D7A9DA0FD9.png | |||
13. Successfully installed | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/3BD5BB3752ABF97E9BAB6BF950A75BED.png | |||
14. Then enter ArduinoIDE, click Tools and select Board: Arduino Uno and /dev/cu.SLAB_USBtoUAPT | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/73AED810D216D7DA3A3CE9CC0E4DBA4A.png | |||
15. Click0486-23.png to upload code and you will see “Done uploading”. | |||
https://getting-started-with-arduino.readthedocs.io/en/latest/_images/D918E2E31A9632F8B272A16595C46A83.png | |||
===Arduino IDE Setting=== | |||
Clickicon and open Arduino IDE. | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/4f4f33bb23c495e81b1cfad163653b59.png" width="50%" height="50%"></html> | |||
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) | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/d27e784f35475d633be807e115c7358f.png" width="50%" height="50%"></html> | |||
Then select the correct COM port (you can see the corresponding COM port after the driver is successfully installed) | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/a653ae3296bbac0dcf12901534fcdd45.png" width="50%" height="50%"></html> | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/9995706530f3327b61cd4455d9945299.png" width="50%" height="50%"></html> | |||
5.4 Start Your First Program | |||
Open file to choose Examples—>BASIC—>BLINK | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/54cde01d6569a2b0d61d160775779ed8.png" width="50%" height="50%"></html> | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/39e05c310f6766d92bb4c3c2b279feaf.png" width="50%" height="50%"></html> | |||
Set board and COM port, the bottom right corner of the IDE displays the corresponding board and COM port. | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/5fa8949b0b013180bde1f64f324568af.png" width="50%" height="50%"></html> | |||
Clickicon to start compiling the program, and check errors. | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/e06bf758d9a42d81b346d79e45ca2b29.png" width="50%" height="50%"></html> | |||
Clickicon to start upload the program, upload successfully. | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/c2355513a37fe793976e97d827fe8d8e.png" width="50%" height="50%"></html> | |||
The program is uploaded successfully, LED of board lights on for 1s, and lights off for 1s. | |||
===Start Your First Program=== | |||
Open file to choose Examples—>BASIC—>BLINK | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/54cde01d6569a2b0d61d160775779ed8.png" width="50%" height="50%"></html> | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/39e05c310f6766d92bb4c3c2b279feaf.png" width="50%" height="50%"></html> | |||
Set board and COM port, the bottom right corner of the IDE displays the corresponding board and COM port. | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/5fa8949b0b013180bde1f64f324568af.png" width="50%" height="50%"></html> | |||
Clickicon to start compiling the program, and check errors. | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/e06bf758d9a42d81b346d79e45ca2b29.png" width="50%" height="50%"></html> | |||
Clickicon to start upload the program, upload successfully. | |||
<html><img src="https://docs.keyestudio.com/projects/KS0499/en/latest/_images/c2355513a37fe793976e97d827fe8d8e.png" width="50%" height="50%"></html> | |||
The program is uploaded successfully, LED of board lights on for 1s, and lights off for 1s. | |||
==Resources == | |||
'''Download the PDF:'''<br> | |||
https://fs.keyestudio.com/KS0499 |
Latest revision as of 16:28, 30 May 2024
Description
KEYESTUIDO Mega 2560 plus Board, whose processor core is ATMEGA2560-16AU, is fully compatible with ARDUINO MEGA 2560 REV3. USB to TTL chip adopts more economic and stable CP2012. This plus board consists of 54-channel digital input and output ports, of which 15 pins are served as PWM output, 16 analog inputs, 4 serial communication ports, one 16MHz crystal oscillator, 1 USB port, 1 power socket, 1 ICSP interface and 1 reset button.
Specification
- Microcontroller: ATMEGA2560-16AU
- USB to TTL chip:CP2102
- Operating Voltage: 5V
- Input Voltage (recommended):DC 7-12V
- Digital I/O Pins: 54 (D0-D53)
- PWM Digital I/O Pins:15(D2-D13 D44-D46)
- Analog Input Pins: 16(A0-A15)
- DC Current per I/O Pin: 20 mA
- DC Current for 3.3V Pin: 50 mA
- Flash Memory: 256 KB of which 8 KB used by bootloader
- SRAM: 8 KB
- EEPROM: 4 KB
- Clock Speed: 16 MHz
- LED_BUILTIN:D13
Interfaces Description
Special Interfaces Description
- Serial communication interface(4 channel): Serial(D0 =RX0, D1 =TX0), Serial1(D19 is RX1, D18 is TX1)
- Serial2 (D17 is RX2, D16 equals to TX2), Serial3(D15 is RX3, D14 is TX3), D0 and D1 are connected to ATMEGA16U2-MU
- PWM port(Pulse width modulation): D2-D13 and D44-D46
- External interrupt pins:D2(interrupt 0), D3(interrupt 1), D21(interrupt 2), D20 (interrupt 3), D19(interrupt 4)and D18(interrupt 5)
- SPI communication interface:D53 stands for SS, D51 is MOSI, D50 is MISO, D52 equals to SCK
- IIC communication interface:D20 represents SDA, D21 is SCL
Install Arduino IDE and Driver
Download Arduino IDE
A. Windows System
You could download Arduino IDE from the official website: https://www.arduino.cc/
Enter the link and click SOFTWARE:
There are various versions of IDE for Arduino. Just download a version compatible with your system.
Here we will show you how to download and install the windows version of Arduino IDE.
There are two versions of IDE for WINDOWS system. You can choose between the installer (.exe) and the Zip file. For installer, it can be directly downloaded, without the need of installing it manually while for Zip package, you will need to install the driver manually.
You just need to click JUST DOWNLOAD.
B. Mac System
The versions of Arduino IDE vary from operation systems.
For how to download Arduino IDE on Mac, please refer to Windows:
After downloading, double-click to open it and follow the installation instructions.
C.Detailed installation steps: 1.Save the .exe file downloaded from the software page to your hard drive and simply run the file .
2.Read the License Agreement and agree it.
3.Choose the installation options.
4.Choose the install location.
5.Click finish and run Arduino IDE
Installing Driver
Install CP2102 Driver on Windows System
Now, let’s install the driver of keyestudio MEGA PLUS control board. Its chip is CP2102 serial chip.
Some system(WIN11) can’t install automatically driver but you could install it by hand.
Download CP2102 driver: https://fs.keyestudio.com/CP2102-WINDOWS
Or Download the driver of CP2102: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads
Click the link to download , and we unzip it to .
Unzip again and we will get the folder . Please remember the path of this folder for later use.
Right click Computer—– Properties—– Device Manager.
The yellow exclamation mark on the page implies an unsuccessful installation and you should double click img, then click “Update Drive…”to update the driver.
Click “Browse my computer for drivers” to find the downloaded Arduino software.
There is a DRIVERS folder in Arduino software installed package, please open this folder and check the driver of CP210X series chips.
Click “Browse…”, then search the driver of CP2102 and click“Next”.
After a while, the driver is installed successfully.
When opening the device manager, we will find that the yellow exclamation mark disappears, which means the driver of CP2102 is installed successfully.
Install CP2102 Driver on MAC System
Connect board we provide to your computer, and open Arduino IDE.
Click “Tools” to select Board: Arduino Uno and Port: /dev/cu.usbserial-0001.
Tap to upload code, if burn successfully, you will view Done uploading.
Note: If burn unsuccessfully, you need to install driver of CP2102, please continue to follow the instructions as below:
Download the driver of CP2102:https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads
1. Select Mac OSX edition
2. Unzip the downloaded package
3. Open folder and double-click SiLabsUSBDriverDisk.dmg file.
4. You will view the following files as follows:
5. Double-click Install CP210x VCP Driver, tick Don’t warn me and tap Open.
6. Tap Continue
7. Tap Continue and Agree
8. Click Continue and input your password
9. Select Open Security Preferences
10. Click the lock to unlock security & privacy preference.
11. Then click Allow
12. Back to installation page, and wait to install.
13. Successfully installed
14. Then enter ArduinoIDE, click Tools and select Board: Arduino Uno and /dev/cu.SLAB_USBtoUAPT
15. Click0486-23.png to upload code and you will see “Done uploading”.
Arduino IDE Setting
Clickicon and open Arduino IDE.
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 select the correct COM port (you can see the corresponding COM port after the driver is successfully installed)
5.4 Start Your First Program Open file to choose Examples—>BASIC—>BLINK
Set board and COM port, the bottom right corner of the IDE displays the corresponding board and COM port.
Clickicon to start compiling the program, and check errors.
Clickicon to start upload the program, upload successfully.
The program is uploaded successfully, LED of board lights on for 1s, and lights off for 1s.
Start Your First Program
Open file to choose Examples—>BASIC—>BLINK
Set board and COM port, the bottom right corner of the IDE displays the corresponding board and COM port.
Clickicon to start compiling the program, and check errors.
Clickicon to start upload the program, upload successfully.
The program is uploaded successfully, LED of board lights on for 1s, and lights off for 1s.
Resources
Download the PDF: