Exercise 1: DC Motor
In this exercise, wire up your DC motor.
- Build out the circuit below:
- That transistor is a PN2222 (NPN).
- Fire up the IDE.
- Write a script to turn the motor on full speed.
- Modify your script to run the motor at half speed.
Questions to ask yourself:
- You got the motor moving at partial speed and full speed. How can you make the motor go the other way?
- What is the purpose of the diode in this circuit?
- What is the purpose of the transistor in this circuit?
- What is the operating voltage of this motor?
Exercise 2: Servo Motor
- Build out the circuit below:
- Write a script to turn the motor on full speed.
- Modify your script to run the motor at half speed.
Questions to ask yourself:
-
Exercise 3: Stepper Motor
- We're going to build out the circuit specified by this diagram:
Questions to ask yourself:
- Why can't we drive a stepper motor without an H-Bridge or other transistors?
Submission
Show your build to Dr. Slaughter to receive credit for it by the end of class.
Grading
Questions to ask yourself:
- Build 1: Is your motor moving?
- Are your LEDs blinking?
- Can you explain why they're blinking?
- Did you build the correct circuit?