Controlling Stepper Motors


This Article demonstrate how to control a stepper Motor using Arduino Microcontroller by specifying an angle from the serial monitor.
what  i want to achieve is enter a certain angle i want my motor to turn on the Serial monitor the motor will rotate to that angle relative to it previous position

Things needed

  1. Stepper Motor (28BYJ-48)
  2. Stepper Motor Driver
  3. Arduino
  4. Breadboard and some Jumpers

Stepper Motor


The 28BYJ-48 is a small stepper motor suitable for a large range of applications.
The datasheet for the 28BYJ-48 stepper motor specified this values
Rated voltage : 5VDC
Number of Phase 4
Speed Variation Ratio 1/64
Stride Angle 5.625° /64
Frequency 100Hz

The real step angle for the motor is 5.625° however the employs gears with gear ratio of 1:64 to  further reduce the angle to 5.625/64 = 0.0879°

the resolution of the motor(Step per revolution) = 360/step angle or 360/0.0879 = 4096 steps/revolution.

Switching sequence for Half Stepping (1 or 2 phase ON)
1
2
3
4
5
6
7
8
IN1
ON
ON
OFF
OFF
OFF
OFF
OFF
ON
IN2
OFF
ON
ON
ON
OFF
OFF
OFF
OFF
IN3
OFF
OFF
OFF
ON
ON
ON
OFF
OFF
IN4
OFF
OFF
OFF
OFF
ON
OFF
ON
ON

Since there are 8 sequence of steps for every 1 switching cycle we will require 4096/8 = 512 switching cycles to make 1 complete revolution( 360° turn)
the swit  
if motor pulse frequency is below motor frequency that is 100 Hz the motor will not move

Stepper motor Driver

Mazitek Stepper Motor Driver
Stepper Motor Driver using ULN2003A

The drive module uses ULN2003A devices  which are high-voltage, high-current
Darlington transistor arrays. Each consists of seven NPN Darlington pairs that feature high-voltage outputs with common-cathode clamp diodes for switching inductive loads.

Hardware Connection


connect IN1 - IN4 to arduino pin 8,9,10,11 you can use different pins if you want but you have change them in the code too

Coding





Controlling Stepper Motors Controlling Stepper Motors Reviewed by Zakaria Mohammed on October 30, 2017 Rating: 5

No comments :

Powered by Blogger.