Interfacing 28-BYJ48 Unipolar stepper motor with evive

About This Tutorial
In this tutorial we will interface 28-BYJ48 Unipolar stepper motor with evive and we will rotate stepper motor in clockwise and counter-clockwise direction
Tutorial Info

Components Required

Image Component Quantity Available in Kit
evive 1
USB A-B Cable 1
Male to Female Jumper Cable 10cm 1
  • None


Stepper Motor is a motor controlled by a series of electromagnetic coils. The center shaft has a series of magnets mounted on it, and the coils surrounding the shaft are alternately given current or not, creating magnetic fields which repulse or attract the magnets on the shaft, causing the motor to rotate. In this tutorial, we will be using “28-BYJ48” Unipolar stepper motor

There are two basic types of stepper motors

  • Unipolar stepper motor
  • Bipolar stepper motor

Unipolar stepper motor


The unipolar stepper motor has five or six wires and four coils (actually two coils divided by center connections on each coil). The center connections of the coils are tied together and used as the power connection. They are called unipolar steppers because power always comes in on this one pole.

Bipolar stepper motor

A bipolar stepper motor has one winding per stator phase. A two-phase bipolar stepper motor will have 4 leads. In a bipolar stepper, we don’t have a common lead like in a unipolar stepper motor. Hence, there is no natural reversal of the current direction through the winding. A bipolar stepper motor has an easy wiring arrangement but its operation is a little complex. In order to drive a bipolar stepper, we need a driver IC with an internal H bridge circuit. This is because, in order to reverse the polarity of stator poles, the current needs to be reversed. This can only be done through an H bridge. 

ULN2003 Stepper driver

The ULN2003A contains seven darlington transistor drivers and is somewhat like having seven TIP120 transistors all in one package.T he ULN2003A can pass up to 500 mA per channel and has an internal voltage drop of about 1V when on. It also contains internal clamp diodes to dissipate voltage spikes when driving inductive loads To control the stepper, apply the voltage to each of the coils in a specific sequence

Circuit diagram


  1. Connect “28-BYJ48” stepper motor 5 wire female bus with “ULN2003” stepper motor driver male bus as shown in figure
  2. Connect pin having “ +” sign on  “ULN2003” stepper motor driver to “VCC” of evive
  3. Connect pin having “-” sign on “ULN2003” stepper motor driver to “GND” of evive 
  4. Connect “IN1”  to digital pin number  7 of evive
  5. Connect “IN2” to digital pin number  6 of evive
  6. Connect “IN3” to digital pin number  5 of evive
  7. Connect “IN4” to digital pin number  4 of evive

Arduino code

Expected Result

Share this Tutorial
Share on facebook
Share on twitter
Share on pinterest
Share on reddit
Share on print
Featured Projects

Leave a Reply