28BYJ-48 5V Arduino Uno/Mega Shield

Summary

The Arduino Uno/Mega stepper shield uses ULN2003A driver IC’s to power the stepper motors. Controlling the motors can easily be done using compatible Arduino libraries for the 28BYJ-48 5V stepper motors or writing your own code. The silk screen numbers in front of the white JST connectors show which IO pins from the Arduino control the corresponding motor coil. Red LED’s in front of the JST connector show which coil of the motor has power.

Pinout
Motor 1:
  Coil 1 -> D2
  Coil 2 -> D3
  Coil 3 -> D4
  Coil 4 -> D5
  5V -> 5V

Motor 2:
  Coil 1 -> D6
  Coil 2 -> D7
  Coil 3 -> D8
  Coil 4 -> D9
  5V -> 5V

Motor 3:
  Coil 1 -> D10
  Coil 2 -> D11
  Coil 3 -> D12
  Coil 4 -> D13
  5V -> 5V
Quick Setup

Align the stepper motor shield pins with the sockets on the Arduino Uno or Arduino Mega Board. The Electreim logo on top of the board should point towards the USB port on the Arduino Uno/Mega board.

Plug in up to three stepper motors into the white JST connectors.

Connect the Arduino USB to a computer and open the Arduino IDE software.

Open the example file: File > Examples > Stepper > stepper_oneRevolution

Change the following lines:

const int stepsPerRevolution = 2048;
Stepper myStepper(stepsPerRevolution,2,4,3,5);
myStepper.setSpeed(15);

Choose the Arduino board type and corresponding port.

Arduino Uno: Tools > Boards > Arduino Uno
Arduino Mega: Tools > Boards > Arduino Mega or Mega 2560

The red LED’s on the shield should light up and the motor should start to spin if the Arduino sketch has successfully been uploaded to the Arduino. You are now ready to program the stepper motors for your next big project. Remember that you can use any stepper motor library that is compatible with the 28BYJ-48 5V stepper motors or even create your own.

Disable LED

To disable the red LED’s on the stepper motor shield, carefully cut the jumper pads located below the 5V marking next to the red LED’s. If at any point you want to enable the LED’s again, simply add a little solder to bridge the two pads together.

Pin Sockets

The 28BYJ-48-5V Arduino shield comes with 4 pin sockets that can be soldered to the shield for easy use with jumper wires. This can be useful if you still want to use the Arduino to control the stepper motors while using the other Arduino pins such as the analogue inputs. Wires can also be directly soldered into holes for projects that are more permanent or don’t want to deal with the hassle of jumper wires.