You are on page 1of 1

Assignment #4: Motor Control

This assignment is to be completed individually.

Purpose
To use PIC micocontrollers to do precise movements with various motors.

Part 1: Control Setup

The controls will be consisten throughout the project. It will consist of one potentiometer
and two push button switches. The use of the controls will vary in the different parts.

Part 2: Stepper Motor

The potentiometer value will be used to determine one of three movement types: 1/4 turn
(90 degrees), 1/2 turn (180 degrees), and full turn (360 degrees). Movement occurs at the
press of one of the two switches; one will make the motor turn clockwise, and the other
will make it turn counter clockwise.

Part 3: Servo

The controls will be similar to part to, except the 3 potentiometer values will be
interpretted as 5, 10, or 20 degrees of movement. If the servo is within the movement
value of its maximum, it should move to its maximum.

Part 4: Continuous Rotation Motor and Encoder (Basic)

The controls will be the same as for part 2 (stepper motor) with the potentiometer
interpretted as 1/4, 1/2, or full turns.

An encoder will be used to monitor the location of the drive shaft. For this part, move the
motor at slow speeds to ensure the end point is not passed.

Part 5: Continuous Rotation Motor and Encoder (Advanced)

Use PID control to move the motor at higher speeds towards its destination.

You might also like