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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started