lab4
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lab4 [2010/02/24 17:13] – created natalia | lab4 [2010/03/19 15:55] (current) – natalia | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | lab4 | + | ==== Background ==== |
+ | === Servo Motor === | ||
+ | A Servo ((Based on http:// | ||
+ | |||
+ | The servo motor has a control circuit and a potentiometer (a variable resistor also known as pot) that is connected to the output shaft. The pot allows the control circuitry to monitor the current angle of the servo motor. If the shaft is at the correct angle, then the motor shuts off. If the circuit finds that the angle is not correct, it will turn the motor the correct direction until the angle is correct. The output shaft of the servo is capable of traveling somewhere around 180 degrees. A normal servo is mechanically not capable of turning any farther due to a mechanical stop built on to the main output gear. | ||
+ | |||
+ | === Infrared Range Finder === | ||
+ | An Infrared Range Finder ((Based on http:// | ||
+ | |||
+ | ==== Procedure ==== | ||
+ | The goal is to have a task that every 300 ms checks the distance of the IR Rangefinder and change the servo' | ||
+ | * Open the lab stationary using CodeWarrior located in: | ||
+ | < | ||
+ | | ||
+ | * Add a task that every 300 ms calls ir_range(ATD0DR0) | ||
+ | * Connect the VCC and ground wires of Servo and IR Range Finder. Make sure you have +5 volts and have a common ground between the microprocessor and your power supply. | ||
+ | * Connect PP7 pin to servo' | ||
+ | * Double check your circuitry with your TA before powering up anything. | ||
+ | * Recompile the project and transfer the binaries to Dragon12 board. {{: | ||
+ | |||
+ | ==== Reference Manuals ==== | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | |||
+ | ==== Resources ==== | ||
+ | *{{:lab4.zip}} |
lab4.1267031621.txt.gz · Last modified: 2010/02/24 17:13 by natalia