Question: Program 6-4 Write a structured C program that allows the motor to run clockwise for a certain period time. Stop for some time, then rotate
Program 6-4 Write a structured C program that allows the motor to run clockwise for a certain period time. Stop for some time, then rotate counter clockwise for a certain period of time, stops and after some time continue to repeat the cycle. Each of the action should be a function and your main program will simply call the functions See Figure 6-4 for changing the direction of rotation of DC motor using D2n V23105 DPDT Relay PA1 PAO Motor Operation 0 0Stops or breaks 0 1Stops or breaks Clockwise 1 1Counter-Clockwise NOTE: If the lab kit does not have D2n V23105 DPDT Relay, please use two LEDs to indicate the output status of PA1 and PA0, as simulation. + SV S2 51 nRD 16 131 4 PAS 0 turn motor On OfF 20PAD to change direction PAO Fiqure 6-4. Changing the direction of rotation of DC motor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
