STEERING TEAM: DRIFT KINGS ELEAZAR LUCIANO MATT HART SHANE MILLS STEVE GILLILAND
CONTENTS: 1. What is a servo? 2. SmartCar application. Goals for lab Guidelines/Specifications 3. Hardware 4. Software
WHAT IS A SERVO? Digital signal to angular motion actuator Controlled by PWM(Pulse-Width Modulation) Using Futaba S3010 Servo Operation +4.8V to +6V
SMARTCAR APPLICATION Goals Figure out how far the wheels should turn. PWM must run freely, independent from software.
SMARTCAR APPLICATION Guidelines/Specifications Required frequency: 50Hz (period = 20ms). High time should be between 1-2 ms, for degree position, respectively.
HARDWARE 3 Wire GVS(Ground, Voltage, and signal) Configuration. (V+) = 5 Volts 10K Potentiameter 3.3V D.C. for Input A/D converter on Coldfire (Figure 1: Servo Pinout) ?
SOFTWARE: 1. Configure ADC Registers. Status and Control Register Configuration Register Pin Control Register
A/D SAMPLE CODE
SOFTWARE CONT. 2. Configure PWM Register TPM Status and Control Register TPM Counter Modulo Registers 16 bit Register Divides to 2 Registers Modulo H and Modulo Low Used for a counter TPM Channel n Status and Control Register
PWM SAMPLE CODE
MAIN CODE Global Variable word steerPW Hint: Some code missing.
RECAP 1. Servo motor 2. SmartCar Goals 3. Software Guidelines 4. Hardware components 5. Software
RESOURCES MCF51JM128 Reference Manual Lecture Notes Set 2: MCF51JM Microcontroller CET – 335: Lab 8 Motor Control
QUESTIONS?