Interfacing of Unipolar and Bipolar Stepper Motor with Arduino

In this article we are going to interface unipolar and bipolar stepper motor and arduino using ULN2003 and L293D. The motor we are going to interface are MITSUMI M42SP-4NP stepping motor and 28BYJ-48 steeper motor

Introduction Stepping motor | Interfacing of Unipolar and Bipolar Stepper Motor with Arduino

An electric motor that rotates in a series of equal steps, each step controlled by a digital input signal, stepping motor are used in most electromechanical devices. Also called stepper motor. A stepper motor is an incremental motion machine i.e. the motor which turns in discrete movement (called the steps) is known as the stepper motor. Stepper motor does not rotate continuously as a conventional motor does.

Operation of stepper motor | Interfacing of Unipolar and Bipolar Stepper Motor with Arduino

The principle of operation of a stepper motor can be easily explained by considering a series of solenoids of electromagnetism arranged in a circle and an iron bar (rotor). When their solenoids are energized in sequence, the MMF developed in them interact with the iron bar (or rotor) and cause it to turn either in clockwise or counter-clockwise direction, depending upon the switching sequence.

IN this article we are controlling two stepper motor i.e. unipolar motor (28BYJ-48 stepper motor) and bipolar motor (MITSUMI M42SP-4NP).

Bipolar motor has two coils with four connectors where unipolar motor have four coils with five connectors. One end of each coil of unipolar motor is tied to VCC (say +5V) and other ends are taken out as shown in figure below. Before proceeding to circuit and programming lets identifies the pin of stepper motor.

Checkout other projects using stepper motor posted in bestengineeringprojects,com

  1. Microcontroller AT89C51 based Metro Train Prototype
  2. Light operated internal door latch

Pin identification of stepper motor

There are two method of identification of pin of each coil

  1. Using LED: This method works with bipolar motors that have four wires, it is necessary to identify which wires corresponding to each of the coils. This is easy to do we need an LED with connector. All we have to do is to test the different wires to see if the LED lights up when we moved motor. When the LED does not light up even we move the motor, these two coils does not correspond to the same coil. Similarly, if the LED light up then the corresponding wire is of same coil.
  2. Using Multimeter: Check for continuity test of each wire. Following steps are used to identify the coils
  • Adjust the multimeter in continuity mode.
  • Check each connector corresponding to other connector.
  • If the resistance between two connectors is low or multimeter start to beep, these two connectors are corresponding to same coil.
  • If the resistance between two connectors is infinity, these two connectors are corresponding to same coil.

Circuit Description Interfacing of Unipolar and Bipolar Stepper Motor with Arduino

In this tutorial we are interfacing two different stepper motor thus we divide the description into two parts i.e. Unipolar Stepper motor interface with arduino and Bipolar stepper motor interfacing with arduino

author prototype of interfacing of m42sp-4np with ardino
dav

Bipolar Stepper Motor (MITSUMI M42SP-4NP) interface with arduino using L293D

The circuit of interfacing of bipolar stepper motor and arduino is shown in figure 1. This circuit is built around arduino uno and L293D. Four pin 4, 5, 12 and 13 is connected to ground where pin 1, 8, 9 and 16 is connected +5V supply of arduino. IN1, IN2, IN3 and IN4 is connected to arduino digital pin D11, D10, D9 and D8 respectively where output pin OUT1, OUT2, OUT3 and OUT4 are connected four of stepper motor as shown in figure 1.

interfacing of bipolar stepper motor m42sp-4np with arduino

Unipolar Stepper motor (28BYJ-48) interface with arduino using ULN2003A

The circuit of interfacing of unipolar stepper motor and arduino is shown in figure 2. This circuit is built around arduino uno, ULN2003A, resistor and LED. ULN2003A is basically a Darlington Array IC and it consist seven NPN Darlington pair transistor capable of operating low voltage and low current motor. As it contains 7 NPN transistor thus 7 connector motor can be derived using this IC. Here we are driving unipolar stepper motor and it have four signal pin and a power supply pin. Thus, we need four arduino digital pin in order to drive this unipolar stepper motor.

interfacing of unipolar stepper motor 28byj-48 with arduino

The four-digital pin of arduino D11, D10, D9 and D8 is connected to 1B, 2B, 3B and 4B of IC ULN2003A respectively. The four-output pin of IC ULN2003A 1C, 2C, 3C and 4C are connected to one end of four coil of stepper motor as shown in above circuit diagram. Four LEDs are also connected to the pin of stepper motor through current limiting resistors. Pin 9 of IC ULN2003A is connected to common pin of coil.

interfacing of 28byj-48 with arduino
btr

Software Code: The software code of interfacing stepper motor with arduino is written in arduino programming language and compiled using arduino IDE.


Note: Arduino code for both circuit is same and no need to modify.

Leave a Comment