EasyManua.ls Logo

Elegoo Mega2560 - Pinout and Usage; Arduino Connections

Elegoo Mega2560
224 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
195
/
223
V
CC1
V
CC2
I got fed up with indecipherable pinout diagrams within datasheets, so have designed my own that
I think gives more pertinent information.
There are 3 wires connected to the Arduino, 2 wires connected to the motor, and 1 wire connected
to a battery.
To use this pinout:
The left hand side deals with the first motor, the right hand side deals with a second motor.
Yes, you can run it with only one motor connected.
Arduino Connections
M1 PWM - connect this to a PWM pin on the Arduino. They're labelled on the 2560, pin 5 is
an example. Output any integer between 0 and 255, where 0 will be off, 128 is half speed and
3
14
1
1
16
1
0
2
15
1
0
M
1
4
13
M
5
12
6
11
2
3
1
0
7
8
10
9
1
0
1
0
M

Table of Contents