lab3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lab3 [2010/03/19 12:48] – natalia | lab3 [2014/02/09 13:25] (current) – allison | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Prelab studies | + | ==== Background |
- | * Please make sure to read and understand the license agreements: | + | === Servo Motor === |
- | * {{:legalnotice_os_only.pdf}} | + | A Servo ((Based on http://www.seattlerobotics.org/ |
- | * {{: | + | |
- | * {{: | + | |
- | * {{: | + | |
- | * Make sure you fully understand | + | |
- | * Also read the application note 1456 which provides a general information about Lab 3 stationary project: | + | |
- | * {{: | + | |
- | ==== Evaluation ==== | + | 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 we use is capable of traveling somewhere around 180 degrees. The servo is mechanically not capable of turning any farther due to a mechanical stop built on to the main output gear. |
- | Demonstrate | + | |
- | * What is the process | + | === Infrared Range Finder |
- | * Explain how OSFlagPend function | + | An Infrared Range Finder ((Based on http:// |
==== Procedure ==== | ==== 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: | * Open the lab stationary using CodeWarrior located in: | ||
- | < | + | < |
- | | + | |
- | * Recompile the project and transfer the binaries to Dragon12 board as explained in [[lab1|Lab 1]]. {{: | + | * 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. {{: | ||
+ | |||
+ | ==== Submission ==== | ||
+ | Submit the source code and a report brief outlining the design using the command: submit 4352 lab3 filename to submit your report and and code. (Use “man submit” for details on how to use the submit command. The “course” is “4352”, the “assignment” is “lab3”.) | ||
- | ==== Reference Manuals ===== | + | ==== Reference Manuals ==== |
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
* {{: | * {{: | ||
* {{: | * {{: | ||
Line 34: | Line 39: | ||
* {{: | * {{: | ||
- | ==== Resources | + | ==== Resources ==== |
- | * {{:lab3.zip}} | + | *{{:lab4.c|lab4.c}} |
lab3.1269002900.txt.gz · Last modified: 2010/03/19 12:48 by natalia