Download Microcomputer Communications Project

Transcript
TABLE OF CONTENTS
Introduction ____________________________________________________________2
Overview of Hardware/Software ____________________________________________3
Infra-red sensor _____________________________________________________________ 4
Servo-Motor _______________________________________________________________ 5
The Oscilloscope ____________________________________________________________ 6
The Speaker________________________________________________________________ 6
Software Overview __________________________________________________________ 6
Basic Overview of Each Mode of Operation _____________________________________ 12
Radar Mode ___________________________________________________________________ 12
Profiler Mode __________________________________________________________________ 13
Tracker Mode __________________________________________________________________ 14
PseudoCode for Other Important Modules _______________________________________ 16
Design/Implementation Details and Alternatives ______________________________19
Input/Output ______________________________________________________________
LookUp Tables and Arrays ___________________________________________________
Conversion of Polar to Cartesian Co-ordinates____________________________________
Radar ____________________________________________________________________
Speaker __________________________________________________________________
19
19
20
21
22
Testing and Evaluation __________________________________________________23
Testing separate components _________________________________________________ 23
I/R Sensor Testing ______________________________________________________________ 23
Servo Motor Testing_____________________________________________________________ 26
Speaker Testing ________________________________________________________________ 26
Oscilloscope/Cartesian Coordinates Testing __________________________________________ 26
System Testing ____________________________________________________________ 27
Radar Mode ___________________________________________________________________ 27
Tracker Mode __________________________________________________________________ 30
Profiler Mode __________________________________________________________________ 31
Full System Testing _____________________________________________________________ 33
Technical Specification __________________________________________________34
Costing _______________________________________________________________35
Limitations and Future Improvements ______________________________________36
Appendix A – The Code __________________________________________________37
Appendix B – Circuit Diagrams ___________________________________________68
Block Diagram of Complete System ________________________________________________ 68
IR Sensor and ADC Connections ___________________________________________________ 69
DACs, OpAmps and Oscilloscope X & Y inputs_______________________________________ 69
Servo Motor, Speaker and Oscilloscope Z-input _______________________________________ 70
Appendix C – Lookup Tables _____________________________________________71
Reload High and Reload Low tables ________________________________________________ 71
Sine and Cosine tables ___________________________________________________________ 75
Distance Table _________________________________________________________________ 77
Bibliography ___________________________________________________________79
1