SlideShare a Scribd company logo
1 of 9
Download to read offline
CENTRE OF DIPLOMA STUDIES



COMPUTER ADDED DESIGN LABORATORY



   LABORATORY INSTRUCTION SHEET



                        DEK 3133
Subject Code and Name
                        MICROCONTROLLER

  Experiment Code       05

   Experiment Title     Introduction to Stepper Motor


    Course Code         DET/DEE/DEX
Document      Reference
                        No.                       RPP-05                  Page. Number              Page |1
                                                                          Edition                     1
                                                    LABORATORY            Revision No.                   4
                           Document Title
                                                     PRACTICUM            Effective Date             12/8/2010
                                                                          Amendment Date             12/8/2010

                                         SUBJECT INFORMATION

SUBJECT         : DEK 3133 MICROCONTROLLER

TOPIC           : Lab 5 – Introduction to Stepper Motor.

AIM             To apply the knowledge and understanding on theory and applications of Stepper Motor.



1     OBJECTIVES

        1.1   To understand the design of keypad.

        1.2   To determine and analyze the function of keypad.

        1.3   To understand the configuration of LCD.

2     EQUIPMENT

        2.1   PIC Development Board – PICDEV

        2.2   PIC16F877A

        2.3   MPLAB IDE Program

        2.4   Mikro C

        2.5   Proteus

        2.6   The PIC Development Board User manual

        2.7   Power supply 9V


3     THEORY

        3.1   STEPPER MOTOR


A stepper motor is a widely used device that translates electrical pulses into mechanical movement. In
applications such as disk drives, dot matrix printers, PCB drilling mill, camera panning system, automatic fish
feeder, and robotic, the stepper motor is used for position control.
Document       Reference
                       No.                        RPP-05                  Page. Number              Page |2
                                                                          Edition                     1
                                                    LABORATORY            Revision No.                   4
                           Document Title
                                                     PRACTICUM            Effective Date             12/8/2010
                                                                          Amendment Date             12/8/2010

        3.2   HOW STEPPER MOTOR WORKS?
                                    Stepper motors are very different from a regular DC
                                    motors. Instead of spinning like DC motors do, stepper
                                    motor steps at a specific resolution for each pulse. The
                                    motor that we are using needs 48 steps / pulses just to
                                    complete a single revolution! That should be enough to tell
                                    about its precision.

                                                   Another advantage of stepper motors is the fact that their
                                                   speed of rotation can be achieved almost instantly even if
                                                   you change the spinning direction.

                                                 Stepper motor consists of a         - the permanent magnet
                                                 that rotates inside, and          - four coils (north, east,
                                                 south, west) that are part of the case, and which
      . Rotor can be moved by sequentially applying a pulsed DC voltage to one or two coils at a time.



        3.3   STEPPER MOTOR DRIVER
In able to move the rotor you will need a driver. Driver is a circuit that applies a voltage to any of the four
stator coils. Driver can be built with IC such as ULN2003 (pictured on the circuit diagram), four darlington
transistors or four power transistors such as 2N3055.



         3.4 STEPPER MOTOR CONNECTIONS
There are also steppers called variable reluctance stepper motors that do not have permanent magnet rotor. The
most common stepper motors have four stator windings that are paired with a center-tapped common as shown
if Figure below.




Unipolar motor should have five or six connections depending on the model. If the motor has six connections
like the one pictured above, you have to join pins 1 and 2 (red) together and connect them to a (+) 12-24V
voltage supply. The remaining pins; a1 (yellow), b1 (black), a2 (orange), b2 (brown) should be connected to a
driver (ULN2003) as shown on the schematic below.
Document       Reference
                        No.                         RPP-05                   Page. Number                Page |3
                                                                             Edition                       1
                                                       LABORATORY            Revision No.                     4
                             Document Title
                                                        PRACTICUM            Effective Date              12/8/2010
                                                                             Amendment Date              12/8/2010




                             Figure of Stepper motor control using ULN2003 driver.

This type of stepper motor is commonly referred to as a four phase or unipolar stepper motor. The center tap
allows a change of current direction in each of two coils when a winding is grounded, thereby resulting in a
polarity change of the stator. Notice that while a conventional motor shaft runs freely, the stepper motors shaft
moves in a fixed repeatable increment, which allows one to move it to a precise position. This repeatable fixed
movement is possible as a result of basic magnetic theory where poles of the same polarity repel and opposite
poles attract. The direction of the rotation is dictated by the stator poles. The stator poles are determined by the
current sent through the wire coils. As the direction of the current is changed, the polarity is also changed
causing the reverse motion of the motor. The stepper motor discussed here has a total of six leads: four leads
representing the four stator windings and two commons for the center-tapped leads. As the sequence of power
is applied to each stator winding, the rotor will rotate. There are several widely used sequences, each of which
has different degree of precision. Table below shown the finer resolutions that called an 8 –step switching
sequence. The 8 step sequence is also called half-stepping, because in the 8-step sequence each step is half of
the normal step angle.
Document     Reference
                        No.                          RPP-05               Page. Number             Page |4
                                                                          Edition                    1
                                                      LABORATORY          Revision No.                 4
                           Document Title
                                                       PRACTICUM          Effective Date           12/8/2010
                                                                          Amendment Date           12/8/2010




Clockwise      Step #          Winding A         Winding B     Winding C        Winding D      Counter
                                                                                               Clockwise
               1               1                 0             0                1

               2               1                 0             0                0

               3               1                 1             0                0

               4               0                 1             0                0

               5               0                 1             1                0

               6               0                 0             1                0

               7               0                 0             1                1

               8               0                 0             0                1

                                    Table 1: Half-Step 8 –Step Sequence

       3.5    MOTOR SPEED


The motor speed, measured in steps per second, is a function of the switching rate. By changing the length of
the time delay loop, we can achieve various rotation speeds. Decreasing the delay time will increase the
rotation speed and vice versa.
Document      Reference
                     No.                       RPP-05                  Page. Number              Page |5
                                                                       Edition                     1
                                                 LABORATORY            Revision No.                   4
                          Document Title
                                                  PRACTICUM            Effective Date            12/8/2010
                                                                       Amendment Date            12/8/2010




4   ATTENTION

     4.1      Do not move any IC or device inside the board without any order from your instructor.



5   EXPERIMENT PROCEDURE



     5.1.1    Before test the source code on the PIC development board, the connection of PORTC must
     5.1     STEPPER MOTOR (See Circuit 1)


              be connected to the steeper motor driver (ULN2003A) using jumper wires. The
              connections are shown below:
              M1     C0
              M2     C1
              M3     C2
              M4     C3

     5.1.2    The code below is show how the stepper motor is rotate in clockwise and counter
              clockwise for about 20 seconds. Type the code and test on the development board. Write
              your observation.
Document    Reference
No.                     RPP-05        Page. Number     Page |6
                                      Edition            1
                         LABORATORY   Revision No.        4
   Document Title
                          PRACTICUM   Effective Date   12/8/2010
                                      Amendment Date   12/8/2010
Document       Reference
                        No.                         RPP-05             Page. Number             Page |7
                                                                       Edition                    1
                                                      LABORATORY       Revision No.                  4
                             Document Title
                                                       PRACTICUM       Effective Date           12/8/2010
                                                                       Amendment Date           12/8/2010




        5.2.1    Base on the code above; modify the program, so that the motor rotation speed is increase.
        5.2     Exercise 1



        5.2.2    Write you observations.



        5.3.1    Base on the circuit 1, develop a program, so that the stepper motor will rotate if the
        5.3     Exercise 2


                 button is pressed and stop if the button is not pressed.

        5.3.2    Draw a flow chart for the complete program.



        5.4.1    Base on circuit 1, develop a program to toggle the direction of stepper motor rotation if
        5.4     Exercise 3


                 button is pressed.

        5.4.2    Draw a flow chart for the complete program.



6     REPORT PREPARATION AND SCHEMA.


(1)    2 persons for 1 report.

(2)    Due date to send report is 1 weeks after lab date.

(3)    Report schema following below requirements:

       Lab report cover sheet for 1st page.
       Objective, theory, equipments for the 2nd page. (5)                 (5M)
       Observations. (10)
        1.Motor rotation observation from 5.1.2                               (5 M)
        2.Motor Speed observation from 5.2.2                                  (5 M )
       Result. (65)
              1. Exercise 1 source code                                      (15 M)
              2. Exercise 2 source code & Flow Chart                          (25 M)
Document    Reference
                         No.                     RPP-05                  Page. Number     Page |8
                                                                         Edition            1
                                                   LABORATORY            Revision No.        4
                            Document Title
                                                    PRACTICUM            Effective Date   12/8/2010
                                                                         Amendment Date   12/8/2010

            3. Exercise 3 source code & Flow chart                           (25M )
      Discussion. (10)
    1. What is the function of ULN2003A device?                              (5 M)

    2. How to increase and reduce the rotation speed of stepper motor?        (5 M)

      Conclusions. (10)



7   CIRCUIT ATTACMENT




                                      Circuit 1: STEPPER MOTOR

More Related Content

Viewers also liked

Tutorial 2 amplitude modulation
Tutorial 2 amplitude  modulationTutorial 2 amplitude  modulation
Tutorial 2 amplitude modulationmkazree
 
Tutorial chapter 3 robotic
Tutorial chapter 3 roboticTutorial chapter 3 robotic
Tutorial chapter 3 roboticmkazree
 
Tutorial chapter 2 robotic
Tutorial chapter 2 roboticTutorial chapter 2 robotic
Tutorial chapter 2 roboticmkazree
 
Foster-seely and Ratio Detector (Discriminator )
Foster-seely and Ratio Detector (Discriminator )Foster-seely and Ratio Detector (Discriminator )
Foster-seely and Ratio Detector (Discriminator )mkazree
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part AIkhwan_Fakrudin
 
Coal Fired Power Plant
Coal Fired Power PlantCoal Fired Power Plant
Coal Fired Power Plantmkazree
 
Embedded system (Chapter )
Embedded system (Chapter )Embedded system (Chapter )
Embedded system (Chapter )Ikhwan_Fakrudin
 
Contoh kertas kerja program
Contoh kertas kerja programContoh kertas kerja program
Contoh kertas kerja programmkazree
 
Chapter 1 dc machines new
Chapter 1 dc machines newChapter 1 dc machines new
Chapter 1 dc machines newmkazree
 
Ii20102011
Ii20102011Ii20102011
Ii20102011mkazree
 
Chapter5 dek 3143 dae 32303 9 (nota tambahan)
Chapter5 dek 3143 dae 32303 9 (nota tambahan)Chapter5 dek 3143 dae 32303 9 (nota tambahan)
Chapter5 dek 3143 dae 32303 9 (nota tambahan)mkazree
 
Chapter 3 induction machine
Chapter 3 induction machineChapter 3 induction machine
Chapter 3 induction machinemkazree
 
Performance of dc motors experiment 2
Performance of dc motors experiment 2Performance of dc motors experiment 2
Performance of dc motors experiment 2Karimi LordRamza
 
Chapter 2 transformer new
Chapter 2 transformer newChapter 2 transformer new
Chapter 2 transformer newmkazree
 
Projek rekabentuk
Projek rekabentukProjek rekabentuk
Projek rekabentukmkazree
 
Projek rekabentuk1
Projek rekabentuk1Projek rekabentuk1
Projek rekabentuk1mkazree
 
Chp1 68000 microprocessor copy
Chp1 68000 microprocessor   copyChp1 68000 microprocessor   copy
Chp1 68000 microprocessor copymkazree
 
rekabentruk berbantu komputer Lab 4
rekabentruk berbantu komputer Lab 4rekabentruk berbantu komputer Lab 4
rekabentruk berbantu komputer Lab 4mkazree
 
19199406 embedded-c-tutorial-8051
19199406 embedded-c-tutorial-805119199406 embedded-c-tutorial-8051
19199406 embedded-c-tutorial-8051PRADEEP
 

Viewers also liked (20)

Tutorial 2 amplitude modulation
Tutorial 2 amplitude  modulationTutorial 2 amplitude  modulation
Tutorial 2 amplitude modulation
 
Tutorial chapter 3 robotic
Tutorial chapter 3 roboticTutorial chapter 3 robotic
Tutorial chapter 3 robotic
 
Tutorial chapter 2 robotic
Tutorial chapter 2 roboticTutorial chapter 2 robotic
Tutorial chapter 2 robotic
 
Foster-seely and Ratio Detector (Discriminator )
Foster-seely and Ratio Detector (Discriminator )Foster-seely and Ratio Detector (Discriminator )
Foster-seely and Ratio Detector (Discriminator )
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part A
 
Coal Fired Power Plant
Coal Fired Power PlantCoal Fired Power Plant
Coal Fired Power Plant
 
Embedded system (Chapter )
Embedded system (Chapter )Embedded system (Chapter )
Embedded system (Chapter )
 
Contoh kertas kerja program
Contoh kertas kerja programContoh kertas kerja program
Contoh kertas kerja program
 
Chapter 1 dc machines new
Chapter 1 dc machines newChapter 1 dc machines new
Chapter 1 dc machines new
 
Ii20102011
Ii20102011Ii20102011
Ii20102011
 
Chapter5 dek 3143 dae 32303 9 (nota tambahan)
Chapter5 dek 3143 dae 32303 9 (nota tambahan)Chapter5 dek 3143 dae 32303 9 (nota tambahan)
Chapter5 dek 3143 dae 32303 9 (nota tambahan)
 
Chapter 3 induction machine
Chapter 3 induction machineChapter 3 induction machine
Chapter 3 induction machine
 
Performance of dc motors experiment 2
Performance of dc motors experiment 2Performance of dc motors experiment 2
Performance of dc motors experiment 2
 
Chapter 2 transformer new
Chapter 2 transformer newChapter 2 transformer new
Chapter 2 transformer new
 
Projek rekabentuk
Projek rekabentukProjek rekabentuk
Projek rekabentuk
 
Projek rekabentuk1
Projek rekabentuk1Projek rekabentuk1
Projek rekabentuk1
 
Chp1 68000 microprocessor copy
Chp1 68000 microprocessor   copyChp1 68000 microprocessor   copy
Chp1 68000 microprocessor copy
 
rekabentruk berbantu komputer Lab 4
rekabentruk berbantu komputer Lab 4rekabentruk berbantu komputer Lab 4
rekabentruk berbantu komputer Lab 4
 
19199406 embedded-c-tutorial-8051
19199406 embedded-c-tutorial-805119199406 embedded-c-tutorial-8051
19199406 embedded-c-tutorial-8051
 
Mp lab
Mp labMp lab
Mp lab
 

Similar to Lab 5 microcontroller

Study of Time Reduction in Manufacturing of Screws Used in Twin Screw Pump
Study of Time Reduction in Manufacturing of Screws Used in Twin Screw PumpStudy of Time Reduction in Manufacturing of Screws Used in Twin Screw Pump
Study of Time Reduction in Manufacturing of Screws Used in Twin Screw PumpIJMERJOURNAL
 
Maintenance of Panauti Hydropower ppt Subham Kandel.pptx
Maintenance of Panauti Hydropower ppt Subham Kandel.pptxMaintenance of Panauti Hydropower ppt Subham Kandel.pptx
Maintenance of Panauti Hydropower ppt Subham Kandel.pptxsaubhagyabista
 
steam-turbine-generator-overhaul-and-inspection-epri.pdf
steam-turbine-generator-overhaul-and-inspection-epri.pdfsteam-turbine-generator-overhaul-and-inspection-epri.pdf
steam-turbine-generator-overhaul-and-inspection-epri.pdfchintanraval24
 
IRJET- Analysis of Fuel Droplet Parameter using Laser Diagnosis System
IRJET- Analysis of Fuel Droplet Parameter using Laser Diagnosis SystemIRJET- Analysis of Fuel Droplet Parameter using Laser Diagnosis System
IRJET- Analysis of Fuel Droplet Parameter using Laser Diagnosis SystemIRJET Journal
 
Agitation Ed Ryan Ruales
Agitation   Ed Ryan RualesAgitation   Ed Ryan Ruales
Agitation Ed Ryan RualesEd Ryan Ruales
 
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...Anmol Dwivedi
 
Stepper motor in industrial applications
Stepper motor in industrial applicationsStepper motor in industrial applications
Stepper motor in industrial applicationsDr.Raja R
 
INTERNAL GEAR PUMP
INTERNAL GEAR PUMPINTERNAL GEAR PUMP
INTERNAL GEAR PUMPSuchit Moon
 
Module 3 - Basic Equipment
Module 3 - Basic EquipmentModule 3 - Basic Equipment
Module 3 - Basic Equipmentriezqaandika
 
Operational Amplifiers, 5th Edition - (Malestrom).pdf
Operational Amplifiers, 5th Edition - (Malestrom).pdfOperational Amplifiers, 5th Edition - (Malestrom).pdf
Operational Amplifiers, 5th Edition - (Malestrom).pdfivan ion
 
6645103 theory-and-operation-of-a-four-quadrant-switched-reluctance-motor-dri...
6645103 theory-and-operation-of-a-four-quadrant-switched-reluctance-motor-dri...6645103 theory-and-operation-of-a-four-quadrant-switched-reluctance-motor-dri...
6645103 theory-and-operation-of-a-four-quadrant-switched-reluctance-motor-dri...Ankit Agrawal
 
Development of Automatic Transformer Winding Machine
Development of Automatic Transformer Winding MachineDevelopment of Automatic Transformer Winding Machine
Development of Automatic Transformer Winding Machineijiert bestjournal
 
DESIGN AND ANALYSIS OF TURBINE BLADES IN STEAM POWER PLANT
DESIGN AND ANALYSIS OF TURBINE BLADES IN STEAM POWER PLANTDESIGN AND ANALYSIS OF TURBINE BLADES IN STEAM POWER PLANT
DESIGN AND ANALYSIS OF TURBINE BLADES IN STEAM POWER PLANTIJERA Editor
 

Similar to Lab 5 microcontroller (20)

Internship Report
Internship ReportInternship Report
Internship Report
 
PROJECT REVIEW PPT
PROJECT REVIEW PPTPROJECT REVIEW PPT
PROJECT REVIEW PPT
 
Transformer
TransformerTransformer
Transformer
 
Firth Bendau Poster
Firth Bendau PosterFirth Bendau Poster
Firth Bendau Poster
 
Study of Time Reduction in Manufacturing of Screws Used in Twin Screw Pump
Study of Time Reduction in Manufacturing of Screws Used in Twin Screw PumpStudy of Time Reduction in Manufacturing of Screws Used in Twin Screw Pump
Study of Time Reduction in Manufacturing of Screws Used in Twin Screw Pump
 
Maintenance of Panauti Hydropower ppt Subham Kandel.pptx
Maintenance of Panauti Hydropower ppt Subham Kandel.pptxMaintenance of Panauti Hydropower ppt Subham Kandel.pptx
Maintenance of Panauti Hydropower ppt Subham Kandel.pptx
 
steam-turbine-generator-overhaul-and-inspection-epri.pdf
steam-turbine-generator-overhaul-and-inspection-epri.pdfsteam-turbine-generator-overhaul-and-inspection-epri.pdf
steam-turbine-generator-overhaul-and-inspection-epri.pdf
 
IRJET- Analysis of Fuel Droplet Parameter using Laser Diagnosis System
IRJET- Analysis of Fuel Droplet Parameter using Laser Diagnosis SystemIRJET- Analysis of Fuel Droplet Parameter using Laser Diagnosis System
IRJET- Analysis of Fuel Droplet Parameter using Laser Diagnosis System
 
Singletypes
SingletypesSingletypes
Singletypes
 
Agitation Ed Ryan Ruales
Agitation   Ed Ryan RualesAgitation   Ed Ryan Ruales
Agitation Ed Ryan Ruales
 
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...
Rotor Resistance Control of Wound Rotor Induction Generator (WRIG) using PSCA...
 
Stepper motor in industrial applications
Stepper motor in industrial applicationsStepper motor in industrial applications
Stepper motor in industrial applications
 
Written pole-technology
Written pole-technologyWritten pole-technology
Written pole-technology
 
INTERNAL GEAR PUMP
INTERNAL GEAR PUMPINTERNAL GEAR PUMP
INTERNAL GEAR PUMP
 
Module 3 - Basic Equipment
Module 3 - Basic EquipmentModule 3 - Basic Equipment
Module 3 - Basic Equipment
 
Operational Amplifiers, 5th Edition - (Malestrom).pdf
Operational Amplifiers, 5th Edition - (Malestrom).pdfOperational Amplifiers, 5th Edition - (Malestrom).pdf
Operational Amplifiers, 5th Edition - (Malestrom).pdf
 
6645103 theory-and-operation-of-a-four-quadrant-switched-reluctance-motor-dri...
6645103 theory-and-operation-of-a-four-quadrant-switched-reluctance-motor-dri...6645103 theory-and-operation-of-a-four-quadrant-switched-reluctance-motor-dri...
6645103 theory-and-operation-of-a-four-quadrant-switched-reluctance-motor-dri...
 
Development of Automatic Transformer Winding Machine
Development of Automatic Transformer Winding MachineDevelopment of Automatic Transformer Winding Machine
Development of Automatic Transformer Winding Machine
 
DESIGN AND ANALYSIS OF TURBINE BLADES IN STEAM POWER PLANT
DESIGN AND ANALYSIS OF TURBINE BLADES IN STEAM POWER PLANTDESIGN AND ANALYSIS OF TURBINE BLADES IN STEAM POWER PLANT
DESIGN AND ANALYSIS OF TURBINE BLADES IN STEAM POWER PLANT
 
Ao044265268
Ao044265268Ao044265268
Ao044265268
 

More from mkazree

Communication Engineering - Chapter 6 - Noise
Communication Engineering - Chapter 6 - NoiseCommunication Engineering - Chapter 6 - Noise
Communication Engineering - Chapter 6 - Noisemkazree
 
Chapter 5 fm receivers
Chapter 5  fm receiversChapter 5  fm receivers
Chapter 5 fm receiversmkazree
 
The Electronic Hobby Kit
The Electronic Hobby KitThe Electronic Hobby Kit
The Electronic Hobby Kitmkazree
 
Dek3223 chapter 2 robotic
Dek3223 chapter 2 roboticDek3223 chapter 2 robotic
Dek3223 chapter 2 roboticmkazree
 
Chapter 3 am receivers
Chapter 3 am receiversChapter 3 am receivers
Chapter 3 am receiversmkazree
 
Dek3223 chapter 3 industrial robotic
Dek3223 chapter 3 industrial roboticDek3223 chapter 3 industrial robotic
Dek3223 chapter 3 industrial roboticmkazree
 
Chapter 3 am receivers
Chapter 3 am receiversChapter 3 am receivers
Chapter 3 am receiversmkazree
 
Comm introduction
Comm introductionComm introduction
Comm introductionmkazree
 
Chapter2 cont
Chapter2 contChapter2 cont
Chapter2 contmkazree
 
Chapter 2 amplitude_modulation
Chapter 2 amplitude_modulationChapter 2 amplitude_modulation
Chapter 2 amplitude_modulationmkazree
 
Chp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copyChp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copymkazree
 
Chp6 assembly language programming for pic copy
Chp6 assembly language programming for pic   copyChp6 assembly language programming for pic   copy
Chp6 assembly language programming for pic copymkazree
 
Chp5 pic microcontroller instruction set copy
Chp5 pic microcontroller instruction set   copyChp5 pic microcontroller instruction set   copy
Chp5 pic microcontroller instruction set copymkazree
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copymkazree
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copymkazree
 
Chp2 introduction to the 68000 microprocessor copy
Chp2 introduction to the 68000 microprocessor   copyChp2 introduction to the 68000 microprocessor   copy
Chp2 introduction to the 68000 microprocessor copymkazree
 

More from mkazree (16)

Communication Engineering - Chapter 6 - Noise
Communication Engineering - Chapter 6 - NoiseCommunication Engineering - Chapter 6 - Noise
Communication Engineering - Chapter 6 - Noise
 
Chapter 5 fm receivers
Chapter 5  fm receiversChapter 5  fm receivers
Chapter 5 fm receivers
 
The Electronic Hobby Kit
The Electronic Hobby KitThe Electronic Hobby Kit
The Electronic Hobby Kit
 
Dek3223 chapter 2 robotic
Dek3223 chapter 2 roboticDek3223 chapter 2 robotic
Dek3223 chapter 2 robotic
 
Chapter 3 am receivers
Chapter 3 am receiversChapter 3 am receivers
Chapter 3 am receivers
 
Dek3223 chapter 3 industrial robotic
Dek3223 chapter 3 industrial roboticDek3223 chapter 3 industrial robotic
Dek3223 chapter 3 industrial robotic
 
Chapter 3 am receivers
Chapter 3 am receiversChapter 3 am receivers
Chapter 3 am receivers
 
Comm introduction
Comm introductionComm introduction
Comm introduction
 
Chapter2 cont
Chapter2 contChapter2 cont
Chapter2 cont
 
Chapter 2 amplitude_modulation
Chapter 2 amplitude_modulationChapter 2 amplitude_modulation
Chapter 2 amplitude_modulation
 
Chp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copyChp7 pic 16 f84 interfacing - copy
Chp7 pic 16 f84 interfacing - copy
 
Chp6 assembly language programming for pic copy
Chp6 assembly language programming for pic   copyChp6 assembly language programming for pic   copy
Chp6 assembly language programming for pic copy
 
Chp5 pic microcontroller instruction set copy
Chp5 pic microcontroller instruction set   copyChp5 pic microcontroller instruction set   copy
Chp5 pic microcontroller instruction set copy
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
 
Chp2 introduction to the 68000 microprocessor copy
Chp2 introduction to the 68000 microprocessor   copyChp2 introduction to the 68000 microprocessor   copy
Chp2 introduction to the 68000 microprocessor copy
 

Recently uploaded

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...JojoEDelaCruz
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 

Recently uploaded (20)

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
ENG 5 Q4 WEEk 1 DAY 1 Restate sentences heard in one’s own words. Use appropr...
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 

Lab 5 microcontroller

  • 1. CENTRE OF DIPLOMA STUDIES COMPUTER ADDED DESIGN LABORATORY LABORATORY INSTRUCTION SHEET DEK 3133 Subject Code and Name MICROCONTROLLER Experiment Code 05 Experiment Title Introduction to Stepper Motor Course Code DET/DEE/DEX
  • 2. Document Reference No. RPP-05 Page. Number Page |1 Edition 1 LABORATORY Revision No. 4 Document Title PRACTICUM Effective Date 12/8/2010 Amendment Date 12/8/2010 SUBJECT INFORMATION SUBJECT : DEK 3133 MICROCONTROLLER TOPIC : Lab 5 – Introduction to Stepper Motor. AIM To apply the knowledge and understanding on theory and applications of Stepper Motor. 1 OBJECTIVES 1.1 To understand the design of keypad. 1.2 To determine and analyze the function of keypad. 1.3 To understand the configuration of LCD. 2 EQUIPMENT 2.1 PIC Development Board – PICDEV 2.2 PIC16F877A 2.3 MPLAB IDE Program 2.4 Mikro C 2.5 Proteus 2.6 The PIC Development Board User manual 2.7 Power supply 9V 3 THEORY 3.1 STEPPER MOTOR A stepper motor is a widely used device that translates electrical pulses into mechanical movement. In applications such as disk drives, dot matrix printers, PCB drilling mill, camera panning system, automatic fish feeder, and robotic, the stepper motor is used for position control.
  • 3. Document Reference No. RPP-05 Page. Number Page |2 Edition 1 LABORATORY Revision No. 4 Document Title PRACTICUM Effective Date 12/8/2010 Amendment Date 12/8/2010 3.2 HOW STEPPER MOTOR WORKS? Stepper motors are very different from a regular DC motors. Instead of spinning like DC motors do, stepper motor steps at a specific resolution for each pulse. The motor that we are using needs 48 steps / pulses just to complete a single revolution! That should be enough to tell about its precision. Another advantage of stepper motors is the fact that their speed of rotation can be achieved almost instantly even if you change the spinning direction. Stepper motor consists of a - the permanent magnet that rotates inside, and - four coils (north, east, south, west) that are part of the case, and which . Rotor can be moved by sequentially applying a pulsed DC voltage to one or two coils at a time. 3.3 STEPPER MOTOR DRIVER In able to move the rotor you will need a driver. Driver is a circuit that applies a voltage to any of the four stator coils. Driver can be built with IC such as ULN2003 (pictured on the circuit diagram), four darlington transistors or four power transistors such as 2N3055. 3.4 STEPPER MOTOR CONNECTIONS There are also steppers called variable reluctance stepper motors that do not have permanent magnet rotor. The most common stepper motors have four stator windings that are paired with a center-tapped common as shown if Figure below. Unipolar motor should have five or six connections depending on the model. If the motor has six connections like the one pictured above, you have to join pins 1 and 2 (red) together and connect them to a (+) 12-24V voltage supply. The remaining pins; a1 (yellow), b1 (black), a2 (orange), b2 (brown) should be connected to a driver (ULN2003) as shown on the schematic below.
  • 4. Document Reference No. RPP-05 Page. Number Page |3 Edition 1 LABORATORY Revision No. 4 Document Title PRACTICUM Effective Date 12/8/2010 Amendment Date 12/8/2010 Figure of Stepper motor control using ULN2003 driver. This type of stepper motor is commonly referred to as a four phase or unipolar stepper motor. The center tap allows a change of current direction in each of two coils when a winding is grounded, thereby resulting in a polarity change of the stator. Notice that while a conventional motor shaft runs freely, the stepper motors shaft moves in a fixed repeatable increment, which allows one to move it to a precise position. This repeatable fixed movement is possible as a result of basic magnetic theory where poles of the same polarity repel and opposite poles attract. The direction of the rotation is dictated by the stator poles. The stator poles are determined by the current sent through the wire coils. As the direction of the current is changed, the polarity is also changed causing the reverse motion of the motor. The stepper motor discussed here has a total of six leads: four leads representing the four stator windings and two commons for the center-tapped leads. As the sequence of power is applied to each stator winding, the rotor will rotate. There are several widely used sequences, each of which has different degree of precision. Table below shown the finer resolutions that called an 8 –step switching sequence. The 8 step sequence is also called half-stepping, because in the 8-step sequence each step is half of the normal step angle.
  • 5. Document Reference No. RPP-05 Page. Number Page |4 Edition 1 LABORATORY Revision No. 4 Document Title PRACTICUM Effective Date 12/8/2010 Amendment Date 12/8/2010 Clockwise Step # Winding A Winding B Winding C Winding D Counter Clockwise 1 1 0 0 1 2 1 0 0 0 3 1 1 0 0 4 0 1 0 0 5 0 1 1 0 6 0 0 1 0 7 0 0 1 1 8 0 0 0 1 Table 1: Half-Step 8 –Step Sequence 3.5 MOTOR SPEED The motor speed, measured in steps per second, is a function of the switching rate. By changing the length of the time delay loop, we can achieve various rotation speeds. Decreasing the delay time will increase the rotation speed and vice versa.
  • 6. Document Reference No. RPP-05 Page. Number Page |5 Edition 1 LABORATORY Revision No. 4 Document Title PRACTICUM Effective Date 12/8/2010 Amendment Date 12/8/2010 4 ATTENTION 4.1 Do not move any IC or device inside the board without any order from your instructor. 5 EXPERIMENT PROCEDURE 5.1.1 Before test the source code on the PIC development board, the connection of PORTC must 5.1 STEPPER MOTOR (See Circuit 1) be connected to the steeper motor driver (ULN2003A) using jumper wires. The connections are shown below: M1 C0 M2 C1 M3 C2 M4 C3 5.1.2 The code below is show how the stepper motor is rotate in clockwise and counter clockwise for about 20 seconds. Type the code and test on the development board. Write your observation.
  • 7. Document Reference No. RPP-05 Page. Number Page |6 Edition 1 LABORATORY Revision No. 4 Document Title PRACTICUM Effective Date 12/8/2010 Amendment Date 12/8/2010
  • 8. Document Reference No. RPP-05 Page. Number Page |7 Edition 1 LABORATORY Revision No. 4 Document Title PRACTICUM Effective Date 12/8/2010 Amendment Date 12/8/2010 5.2.1 Base on the code above; modify the program, so that the motor rotation speed is increase. 5.2 Exercise 1 5.2.2 Write you observations. 5.3.1 Base on the circuit 1, develop a program, so that the stepper motor will rotate if the 5.3 Exercise 2 button is pressed and stop if the button is not pressed. 5.3.2 Draw a flow chart for the complete program. 5.4.1 Base on circuit 1, develop a program to toggle the direction of stepper motor rotation if 5.4 Exercise 3 button is pressed. 5.4.2 Draw a flow chart for the complete program. 6 REPORT PREPARATION AND SCHEMA. (1) 2 persons for 1 report. (2) Due date to send report is 1 weeks after lab date. (3) Report schema following below requirements: Lab report cover sheet for 1st page. Objective, theory, equipments for the 2nd page. (5) (5M) Observations. (10) 1.Motor rotation observation from 5.1.2 (5 M) 2.Motor Speed observation from 5.2.2 (5 M ) Result. (65) 1. Exercise 1 source code (15 M) 2. Exercise 2 source code & Flow Chart (25 M)
  • 9. Document Reference No. RPP-05 Page. Number Page |8 Edition 1 LABORATORY Revision No. 4 Document Title PRACTICUM Effective Date 12/8/2010 Amendment Date 12/8/2010 3. Exercise 3 source code & Flow chart (25M ) Discussion. (10) 1. What is the function of ULN2003A device? (5 M) 2. How to increase and reduce the rotation speed of stepper motor? (5 M) Conclusions. (10) 7 CIRCUIT ATTACMENT Circuit 1: STEPPER MOTOR