Friday, June 19, 2015

Project to Control Stepper Motor using ULN2003 and AT89C51 Microcontroller

Eltronicschool. - One IC which used to drive DC motor is ULN2003. In here we will show you one project on how to control Stepper Motor using ULN2003 and AT89C51 microcontroller. In here you also can change the AT89C51 with other type like AT89S51 with in system programming (ISP) that used until this day. The circuit schematic for interfacing Microcontroller AT89C51, ULN2003, and Stepper Motor like in figure 1 below.

Circuit Schematic

Figure 1. Interfacing ULN2003, AT89C51, and Stepper Motor
(Source: EngineersGarage)

Component Parts
  1. Resistors
  2. Capacitors
  3. X-Tal 12MHz
  4. AT89C51
  5. ULN2003
  6. Stepper Motor

Circuit schematic like in figure 1 above is interfacing  ULN2003, AT89C51, and Stepper Motor to Control Stepper Motor using ULN2003 and AT89C51 Microcontroller. This project is an extension to two-phase Unipolar Stepper motor interfacing with AT89C51. In the previous project, transistor switches were used to interface the stepper motor with the microcontroller. Here the transistors have been replaced by using a ULN2003 IC to drive the stepper with 8051 microcontroller.

 Stepper motor is a variable reluctance DC motor. When correct input sequence of signal is given to the motor, it starts rotation in steps. (For more detail refer Unipolar Stepper motor interfacing with microcontroller AT89C51).

ULN2003 is high voltage, high current Darlington arrays each containing seven open collector Darlington pairs with common emitters. Here it is used as a current driving IC. This IC is required because stepper motor require more than 60mA current and since controller doesn’t work at this current rating so this IC provides high current to the stepper motor.
In the circuit port P2 as output port which provide input sequence to four input pins of ULN3003 and output of ULN2003 drives the motor. And you can read more this project using link here.

Source Code

Please click link below to download source code to Control Stepper Motor using ULN2003 and AT89C51 Microcontroller .

Thank you for your coming here in site, we hope the article above will help you to know more about your an electronic circuit design and software in this time, etc. Please comment here when you want to share and other. Thank you.

1 comment:

  1. The AT89C51 microcontroller provides a flexible and inexpensive solution for many embedded control systems. Product details can be found at:


Thank's for your reading in this article, please don't forget to comment.