KS0497 Keyestudio V4.0 Development Board(Compatible With Arduino Uno)

1. Description
The processor core of Keyestudio V4.0 development board is ATMEGA328P-PU , fully compatible with ARDUINO UNO REV3.
It has 14 digital input/output pins(of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, 1 ICSP header, and a reset button. The built-in ICSP port can burn the firmware for ATMEGA328P-PU directly. We can plug in power by USB wire, DC head and Vin GND pins.
2. Specification
Microcontroller: ATMEGA328P-PU
USB serial chip:CP2102
Operating Voltage: 5V
Input Voltage (recommended):DC 7-12V
Digital I/O Pins: 14 (D0-13)
PWM Digital I/O Pins:6 (D3 D5 D6 D9 D10 D11)
Analog Input Pins: 6(A0-A5)
DC Current per I/O Pin: 20 mA
DC Current for 3.3V Pin: 50 mA
Flash Memory: 32 KB (ATMEGA328P-PU) of which 0.5 KB used by bootloader
SRAM:2 KB (ATMEGA328P-PU)
EEPROM: 1 KB (ATMEGA328P-PU)
Clock Speed:16 MHz
LED_BUILTIN:D13
3. Pin Interfaces

No. |
Explain |
|---|---|
1 |
ICSP (In-Circuit Serial Programming) Header |
2 |
Power LED Indicator |
3 |
Digital I/O |
4 |
GND |
5 |
AREF |
6 |
SDA |
7 |
SCL |
8 |
RESET Button |
9 |
D13 LED |
10 |
USB Connection |
11 |
CP2102 |
12 |
TX LED |
13 |
RX LED |
14 |
Crystal Oscillator |
15 |
Voltage Regulator |
16 |
DC Power Jack |
17 |
DC Power Jack |
18 |
Microcontroller |
19 |
IOREF |
20 |
RESET Header |
21 |
Power Pin 5V |
22 |
Vin |
23 |
Analog Pins |
4. Specialized Functions of Some Pins
Serial Communication: D0 (RX) and D1 (TX)
PWM Pins (Pulse-Width Modulation): D3 D5 D6 D9 D10 D11
External Interrupts: D2 (interrupt 0), D3 (interrupt 1)
SPI communication: D10 (SS), D13 (SCK), D11 (MOSI), D12 (MISO).
These pins support SPI communication using theSPI library. The SPI pins are also broken out on the ICSP header, which is physically compatible with the Arduino Uno.
IIC communication: A4 (SDA); A5 (SCL). Support TWI communication using the Wire library.
5. Software Download
Open the browser and search: https://www.arduino.cc/en/software, we will take WINDOWS system as an example to show you how to download and install.

You just need to click JUSTDOWNLOAD,then click the downloaded file to install it. And when the ZIP file is downloaded,you can directly unzip and start it.

6. Installing driver
6.1 Windows System
Checking the driver
Connect the motherboard to the computer.

Open Device Manager,Open the device manager, if the prompt “Silicon Labs CP210x USB to UART Bridge (COMx)” appears to prove that the driver has been installed, please skip the “Driver installation” part.

Manual driver installation
Driver download
Windows System: Windows System driver
Connect the motherboard to the computer, open the device manager, if there is a yellow exclamation mark in front of the driver in the picture, it proves that the driver is not installed, please download the driver and install it manually.

6.2 MAC System
1 Checking the driver
Connect the development board to the computer, according to [Tools] —> [Port] to select the development board port (Note: If you can not confirm which port is the development board, please connect the motherboard to take pictures to record all the ports, and then unplug the development board to re-take pictures to record all the ports, and then compare to find the disappeared ports, and then unplug the motherboard after the disappeared ports is the port of the board, and then select the port on the line)If you can not recognize the port, please replace the computer USB port or around the phone cable to re-recognize the port, if it still does not work refer to the following steps to install the driver.

2 Manual driver installation
Driver download
Mac System: Mac System driver
double-click to decompress the downloaded driver zip package



After that keep “Next ” installing until the installation is complete

At this point, the port can be recognized by plugging in the board again.
Then go to the Arduino IDE, click on “Tools”, select the board Arduino Uno and the recognized development board port.

Click
to upload code and show “Done uploading”.

7. Set Arduino IDE
Connecting the board to the computer,and select the development board and port.


A- Used to verify whether there is any compiling mistakes or not.
B- Used to upload the sketch to your Arduino boar.
C-Used to send the serial data received from board to the serial monitor.
Start your first program

Click
to start compiling the program, check errors.

Click
to upload the program, upload successfully.

Upload the program successfully, the onboard LED lights on for 1s, lights off for 1s. Congratulation, you finish the first program.