KS0502 Keyestudio MEGA 2560 PRO Development Board(Black and Eco-friendly): Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
Line 51: Line 51:
| align="center" | '''LED indicator(TX)'''
| align="center" | '''LED indicator(TX)'''
| align="light" | 5V<br>
| align="light" | 5V<br>
DC 5V input/output voltage(supply power for control board when inputting 5V)
|-
|-


| align="center" | '''4'''
| align="center" | '''4'''
| align="center" | '''LED indicator(POW)'''
| align="center" | '''3.3V'''
| align="light" | Power up the control board, LED on, otherwise LED off.
| align="light" | Provide DC 3.3V output voltage
|-
|-


| align="center" | '''5'''
| align="center" | '''5'''
| align="center" | '''LED indicator(L)'''
| align="center" | '''AREF'''
| align="light" | There is a built-in LED driven by digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.
| align="light" | Analog reference. Used to set the external reference voltage(0-5V)
|-
|-


| align="center" | '''6'''
| align="center" | '''6'''
| align="center" | '''RX0(D0)TX1(D1)D2-D13'''<br>
| align="center" | '''Reset Button Port'''<br>
| align="light" | It has 14 digital input/output pins D0-D13 (of which 6 can be used as PWM outputs). These pins can be configured as digital input pin to read the logic value (0 or 1). Or used as digital output pin to drive different modules like LED, relay, etc.
| align="light" | Can be connected to press button, as same as reset button
|-
|-


| align="center" | '''7'''
| align="center" | '''7'''
| align="center" | '''RST'''
| align="center" | '''Serial communication port'''
| align="light" | Reset pin: connect external button. The function is the same as RESET button.
| align="light" | The default serial communication port,
RX responds to D0(digital port), TX responds to D1(digital port)
|-
|-


| align="center" | '''8'''
| align="center" | '''8'''
| align="center" | '''MEGA 328P'''
| align="center" | '''Digital Ports'''
| align="light" | Each board has its own microcontroller. You can regard it as the brain of your board.<br>
| align="light" | Have 54 digital input/output pins (of which 15 can be used as PWM outputs). These pins can be configured as digital input pin to read the logic value (0 or 1). Or used as digital output pin to drive different modules like LED, relay, etc.
Microcontrollers are usually from ATMEL. Before you load a new program on the Arduino IDE, you must know what IC is on your board. This information can be checked at the top surface of IC.<br>
 
The board’s microcontroller is ATMEGA328P-AU. <br>
More info. see the [http://101.96.10.64/ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328-328P_Summary.pdf datasheet ]
|-
|-


| align="center" | '''9'''
| align="center" | '''9'''
| align="center" | '''MINI USB'''
| align="center" | '''Analog Ports'''
| align="light" | The board can be powered via Mini-B USB connection. Also upload the program to the board via USB port.
| align="light" | 16 analog pins (A0-A15)
|-
|-


| align="center" | '''10'''
| align="center" | '''10'''
| align="center" | '''3V3 pin'''
| align="center" | '''ATMEGA2560(Microcontroller)'''
| align="light" | rovides 3.3V voltage output
| align="light" | Each board has its own microcontroller.
The MCU of this board is ATMEGA2560-16AU.
|-
|-


| align="center" | '''11'''
| align="center" | '''11'''
| align="center" | '''REF'''
| align="center" | '''ICSP Pin'''
| align="light" | Reference external voltage (0-5 volts) for the analog input pins. Used with [https://www.arduino.cc/reference/en/language/functions/analog-io/analogreference/ analogReference()].
| align="light" | the AVR, an Arduino micro-program header consisting of MOSI, MISO, SCK, RESET, VCC, and GND.
It is often called the SPI (serial peripheral interface) and can be considered an "extension" of the output. In fact, slave the output devices to the SPI bus host.When connecting to PC, program the firmware to ATMEGA2560-16AU.
|-
|-


| align="center" | '''12'''
| align="center" | '''12'''
| align="center" | '''A0-A7'''
| align="center" | '''L Indicator'''
| align="light" | The Nano has 8 Analog Pins, labeled A0 through A7.
| align="light" | When D13 is high level, LED will be on; when it is low level, LED will be off


|-
|-
| align="center" | '''13'''
| align="center" | '''13'''
| align="center" | '''5V pin'''
| align="center" | '''ON Indicator'''
| align="light" | Provides 5V voltage output
| align="light" | LED is on when control board is plugged in power, otherwise, it will be off
|-
|-
| align="center" | '''14'''
| align="center" | '''14'''
| align="center" | '''GND'''
| align="center" | '''TX Indicator'''
| align="light" | Ground pin
| align="light" | When Arduino board communicates via serial port and sends the message, TX led will flash
|-
|-


| align="center" | '''15'''
| align="center" | '''15'''
| align="center" | '''VIN'''  
| align="center" | '''RX Indicator'''  
| align="light" | Input an external voltage DC7-12V to power the board.
| align="light" | When Arduino board communicates via serial port and receive the message, RX led will flash.
|-
|-


Line 122: Line 122:


| align="center" | '''17'''
| align="center" | '''17'''
| align="center" | '''CH340G'''
| align="center" | '''Micro USB'''
| align="light" | USB-to-serial port chip, converting the USB signal into Serial port signal.
| align="light" | Supply power for control board and upload code
|-
|-


| align="center" | '''18'''
| align="center" | '''18'''
| align="center" | '''AMS1117'''
| align="center" | '''USB to serial chip'''
| align="light" | Convert the external voltage input DC7-12V into DC5V, then transfer it to the processor and other elements.
| align="light" | CH340G, transform USB signals of computer to serial signals
|-
|-
|}
|}

Revision as of 13:28, 29 April 2021


0502-1.png

Introduction

The mega 2560 control board, among the series of MCUs , is the most popular since it has numerous pins. However, a substantial of pins don’t meet the space demand of DIY design. To tackle this issue, we roll out the Keyestudio MEGA 2560 PRO development board. In fact, its use method is as same as the official mega board, in addition to the different volume.

Its processor core is ATMEGA2560-16AU. In the meantime, it has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 channel serial communication ports, a USB connection, 1 ICSP header, and a reset button. And all ports are extended by pins with the interval of 2.54mm. What’s more, you can burn the firmware for ATMEGA2560-16AU through the built-in ICSP port. Luckily, the firmware of this chip is burnt well before delivery, therefore, you don’t need to burn firmware.

The power can be supplies through USB cable, port 5V , GND(DC 5V), as well as Vin GND (DC 7-12V).


Specification

  • Microcontroller: ATMEGA2560-16AU
  • USB to serial chip:CH340G
  • 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


Pin Interfaces:


0502-2.png


1 External Power Ports External input: DC 7-12V
2 Ground GND
3 LED indicator(TX) 5V
4 3.3V Provide DC 3.3V output voltage
5 AREF Analog reference. Used to set the external reference voltage(0-5V)
6 Reset Button Port
Can be connected to press button, as same as reset button
7 Serial communication port The default serial communication port,

RX responds to D0(digital port), TX responds to D1(digital port)

8 Digital Ports Have 54 digital input/output pins (of which 15 can be used as PWM outputs). These pins can be configured as digital input pin to read the logic value (0 or 1). Or used as digital output pin to drive different modules like LED, relay, etc.
9 Analog Ports 16 analog pins (A0-A15)
10 ATMEGA2560(Microcontroller) Each board has its own microcontroller.

The MCU of this board is ATMEGA2560-16AU.

11 ICSP Pin the AVR, an Arduino micro-program header consisting of MOSI, MISO, SCK, RESET, VCC, and GND.

It is often called the SPI (serial peripheral interface) and can be considered an "extension" of the output. In fact, slave the output devices to the SPI bus host.When connecting to PC, program the firmware to ATMEGA2560-16AU.

12 L Indicator When D13 is high level, LED will be on; when it is low level, LED will be off
13 ON Indicator LED is on when control board is plugged in power, otherwise, it will be off
14 TX Indicator When Arduino board communicates via serial port and sends the message, TX led will flash
15 RX Indicator When Arduino board communicates via serial port and receive the message, RX led will flash.
16 Reset Button Used to reset the control board
17 Micro USB Supply power for control board and upload code
18 USB to serial chip CH340G, transform USB signals of computer to serial signals