Question: Problem 3 Note/I only want code and design a. (10 pt.) Design a circuit to interface a 12VDC bipolar stepper motor, a common-cathode seven-segment display,
Problem 3
Note/I only want code and design
a. (10 pt.) Design a circuit to interface a 12VDC bipolar stepper motor, a common-cathode seven-segment display, toggle switch, green LED, and red LED to the PIC16F84A microcontroller. Show all connections in details.
b. (25 pt.) For the circuit you have designed using a stepper motor has 180 step-angle, write a mikroC program to run the motor two revolutions in right direction then four revolutions in left direction. The toggle switch is used to choose between fast and slow speed of motor rotation. Green led and red led are used as indicators for left and right rotation of motor; respectively. The revolution number is displayed on the 7-segment displayPlace this code in a loop so that this sequence is continuously repeated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
