

The Arduino 2560 của Sơn is a microcontroller board based on the ATmega2560. It features 54 digital input/output pins (15 of which can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. This board is ideal for complex projects requiring multiple I/O pins, such as robotics, IoT systems, and advanced prototyping.








| Specification | Value |
|---|---|
| Microcontroller | ATmega2560 |
| Operating Voltage | 5V |
| Input Voltage (recommended) | 7-12V |
| Input Voltage (limit) | 6-20V |
| Digital I/O Pins | 54 (15 PWM outputs) |
| Analog Input Pins | 16 |
| DC Current per I/O Pin | 20 mA |
| Flash Memory | 256 KB (8 KB used by bootloader) |
| SRAM | 8 KB |
| EEPROM | 4 KB |
| Clock Speed | 16 MHz |
| USB Connection | Type-B |
| Pin Number | Functionality |
|---|---|
| 0-1 | UART0 (Serial Communication) |
| 2-13 | General Digital I/O, PWM (2, 3, 5, 6, 9, 10, 11) |
| 14-21 | UART1, UART2, UART3 (Serial Communication) |
| 22-53 | General Digital I/O |
| Pin Number | Functionality |
|---|---|
| A0-A15 | Analog Input (10-bit resolution) |
| Pin Name | Description |
|---|---|
| VIN | Input voltage to the board (7-12V) |
| 5V | Regulated 5V output |
| 3.3V | Regulated 3.3V output |
| GND | Ground |
| IOREF | Voltage reference for I/O pins |
Powering the Board:
Programming the Board:
Connecting Components:
// This example code blinks an LED connected to pin 13 on the Arduino 2560 của Sơn.
// The LED will turn on for 1 second, then off for 1 second, repeatedly.
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output pin
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
The board is not detected by the computer:
Sketch upload fails:
Components connected to the board are not working:
The board overheats:
Q: Can I power the Arduino 2560 của Sơn with a battery?
A: Yes, you can use a 9V battery connected to the DC power jack or the VIN pin. Ensure the voltage is within the recommended range.
Q: How do I reset the board?
A: Press the reset button on the board, or use the reset pin by momentarily connecting it to GND.
Q: Can I use the Arduino 2560 của Sơn with shields designed for other Arduino boards?
A: Yes, the Arduino 2560 is compatible with most Arduino shields, but ensure the shield supports the Mega's pin layout.
Q: What is the maximum current the board can supply?
A: The 5V pin can supply up to 500 mA when powered via USB, or up to 1A when using an external power supply.