Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Table 1 The key given in Table 1 is executed on the PIC microcontroller in the circuit according to the code fragment given at the

image text in transcribed

image text in transcribed

Table 1

The key given in Table 1 is executed on the PIC microcontroller in the circuit according to the code fragment given at the bottom

what happens to the direction and angle of motion of the stepper motor rotor (relative to the given reference position (R)) when their position is applied?

(show by calculating). Results given without an account will not be evaluated.

5 the 5V stepper motor used in the circuit has a step angle of 1.5. Each key combination given in Table 1

it is not applied until the engine reaches its final position (stops). The engine will start from point R (Row 1).

#include

#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT

#use delay(clock=4000000) // four millions

#use fast_io(a)

#use fast_io(b)

int i,j,x=5,y=0;

int seri[]={10,9,11,8,7,12,14,4,13,6,5,2,15,3,0,1};

#int_rb

void of_1()

{ if(input(pin_b4)) x = x + 2;

if(input(pin_b5)) x = x * 2;

if(input(pin_b6)) x = x - 4;

if(input(pin_b7)) x = x * 3;

if(input(pin_a0)) x = x * 2;

if(input(pin_a1)) y = 1;

for(i=0;i

{ if(y==0)

for(j=0;j

{ output_b(series[j]);

delay_ms(50); }

else

for(j=15;j>=0;j-2)

{ output_b(series[j]);

delay_ms(50); }

} x = 10; y = 0;

}

void main ()

{ // Assume required setups;

set_tris_a(0x0F);

set_tris_b(0xF0);

output_b(0x00);

enable_interrupts(int_rb);

enable_interrupts(GLOBAL);

while(1);

+8V 3 C1 16 U1 U2 COM 10 X1 CRISTAL 40 ROS 22 ULN2014 OSCICLKIN RENT OscaCKOUT RO MCLEVOTH RE RESPOM RACIANO R14 RAVANI RASTANEVNA DEPOC RASASREF RBD RAUTOCKI RASIANA56 ROTISTICK RCUTIOSUCCP HEDINSD RCZOOP1 RWAND CASCUSCL REZNICE RAISOVSO RCSVOG ROSTOCK HCICKOUT Step Motor +5V 4 SV A -V SV 220 220 start start ICH 1 RDV RDOPE ROUPS ROPSP ROSSO ROPPO ADNAN IR CCW, 120 CW, 60 17 Hu --- example motion1 example motion2 STEP MOTOR ROW Key Number 2 3 4 1 5 6 R AKKAAK 1 Direction Of Rotation Angle R KALAAK 2 Direction Of Rotation Angle R A KAAKK 3 Direction Of Rotation Angle R KK KA 4 Direction Of Rotation Angle R AAAKKK 5 Direction Of Rotation Angle IR A KKK AIK 6 Direction Of Rotation Angle A: KEY OPEN K: KEY CLOSE Tablo 1 +8V 3 C1 16 U1 U2 COM 10 X1 CRISTAL 40 ROS 22 ULN2014 OSCICLKIN RENT OscaCKOUT RO MCLEVOTH RE RESPOM RACIANO R14 RAVANI RASTANEVNA DEPOC RASASREF RBD RAUTOCKI RASIANA56 ROTISTICK RCUTIOSUCCP HEDINSD RCZOOP1 RWAND CASCUSCL REZNICE RAISOVSO RCSVOG ROSTOCK HCICKOUT Step Motor +5V 4 SV A -V SV 220 220 start start ICH 1 RDV RDOPE ROUPS ROPSP ROSSO ROPPO ADNAN IR CCW, 120 CW, 60 17 Hu --- example motion1 example motion2 STEP MOTOR ROW Key Number 2 3 4 1 5 6 R AKKAAK 1 Direction Of Rotation Angle R KALAAK 2 Direction Of Rotation Angle R A KAAKK 3 Direction Of Rotation Angle R KK KA 4 Direction Of Rotation Angle R AAAKKK 5 Direction Of Rotation Angle IR A KKK AIK 6 Direction Of Rotation Angle A: KEY OPEN K: KEY CLOSE Tablo 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

List some voice data sources prevalent in firms.

Answered: 1 week ago