In: Electrical Engineering
I need simulation on protues of speed control of unipolar stepper motor using uno arduino. Must using protues..
To be able to control the bipolar stepper motor, two H-bridge circuits are required. In this example I’m going to use L293D quadruple half-H driver which can work as dual H-bridge driver. This chip is small, low cost and easy to use, these make it a good choice for students and hobbyists, in this blog, I used it in some DC motor control projects.
In the full step control mode always both windings are energized at the same time according to the following two tables where first table shows the driving sequence for one rotation direction and second table for the other direction:
All grounded terminals are connected together.
The L293D chip has 16 pins with 4 inputs (IN1, IN2, IN3 and IN4) and 4 outputs (OUT1, OUT2, OUT3 and OUT4). The 4 outputs are connected to the bipolar stepper motor.
The 4 inputs are connected as follows:
IN1 to Arduino pin 8
IN2 to Arduino pin 9
IN3 to Arduino pin 10
IN4 to Arduino pin 11
The L293D has 2 VCC pins: VCC1 (pin #16) and VCC2 (pin #8). VCC1 is connected to Arduino +5V pin. VCC2 is connected to another power source (positive terminal) with voltage equal to motor nominal voltage, it’s labeled in the circuit diagram as V_Motor (V_Motor = motor voltage). So if we have a stepper motor with nominal voltage of 5V we’ve to connect VCC2 to +5V (Arduino 5V output shouldn’t be used) and if the stepper motor nominal voltage is 12V we’ve to connect VCC2 to +12V (negative terminal of this source is connected to circuit ground)…
The 10k ohm potentiometer is used to control the speed of the stepper motor, its output pin is connected to Arduino analog pin 0.
The push button which is connected to Arduino pin 4 is used to change the rotation direction of the stepper motor.