28BYJ-48 Stepper motor basics

28BYJ-48 is a low cost stepper motor with a reduction system. 28BYJ48 is a low cost and low torque motor. Therefore this motor isn’t suitable for heavy load applications.

For the best driver of 28BYJ-48 stepper motor is L293D from ST Microelectronics and of course an Arduino for logic programing.

Upload below code into an arduino UNO/Nano controller and see your stepper motor swinging smootly clockwise and counterclockwise in a minute.

// Include the Arduino Stepper Library
#include <Stepper.h>

// Number of steps per output rotate
const int stepsPerRevolution = 200;

// Connection L293D Arduino
Stepper myStepper(stepsPerRevolution, 11, 10, 9, 8);

void setup()
  // set the speed according to 20rpm:
  // initialize the serial port for debuging

void loop()
  // step one revolution in one direction:
  Serial.println("rotate clockwise");

// step one revolution in the other direction:
Serial.println("rotate counterclockwise");

// Have fun!

Leave a Reply

Your email address will not be published. Required fields are marked *