

The Mega2560 R3 Pro CH340G is a versatile microcontroller board based on the ATmega2560, which is well-suited for projects requiring a large number of I/O pins and more memory space. It is compatible with most shields designed for the Arduino Mega2560 R3. The inclusion of the CH340G USB-to-serial converter makes it an economical alternative to other boards for hobbyists and educators.








| Pin Number | Function | Description |
|---|---|---|
| 1-54 | Digital I/O | Digital pins which can be used as input or output |
| A0-A15 | Analog Input | Analog pins which can be used to read analog voltages |
| 5V | Power Output | Provides 5V output (subject to current limitations) |
| 3.3V | Power Output | Provides 3.3V output (subject to current limitations) |
| GND | Ground | Ground pins |
| RST | Reset | Used to reset the microcontroller |
| TX0, RX0 | Serial 0 | Used for serial communication |
| SDA, SCL | I2C Data & Clock | Used for I2C communication |
| AREF | Analog Reference | Used to provide reference voltage for analog inputs |
| 3V3 | 3.3V Supply | 3.3V regulated output from the onboard regulator |
Powering the Board:
Connecting I/O:
pinMode(pin, mode);.Uploading Sketches:
// Blink the onboard LED connected to pin 13
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for a second
}
Note: The example code provided is for the Arduino UNO but is also compatible with the Mega2560 R3 Pro CH340G, as they share the same pin for the built-in LED.
For more advanced usage and additional examples, refer to the Arduino official documentation and community forums.