lab3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lab3 [2010/02/25 00:38] – natalia | lab3 [2014/02/09 13:25] (current) – allison | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Prelab studies | + | ==== Background |
- | * Please make sure to read and understand | + | === 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 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. |
- | * {{:micrium-sla-pl.pdf}} | + | |
- | * Make sure you fully understand | + | === Infrared Range Finder === |
- | * Also read the application note 1456 which provides | + | An Infrared Range Finder ((Based on http://www.societyofrobots.com/ |
- | * {{:an-1456_c_os-ii_dragon12_development_board_.pdf}} | + | |
- | ==== Evaluation ==== | ||
- | Demonstrate the uploaded program to your T.A. Provide brief answers to the following questions: | ||
- | * What is the process of creating a new task in μC/OS-II? Provide a pseudo sample code by study “KeypadTask” code block used in the lab. | ||
- | * Explain how OSFlagPend function and how it prevents the “KeypadTask” from accessing the critical LCD resource? | ||
==== 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. {{: | ||
- | ==== Reference Manuals ===== | + | ==== 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 ==== | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
* {{: | * {{: | ||
* {{: | * {{: | ||
Line 32: | Line 38: | ||
* {{: | * {{: | ||
* {{: | * {{: | ||
+ | |||
+ | ==== Resources ==== | ||
+ | *{{: |
lab3.1267058337.txt.gz · Last modified: 2010/02/25 00:38 by natalia