KS0509 Keyestudio Mega 2560 Smart Development Board
Description
The core processor of this MEGA 2560 Smart development board is TMEGA2560-16AU which is compatible with the Arduino MEGA 2650 development board. Integrated with 2 TB6612 motor driving chips, this processor can be served as the solution to drive the 4WD Smart car .
In addition, the output power supply of this board can reach the maximum 5V 3A, in 3 channels (good heat dissipation).Through 2.54mm pins, most of the GPIO ports are extend out to facilitate external connection of sensors/ modules.
Specifications
The core processor of this development board is ATMEGA2560-16AU, together with the chip CP 2102 equipped it can serve as a UART - to - USB converter.
It boasts 54 digital I/O ports (12 designed for motors) of which 15 can be used an PWM output (4 for motors), 16 analog input ports, 4-channel serial communication ports (port 0 is for program burning), 16MHz quartz crystal, a USB interface , a power jack, a ICSP plug and a reset button. It supports all functions as a microcontroller. And connecting it to a computer with a USB cable, and powering it up through the external power (BAT power supply: DC 7-12V) are all needed to start using it.
Instructions
Download Arduino IDE
When getting this control board, we need to install Arduino IDE Enter the website https://www.arduino.cc/, click and
There are many versions of Arduino IDE suitable for Windows,Mac and Linux systems. You are free to select the version fit for you computer. Here we intend to take the Windows version as an example for installation instructions. As is shown in the below picture, there are two kind of loading for Windows version too. The Windows Win 7 and newer needs installing manually. Yet , the Windows ZIP file can be directly downloaded and installed.
They all operate well. Just choose the one you like to download to your computer.
Just click JUST DOWNLOAD can do the trick.You can also help its development with a donation.
Install Driver for Windows System
Let’s install the driver of MEGA 2560 Smart Development Board. The USB-TTL chip of 2560 Smart board adopts CP2102 serial chip.
Its driver files are included in the Arduino 1.8 version and above.
When the board is attached to the computer, the computer can recognize the driver of CP2102 automatically.
If it is installed unsuccessfully, you need to install it manually.
Click Computer----- Properties----- Device Manager, as shown below:
There is a yellow exclamation mark on the page, which implies the installation of the driver of CP2102 fails. Double-click to update the driver.
Click “OK” to enter the following page and click “browse my computer for driver software”.
There is a DRIVERS folder in Arduino software installed package. Open this driver folder and check the driver of CP210X series chips.
Select this file and then click OK to install the driver.
When opening the device manager, we will find the yellow exclamation mark disappear. The driver of CP2102 is installed successfully.
Install Driver for MAC System
Click the following link for installation:
https://wiki.keyestudio.com/How_to_Install_the_Driver_of_CP2102_on_MAC_System
Arduino IDE Setting
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)
Before uploading the program to the board, let’s demonstrate the function of each symbol in the Arduino IDE toolbar.
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.
Please note that the method to Arduino IDE setting for Mac system and Windows system is almost the same except from COM port, as shown below.
Enjoy Your First Program
We have learned how to download the Arduino IDE and the driver. Now let’s begin the first program “Hello World!”
The test code is as follows:
void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); } void loop() { // print out "Hello world!" Serial.println("Hello world!"); delay(1000);// delay 1 second }
Open Arduino IDE to change the code to make Keyestudio MEGA 2560 Smart development board to show “Hello World!” on the serial port monitor every second.
Set the development board manager as shown below:
Set COM port as follows:
Click to start compiling the program, check errors.
The setting of the development board appears in the lower right and it is consistent with that on Device Manager.
When upload successfully, set baud rate to 9600 and the serial port monitor output “Hello World! “ as shown in the picture below:
Congratulations! You have finished your first program!