KS0499 KEYESTUDIO Mega 2560 Plus Board

From Keyestudio Wiki
Jump to navigation Jump to search


7FFG51P%(CW.png


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


0499.png

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:

image-20230331165128482-1685496644801-1.png

There are various versions of IDE for Arduino. Just download a version compatible with your system.

image-20230531112709308.png

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.

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:

image-20230531112759668.png

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 .

image-20231030111507277.png

2.Read the License Agreement and agree it.

image-20231030111548510.png

3.Choose the installation options.

image-20231030111609783.png

4.Choose the install location.

image-20231030111627536.png

5.Click finish and run Arduino IDE

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.
Some system(WIN11) can’t install automatically driver but you could install it by hand.

Download: https://fs.keyestudio.com/CP2102-WINDOWS


Click the link to download image-20230426100746100.png, and we unzip it to image-20230426100852988.png.

Unzip again and we will get the folder image-20230426101012182.png. Please remember the path of this folder for later use.

Right click Computer—– Properties—– Device Manager.

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.

wps7.jpg

Click “Browse my computer for drivers” to find the downloaded Arduino software.

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”.

wps9.png

After a while, the driver is installed successfully.

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.

wps11.jpg

Arduino IDE Setting

Click 0486-12.pngicon,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)


0499-1.png

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


04869png.png

0499-3.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.

Resources

Download the PDF:

https://fs.keyestudio.com/KS0499

Start Your First Program

Open file to choose Examples—>BASIC—>BLINK



048610png.png


0499-4.png

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


0499-5.png

Click0486-20.pngicon to start compiling the program, check errors.
0499-6.png


Click0486-23.pngicon to start upload the program, upload successfully.
0499-7.png

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