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

  The graph of probability distribution

The graph of probability distribution.

  Write a c++ program that sets up a class sailboat

Report any file problem from main. If the array was filled, show the boat information in the order of the data file (unsorted).

  Determine the excitation voltage ef and the power angle

A 3-phase, 20 kVA, 208 V, 4-pole star-connected synchronous generator has a synchronous reactance of Xs = 1.5 ohm per phase. The resistance of the stator winding is negligible. The machine is connected to a 3-phase 208 V infinite bus.

  Determine the first and second law efficiencies

Determine the first and second law efficiencies of this system. The temperature of the local environment (ground state) is 0.00°C.

  Show a timing diagram

Use Active HDL to show a timing diagram showing the inputs, outputs, and state (including last A) of the VHDL state machine of the attached design and bench test

  Do the popular media approve of certain types of relations

Do the popular media approve of certain types of relationships and not others?  2. How do the media "define" friendship, love, and family?

  How does noise level change if cutoff frequency of filter

Consider the thermal noise produced by a resistor. How does the noise level change if the resistance is increased by a factor of 100 Next, assume the noise is passed through an ideal, noiseless low-pass filter.

  What is the gain db

What is the Gain dB? I thought dB=20 log (Vout/Vin) This would lead me to believe that it should be 20 log (1.99/1) = 5.98 dB...I am being told the answer is -0.44 dB. What is my problem

  What is the probability of positivity inside information

On any given day, the price of stock XX can do one of three things: jump very high, fall very low, or stay reasonably close to its opening value. You are trying to use Bayes' Law to determine if stock XX is being bought or sold by shareholders

  Calculate the luminous power efficacy

Calculate the luminous power efficacy and plot it on a semilog scale versus brightness (i.e. plot η_P vs. the log of Q). What is the efficacy of your pixel at computer screen brightness (100 cd/m2)? What about at room lighting brightness (~1000 ..

  What is difference between logical nd arithmetic shift right

Data Transfer/Manipulation Instructions a) If accA holds $16 and accB holds $2A, what memory locations will change value after executing the STD $637F instruction. Identify the new value in any changed memory locations.

  Determine the z-transform of the sequence

The z-transform X(z) of a causal sequence x[n] has a zero at z1 = 0 and three poles at p1 = 3/4 and p2,3 = (1/2)(1 ± j). Determine the z-transform Y(z) of the sequence y[n] = x[n + 3], its pole-zero pattern, and its ROC.

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