Prepare the C program for Stepper Motor

Assignment Help Electrical Engineering
Reference no: EM132391443

EE344 Solid-State Power Electronics Assignment - United States Naval Academy, USA

Prepare the C program for Stepper Motor.

Description: A 4-pole stepper motor has 4 inputs and can rotate clockwise and counterclockwise in either 90 degrees (full step mode) or 45 degrees (half step mode) per step. The diagram of a 4-pole stepper motor is shown in Figure 10.8. As long the user applies the sequence given in Table 10.1, the stepper motor will rotate a cycle in full-step mode. If the user applies the sequence given in Table i0.2, the stepper motor will rotate a cycle in half-step mode.

457_figure.png

Table 10.1 Full-step sequence for clockwise rotation

Step

Q4 PA3

Q3 PA2

Q2 PA1

Q1 PA0

Value

1

on

on

off

off

1100

2

off

on

on

off

0110

3

off

off

on

on

0011

4

on

off

off

on

1001

Table 10.2 Half-step sequence for clockwise rotation

Step

Q4 PA3

Q3 PA2

Q2 PA1

Q1 PA0

Value

1

on

off

off

off

1000

2

on

on

off

off

1100

3

off

on

off

off

0100

4

off

on

on

off

0110

5

off

off

on

off

0010

6

off

off

on

on

0011

7

off

off

off

on

0001

8

on

off

off

on

1001

A button is connected to the PC13 pin in your demo kit. This button allows you to generate an interrupt to the microcontroller. The user press this button to start the rotation in the following manner forever:

When the user presses the button for the first time, the stepper motor rotates in the following manner:

1.1 The motor rotates clockwise in full-step mode for 5 seconds.

1.2 The motor rotator counterclockwise in full-step mode for 5 seconds.

1.3 The motor rotator clockwise in half-step mode for 5 seconds.

1.4 The motor rotator counterclockwise in half-step mode for 5 seconds.

When the user presses the button for the second time, the stepper motor rotates in the following manner:

2.1 The motor rotates counterclockwise in half-step mode for 5 seconds.

2.2 The motor rotates clockwise in half-step mode for 5 seconds.

2.3 The motor rotates counterclockwise in full-step mode for 5 seconds.

2.4 The motor rotates clockwise in full-step mode for 5 seconds.

Reference no: EM132391443

Questions Cloud

Why can this bacterium be seen with negative staining : Why can this bacterium be seen with negative staining?
Redox partners in aerobic and anaerobic respiration : Identify the redox partners in aerobic and anaerobic respiration and oxygenic and anoxygenic photosynthesis.
How much of a factor is cultural influence : Describe one example, from the movie Joe the King, of how the biological, psychological, and societal systems interact for Joe's family. Consider whether.
What are all of the physical factors : What are all of the physical factors that can affect microbial growth?
Prepare the C program for Stepper Motor : EE344 Solid-State Power Electronics Assignment Help and Solution - United States Naval Academy, USA - Prepare the C program for Stepper Motor
About the economic factors : Reflect upon the economic factors that would lead a CIO to consider outsourcing or offshoring critical IT segments
What are the parts of an operon : What is an operon? What are the parts of an operon and what are their functions?
Process in prokaryotes versus eukaryotes : Can you explain the steps of protein synthesis and and point out differences in the process in prokaryotes versus eukaryotes.
How is god creating us to denigrate human life : According to Bagini, how is God's creating us for his purposes supposed to denigrate human life? Do you agree? Do you agree with Edwards that the length.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd