SlideShare a Scribd company logo
1 of 10
Date: 10/12/2013

Al-Azhar University-Gaza
Faculty of Engineering & Information Technology
Mechatronices engineering
Microprocessors & Interfacing
(ITCE 3306)
LAB NO.6
Bipolar stepper motor
DC motor
Prepared By:
Ronza sameer Abu jayyab
No. 20111511
Submitted To:
Eng. Mahmoud I. Hasanain
First semester
2013/2014
 Introduction:
Bipolar stepper motor which move depend on steps and DC motor which move
easily without steps in its shaft these two types of motor have a lot of usage in
our life so it's better as engineering university life to know how these two motor
work.

 Objectives:
1. Known how bipolar stepper motor work, and how i can connect it in my
circuit also which decoder I should use with this motor.
2. Incidence knowledge about how DC motor can work, how I can put it in
my circuit , and also whish decoder useful I can use with it.
3. So, I can also answer about how I can turn these two motor with clock
wise and with control clock wise.
4. Be enable to deal with L293 driver.

 Background:
Stepper motor:
A stepper motor (or step motor) is a brushless DC electric motor that divides a
full rotation into a number of equal steps. The motor's position can then be
commanded to move and hold at one of these steps without any feedback
sensor (an open-loop controller), as long as the motor is carefully sized to the
application.
There are two basic winding arrangements for the electromagnetic coils in a
two phase stepper motor: bipolar and unipolar.
Bipolar motor
Bipolar motors have a single winding per phase. The current in a winding
needs to be reversed in order to reverse a magnetic pole, so the driving circuit
must be more complicated, typically with an H-bridge arrangement (however
there are several off-the-shelf driver chips available to make this a simple
affair). There are two leads per phase, none are common.[1]
A bipolar permanent magnet motor consists of a rotating permanent magnet
surrounded by stator poles carrying the windings.
Bidirectional drive current is used and the motor is stepped by
switching the windings in sequence. For a motor of this type there are three
possible drive sequences.
Figure no.1: bipolar stepper motor

Figure no.2 : bipolar rotation
L293D driver:
L293D is a dual H-bridge motor driver integrated circuit (IC). Motor
drivers act as current amplifiers since they take a low-current control
signal and provide a higher-current signal. This higher current signal is
used to drive the motors.
L293D contains two inbuilt H-bridge driver circuits. In its common mode of
operation, two DC motors can be driven simultaneously, both in forward and
reverse direction. The motor operations of two motors can be controlled by
input logic at pins 2 & 7 and 10 & 15. Input logic 00 or 11 will stop the
corresponding motor. Logic 01 and 10 will rotate it in clockwise and
anticlockwise directions, respectively.
Enable pins 1 and 9 (corresponding to the two motors) must be high for
motors to start operating. When an enable input is high, the associated driver
gets enabled. As a result, the outputs become active and work in phase with
their inputs. Similarly, when the enable input is low, that driver is disabled,
and their outputs are off and in the high-impedance state.[2]

Figure no.3 : L293D driver.

Pin No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Function
Enable pin for Motor 1; active high
Input 1 for Motor 1
Output 1 for Motor 1
Ground (0V)
Ground (0V)
Output 2 for Motor 1
Input 2 for Motor 1
Supply voltage for Motors; 9-12V (up to 36V)
Enable pin for Motor 2; active high
Input 1 for Motor 1
Output 1 for Motor 1
Ground (0V)
Ground (0V)
Output 2 for Motor 1
Input2 for Motor 1
Supply voltage; 5V (up to 36V)

Figure no.4 : Pin Description

Name
Enable 1,2
Input 1
Output 1
Ground
Ground
Output 2
Input 2
Vcc 2
Enable 3,4
Input 3
Output 3
Ground
Ground
Output 4
Input 4

Vcc 1
H bridge :
An H bridge is an electronic circuit that enables a voltage to be applied
across a load in either direction. These circuits are often used
in robotics and other applications to allow DC motors to run forwards and
backwards.
Most DC-to-AC converters (power inverters), most AC/AC converters, the
DC-to-DC push–pull converter, most motor controllers, and many other
kinds of power electronics use H bridges. In particular, a bipolar stepper
motor is almost invariably driven by a motor controller containing two H
bridges.[3]

Figure no.5 : bipolar stepper motor with L293D driver.

DC motor:
A DC motor is a mechanically commutated electric motor powered from
direct current (DC). The stator is stationary in space by definition and
therefore the current in the rotor is switched by the commutator to also be
stationary in space. This is how the relative angle between the stator and rotor
magnetic flux is maintained near 90 degrees, which generates the maximum
torque.
DC motors have a rotating armature winding (winding in which a voltage is
induced) but non-rotating armature magnetic field and a static field winding
(winding that produce the main magnetic flux) or permanent magnet. Different
connections of the field and armature winding provide different inherent
speed/torque regulation characteristics. The speed of a DC motor can be
controlled by changing the voltage applied to the armature or by changing the
field current. The introduction of variable resistance in the armature circuit or
field circuit allowed speed control. Modern DC motors are often controlled by
power electronics systems called DC drives.
The introduction of DC motors to run machinery eliminated the need for local
steam or internal combustion engines, and line shaft drive systems. DC motors
can operate directly from rechargeable batteries, providing the motive power
for the first electric vehicles. Today DC motors are still found in applications
as small as toys and disk drives, or in large sizes to operate steel rolling mills
and paper machines.[4]

Figure no.6 : DC motor

Figure no.7 : DC motor with L293D driver

Figure no.8 : DC motor rotation.

 Experiment:
 Control circuit:

Figure no.9 : bipolar stepper motor circuit.
 Experiment no.1:
Bipolar stepper motor (move with clock wise n control clock wise).
Control code:

Figure no.10 : bipolar stepper motor control code in VB.
Dim i As Integer
Private Sub Command1_Click()
Timer1.Enabled = True
Timer2.Enabled = False
Timer1.Interval = 1
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
Timer2.Enabled = True
Timer2.Interval = 1
End Sub
Private Sub Form_Load()
ntport1.address = 888
End Sub
Private Sub Timer1_Timer()
If i = 0 Then ntport1.Value = 1
If i = 1 Then ntport1.Value = 2
If i = 2 Then ntport1.Value = 4
If i = 3 Then ntport1.Value = 8
i=i+1
If i > 3 Then i = 0
End Sub
Private Sub Timer2_Timer()
If i = 0 Then ntport1.Value = 8
If i = 1 Then ntport1.Value = 4
If i = 2 Then ntport1.Value = 2
If i = 3 Then ntport1.Value = 1
i=i+1
If i > 3 Then i = 0
End Sub
Comment:
We are moved bipolar stepper motor clock wise and control clock wise
by make timer and defined variable I as integer which will increase after
finish one turn to make motor turn Sequence. We give first pin of motor
value (1), the second pin value (2), the third pin has value (4), and the
fourth and final pin has value (8) all to move with clock wise.
To move with control clock wise we will reverse the value.

 Experiment no.2:
Bipolar stepper motor (move with clock wise n control clock wise slow and fast).
Control code:

Figure no.11 : bipolar stepper motor control code in VB.
Dim i As Integer
Private Sub Command1_Click()
Timer1.Enabled = True
Timer2.Enabled = False
Timer1.Interval = 1
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
Timer2.Enabled = True
Timer1.Interval = 1
End Sub
Private Sub Command3_Click()
Timer1.Enabled = True
Timer2.Enabled = False
Timer1.Interval = 100
End Sub
Private Sub Command4_Click()
Timer1.Enabled = False
Timer2.Enabled = True
Timer1.Interval = 100
End Sub
Private Sub Form_Load()
ntport1.address = 888
End Sub
Private Sub Timer1_Timer()
If i = 0 Then ntport1.Value = 1
If i = 1 Then ntport1.Value = 2
If i = 2 Then ntport1.Value = 4
If i = 3 Then ntport1.Value = 8
i=i+1
If i > 3 Then i = 0
End Sub
Private Sub Timer2_Timer()
If i = 0 Then ntport1.Value = 8
If i = 1 Then ntport1.Value = 4
If i = 2 Then ntport1.Value = 2
If i = 3 Then ntport1.Value = 1
i=i+1
If i > 3 Then i = 0
End Sub
Comment:
This code control bipolar stepper motor to move in clock wise and
control clock wise by reduce the interval of turn or increase this interval.

 Experiment no.3:
DC motor (move with clock wise n control clock wise).
Control code:

Figure no.12: DC motor control code by VB
Private Sub Command1_Click()
ntport1.Value = 1
End Sub
Private Sub Command2_Click()
ntport1.Value = 2
End Sub
Private Sub Command3_Click()
ntport1.Value = 0
End Sub
Private Sub Form_Load()
ntport1.address = 888
End Sub
Comment:
DC motor turn without steps so we don't have timer to give value for
each pin in motor we just have two value first one to turn it and the
second one to stop the motor movement.
In this code we want to turn DC motor three command, first one to turn
it with clock wise, the second one with control clock wise, and the third
one to stop its movement.
 Experiment no.4:
Control code:
Comment:

 Conclusion:
Finally after do test for bipolar stepper motor and DC motor to turn with clock wise and
control clock wise, we enable to use these motors in our projects.
and now there are questions remains is going on in our minds,
firstly, how can I control the steppe motor speed?
I can do that by controlling of on and off (pulse).
Secondly, how can I know which pins connect with each other by H-bridge?
I can know that by but parties of hour measurement on the pins, if it make voice
Then two pins are connected to each other.

 References:
[4] http://en.wikipedia.org/wiki/DC_motor
[3] http://en.wikipedia.org/wiki/H_bridge
[2]http://www.engineersgarage.com/electronic-components/l293d-motor-driver-ic
[1] http://en.wikipedia.org/wiki/Stepper_motor

More Related Content

What's hot

J0502 01 5762
J0502 01 5762J0502 01 5762
J0502 01 5762
IJMER
 
Embedded controller using motion control of motor
Embedded controller using motion control of motorEmbedded controller using motion control of motor
Embedded controller using motion control of motor
IAEME Publication
 
bidirectional report
bidirectional reportbidirectional report
bidirectional report
Hasan baig
 
Microstepping of stepper Motor
Microstepping of stepper MotorMicrostepping of stepper Motor
Microstepping of stepper Motor
ANUP PALARAPWAR
 
Presentation bipolar stepper motor driver circuit
Presentation bipolar stepper motor driver circuitPresentation bipolar stepper motor driver circuit
Presentation bipolar stepper motor driver circuit
Sarah Krystelle
 

What's hot (19)

Dc motor speed controller by pwm technique
Dc motor speed controller by pwm techniqueDc motor speed controller by pwm technique
Dc motor speed controller by pwm technique
 
Stepper Motor Control System
Stepper Motor Control SystemStepper Motor Control System
Stepper Motor Control System
 
J0502 01 5762
J0502 01 5762J0502 01 5762
J0502 01 5762
 
Analysis and control of four quadrant operation of three phase brushless dc (...
Analysis and control of four quadrant operation of three phase brushless dc (...Analysis and control of four quadrant operation of three phase brushless dc (...
Analysis and control of four quadrant operation of three phase brushless dc (...
 
Speed Control Of DC motor By Using PWM Technique
Speed Control Of DC motor By Using PWM TechniqueSpeed Control Of DC motor By Using PWM Technique
Speed Control Of DC motor By Using PWM Technique
 
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FG
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FGStepping Motor Driver IC Using PWM Chopper Type: TB62209FG
Stepping Motor Driver IC Using PWM Chopper Type: TB62209FG
 
Embedded controller using motion control of motor
Embedded controller using motion control of motorEmbedded controller using motion control of motor
Embedded controller using motion control of motor
 
Stepper speed control
Stepper speed controlStepper speed control
Stepper speed control
 
Speed control of sensorless BLDC motor with two side chopping PWM
Speed control of sensorless BLDC motor with two side chopping PWMSpeed control of sensorless BLDC motor with two side chopping PWM
Speed control of sensorless BLDC motor with two side chopping PWM
 
bidirectional report
bidirectional reportbidirectional report
bidirectional report
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
visible light follower robot by nagaraju.m
visible light follower robot by nagaraju.mvisible light follower robot by nagaraju.m
visible light follower robot by nagaraju.m
 
Microstepping of stepper Motor
Microstepping of stepper MotorMicrostepping of stepper Motor
Microstepping of stepper Motor
 
Presentation bipolar stepper motor driver circuit
Presentation bipolar stepper motor driver circuitPresentation bipolar stepper motor driver circuit
Presentation bipolar stepper motor driver circuit
 
Micro stepping mode for stepper motor
Micro stepping mode for stepper motorMicro stepping mode for stepper motor
Micro stepping mode for stepper motor
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Dc motor speed and direction contrlling using IR remote
Dc motor speed and direction contrlling using IR remote Dc motor speed and direction contrlling using IR remote
Dc motor speed and direction contrlling using IR remote
 
Speed and direction control of dc motor using android mobile application grv ...
Speed and direction control of dc motor using android mobile application grv ...Speed and direction control of dc motor using android mobile application grv ...
Speed and direction control of dc motor using android mobile application grv ...
 
To control the dc motor speed using PWM from LabVIEW
To control the dc motor speed using PWM from LabVIEWTo control the dc motor speed using PWM from LabVIEW
To control the dc motor speed using PWM from LabVIEW
 

Similar to Report no.6..(bipolar motor n DC motor)

Report no.4(microprocessor)
Report no.4(microprocessor)Report no.4(microprocessor)
Report no.4(microprocessor)
Ronza Sameer
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
Journal For Research
 
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Enhmandah Hemeelee
 
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Enhmandah Hemeelee
 

Similar to Report no.6..(bipolar motor n DC motor) (20)

Presentation200 (1).ppt
Presentation200 (1).pptPresentation200 (1).ppt
Presentation200 (1).ppt
 
Report no.4(microprocessor)
Report no.4(microprocessor)Report no.4(microprocessor)
Report no.4(microprocessor)
 
Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...
 
Stepper Motor Drive For Position Control in Robotic Applications
Stepper Motor Drive For Position Control in Robotic ApplicationsStepper Motor Drive For Position Control in Robotic Applications
Stepper Motor Drive For Position Control in Robotic Applications
 
Stepper Motor
Stepper MotorStepper Motor
Stepper Motor
 
DC motor control using multiple switches
DC motor control using multiple switchesDC motor control using multiple switches
DC motor control using multiple switches
 
Automated ppt
Automated pptAutomated ppt
Automated ppt
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
 
An470
An470An470
An470
 
Ct36570573
Ct36570573Ct36570573
Ct36570573
 
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLERFOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
FOUR QUADRANT DC MOTOR SPEED CONTROL WITH MICROCONTROLLER
 
Motor driver IC
Motor driver ICMotor driver IC
Motor driver IC
 
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLERDC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY  PIC16F877A MICROCONTROLLER
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
 
My minor project
My minor projectMy minor project
My minor project
 
Matlab simulation on chopper based speed control of dc motor: A Review
Matlab simulation on chopper based speed control of dc motor: A ReviewMatlab simulation on chopper based speed control of dc motor: A Review
Matlab simulation on chopper based speed control of dc motor: A Review
 
03 TOTAL REPORT
03 TOTAL REPORT03 TOTAL REPORT
03 TOTAL REPORT
 
final yr project
final yr projectfinal yr project
final yr project
 
Motor driver ic
Motor driver icMotor driver ic
Motor driver ic
 
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
 
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
Programmable logic controllers (pl cs) (experiment _2)_bi-directional control...
 

Recently uploaded

Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Dipal Arora
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
lizamodels9
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
Matteo Carbone
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
daisycvs
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
dollysharma2066
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
Renandantas16
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 

Recently uploaded (20)

Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Falcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in indiaFalcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in india
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 

Report no.6..(bipolar motor n DC motor)

  • 1. Date: 10/12/2013 Al-Azhar University-Gaza Faculty of Engineering & Information Technology Mechatronices engineering Microprocessors & Interfacing (ITCE 3306) LAB NO.6 Bipolar stepper motor DC motor Prepared By: Ronza sameer Abu jayyab No. 20111511 Submitted To: Eng. Mahmoud I. Hasanain First semester 2013/2014
  • 2.  Introduction: Bipolar stepper motor which move depend on steps and DC motor which move easily without steps in its shaft these two types of motor have a lot of usage in our life so it's better as engineering university life to know how these two motor work.  Objectives: 1. Known how bipolar stepper motor work, and how i can connect it in my circuit also which decoder I should use with this motor. 2. Incidence knowledge about how DC motor can work, how I can put it in my circuit , and also whish decoder useful I can use with it. 3. So, I can also answer about how I can turn these two motor with clock wise and with control clock wise. 4. Be enable to deal with L293 driver.  Background: Stepper motor: A stepper motor (or step motor) is a brushless DC electric motor that divides a full rotation into a number of equal steps. The motor's position can then be commanded to move and hold at one of these steps without any feedback sensor (an open-loop controller), as long as the motor is carefully sized to the application. There are two basic winding arrangements for the electromagnetic coils in a two phase stepper motor: bipolar and unipolar. Bipolar motor Bipolar motors have a single winding per phase. The current in a winding needs to be reversed in order to reverse a magnetic pole, so the driving circuit must be more complicated, typically with an H-bridge arrangement (however there are several off-the-shelf driver chips available to make this a simple affair). There are two leads per phase, none are common.[1] A bipolar permanent magnet motor consists of a rotating permanent magnet surrounded by stator poles carrying the windings. Bidirectional drive current is used and the motor is stepped by switching the windings in sequence. For a motor of this type there are three possible drive sequences.
  • 3. Figure no.1: bipolar stepper motor Figure no.2 : bipolar rotation L293D driver: L293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as current amplifiers since they take a low-current control signal and provide a higher-current signal. This higher current signal is used to drive the motors.
  • 4. L293D contains two inbuilt H-bridge driver circuits. In its common mode of operation, two DC motors can be driven simultaneously, both in forward and reverse direction. The motor operations of two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Input logic 00 or 11 will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwise and anticlockwise directions, respectively. Enable pins 1 and 9 (corresponding to the two motors) must be high for motors to start operating. When an enable input is high, the associated driver gets enabled. As a result, the outputs become active and work in phase with their inputs. Similarly, when the enable input is low, that driver is disabled, and their outputs are off and in the high-impedance state.[2] Figure no.3 : L293D driver. Pin No 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Function Enable pin for Motor 1; active high Input 1 for Motor 1 Output 1 for Motor 1 Ground (0V) Ground (0V) Output 2 for Motor 1 Input 2 for Motor 1 Supply voltage for Motors; 9-12V (up to 36V) Enable pin for Motor 2; active high Input 1 for Motor 1 Output 1 for Motor 1 Ground (0V) Ground (0V) Output 2 for Motor 1 Input2 for Motor 1 Supply voltage; 5V (up to 36V) Figure no.4 : Pin Description Name Enable 1,2 Input 1 Output 1 Ground Ground Output 2 Input 2 Vcc 2 Enable 3,4 Input 3 Output 3 Ground Ground Output 4 Input 4 Vcc 1
  • 5. H bridge : An H bridge is an electronic circuit that enables a voltage to be applied across a load in either direction. These circuits are often used in robotics and other applications to allow DC motors to run forwards and backwards. Most DC-to-AC converters (power inverters), most AC/AC converters, the DC-to-DC push–pull converter, most motor controllers, and many other kinds of power electronics use H bridges. In particular, a bipolar stepper motor is almost invariably driven by a motor controller containing two H bridges.[3] Figure no.5 : bipolar stepper motor with L293D driver. DC motor: A DC motor is a mechanically commutated electric motor powered from direct current (DC). The stator is stationary in space by definition and therefore the current in the rotor is switched by the commutator to also be stationary in space. This is how the relative angle between the stator and rotor magnetic flux is maintained near 90 degrees, which generates the maximum torque. DC motors have a rotating armature winding (winding in which a voltage is induced) but non-rotating armature magnetic field and a static field winding (winding that produce the main magnetic flux) or permanent magnet. Different connections of the field and armature winding provide different inherent speed/torque regulation characteristics. The speed of a DC motor can be controlled by changing the voltage applied to the armature or by changing the field current. The introduction of variable resistance in the armature circuit or field circuit allowed speed control. Modern DC motors are often controlled by power electronics systems called DC drives. The introduction of DC motors to run machinery eliminated the need for local steam or internal combustion engines, and line shaft drive systems. DC motors
  • 6. can operate directly from rechargeable batteries, providing the motive power for the first electric vehicles. Today DC motors are still found in applications as small as toys and disk drives, or in large sizes to operate steel rolling mills and paper machines.[4] Figure no.6 : DC motor Figure no.7 : DC motor with L293D driver Figure no.8 : DC motor rotation.  Experiment:  Control circuit: Figure no.9 : bipolar stepper motor circuit.
  • 7.  Experiment no.1: Bipolar stepper motor (move with clock wise n control clock wise). Control code: Figure no.10 : bipolar stepper motor control code in VB. Dim i As Integer Private Sub Command1_Click() Timer1.Enabled = True Timer2.Enabled = False Timer1.Interval = 1 End Sub Private Sub Command2_Click() Timer1.Enabled = False Timer2.Enabled = True Timer2.Interval = 1 End Sub Private Sub Form_Load() ntport1.address = 888 End Sub Private Sub Timer1_Timer() If i = 0 Then ntport1.Value = 1 If i = 1 Then ntport1.Value = 2 If i = 2 Then ntport1.Value = 4 If i = 3 Then ntport1.Value = 8 i=i+1 If i > 3 Then i = 0 End Sub Private Sub Timer2_Timer() If i = 0 Then ntport1.Value = 8 If i = 1 Then ntport1.Value = 4 If i = 2 Then ntport1.Value = 2 If i = 3 Then ntport1.Value = 1 i=i+1 If i > 3 Then i = 0 End Sub
  • 8. Comment: We are moved bipolar stepper motor clock wise and control clock wise by make timer and defined variable I as integer which will increase after finish one turn to make motor turn Sequence. We give first pin of motor value (1), the second pin value (2), the third pin has value (4), and the fourth and final pin has value (8) all to move with clock wise. To move with control clock wise we will reverse the value.  Experiment no.2: Bipolar stepper motor (move with clock wise n control clock wise slow and fast). Control code: Figure no.11 : bipolar stepper motor control code in VB. Dim i As Integer Private Sub Command1_Click() Timer1.Enabled = True Timer2.Enabled = False Timer1.Interval = 1 End Sub Private Sub Command2_Click() Timer1.Enabled = False Timer2.Enabled = True Timer1.Interval = 1 End Sub Private Sub Command3_Click() Timer1.Enabled = True Timer2.Enabled = False Timer1.Interval = 100 End Sub Private Sub Command4_Click() Timer1.Enabled = False Timer2.Enabled = True Timer1.Interval = 100 End Sub Private Sub Form_Load() ntport1.address = 888
  • 9. End Sub Private Sub Timer1_Timer() If i = 0 Then ntport1.Value = 1 If i = 1 Then ntport1.Value = 2 If i = 2 Then ntport1.Value = 4 If i = 3 Then ntport1.Value = 8 i=i+1 If i > 3 Then i = 0 End Sub Private Sub Timer2_Timer() If i = 0 Then ntport1.Value = 8 If i = 1 Then ntport1.Value = 4 If i = 2 Then ntport1.Value = 2 If i = 3 Then ntport1.Value = 1 i=i+1 If i > 3 Then i = 0 End Sub Comment: This code control bipolar stepper motor to move in clock wise and control clock wise by reduce the interval of turn or increase this interval.  Experiment no.3: DC motor (move with clock wise n control clock wise). Control code: Figure no.12: DC motor control code by VB Private Sub Command1_Click() ntport1.Value = 1 End Sub Private Sub Command2_Click() ntport1.Value = 2 End Sub Private Sub Command3_Click() ntport1.Value = 0
  • 10. End Sub Private Sub Form_Load() ntport1.address = 888 End Sub Comment: DC motor turn without steps so we don't have timer to give value for each pin in motor we just have two value first one to turn it and the second one to stop the motor movement. In this code we want to turn DC motor three command, first one to turn it with clock wise, the second one with control clock wise, and the third one to stop its movement.  Experiment no.4: Control code: Comment:  Conclusion: Finally after do test for bipolar stepper motor and DC motor to turn with clock wise and control clock wise, we enable to use these motors in our projects. and now there are questions remains is going on in our minds, firstly, how can I control the steppe motor speed? I can do that by controlling of on and off (pulse). Secondly, how can I know which pins connect with each other by H-bridge? I can know that by but parties of hour measurement on the pins, if it make voice Then two pins are connected to each other.  References: [4] http://en.wikipedia.org/wiki/DC_motor [3] http://en.wikipedia.org/wiki/H_bridge [2]http://www.engineersgarage.com/electronic-components/l293d-motor-driver-ic [1] http://en.wikipedia.org/wiki/Stepper_motor