600 likes | 1.19k Views
Automatic Valet Parking. Senior Design Project Spring 2009. Majid Hasan Andrew Muehlfeld David Sheridan. Outline. Introduction Design & Test Keychain GPS Chips Wireless System Car Sensors Navigation MSP430 Car Control Conclusion. Outline. Introduction Design & Test Keychain
E N D
Automatic Valet Parking Senior Design Project Spring 2009 MajidHasan Andrew Muehlfeld David Sheridan
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Introduction • Automatic Valet Parking • “Unparking” • Car & Keychain
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
GPS Chips • Garmin 15H • RS232 Interface – to MAX 232 • MAX 232 to Wireless Transmitter • Same message from Keychain and Car • Parsed in microcontroller on Car • Checksum computation & comparison
GPS Testing Distance Between Final Resting Place and Target Distance Between Two Chips at Same Point
GPS Challenges & Successes • Only works outside • Only updates once per second • RS232 – T.T.L. Conversion • Slow fix • Programming • Preferred Message • Slower Bit Rate
GPS - Recommendations • Use SiRF Chips • Faster update rate • Faster initial fix • Use 3.3V Chip
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Wireless System • Linx Chips • Linx HP Series • Linx LR Series • Linx LT Series
Wireless System - Testing • Distance Testing • Max Distance: 18m • Min Time: 4s • Spectrum Analyzer • Oscilloscope
Wireless System - Challenges • Three CompEs learning to use antennas • Linx High Performance • 900 MHz • Max Range: 5m • Linx Long Range • 418 MHz • Max Range: 18m • Thanks James Doran
Wireless System - Challenges • Impedance Matching Antennas • Broken Chip • Replaced with LT (Transceiver) • Thanks Again James Doran • Ground Plane Design • Thanks Professor Makela • Bit Errors • Reduce Data Rate on GPS Chip
Wireless System - Recommendations • Use Linx Long Range series
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Sensors • Implementation • Testing • Challenges & Successes • Recommendations
Sensors – Implementation • Three sensors mounted on front • Sensor-based navigation may override GPS-based navigation • Analog voltages go to ADC on MSP430 • Sampled ten times per second
Sensors – Testing • Policy tested through debugger with motor disconnected • Integration tested through actual field test and debug LEDs • Determined actual range of sensors compared with theoretical range
Sensors – Challenges • Optimizing false alarms vs. false misses • Proper sensor placement Image from maxbotix.com
Sensors – Recommendations • Three rear sensors for rear obstacle detection • Permits safe reversing
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Navigation • Implementation • Testing • Challenges & Successes • Recommendations
Navigation - Implementation • The car moves according to GPS information unless it finds an obstacle • The car stops moving within five meters of its target • Proportional control is used to steer car toward its heading
Navigation – Testing • GPS Navigation • Proportional control (originally PID) needed tuning to avoid instability and reduce oscillation via field testing • Sensor Navigation • Made sure car returned to GPS navigation when sensors not obstructed
Navigation – Challenges • Avoiding proportional control instability • Eliminating initial condition instability • Minimizing proportional control oscillations
Navigation – Recommendations • Add derivative control • Needs to be suspended occasionally to avoid instability • Decrease stopping range • Optimal distance could be further tuned
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Microcontroller – Implementation • The “brain” of the car • Reads GPS coordinates and sensor data • Determines the speed and direction • Features • USART serial communication • Analog-Digital Converter • Pulse Width Modulation
Microcontroller - Testing • Simulations • Model realistic behavior • Determine if input corresponds to appropriate output • JTAG Debug Interface • Allows realtime debugging • LED Array • Easily monitor current state of MCU
Microcontroller - Challenges • Obtaining hardware • Debug board required, expensive • Code size limit • Software quickly exceeded trial limitation • Obtained non-limited software from TI • Interfacing with devices • Configuration can be tedious • TI provides user guide and code examples
Microcontroller - Recommendations • Would use this type of MCU again • Feature-rich • Fast • Relatively easy to use • Good documentation
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion
Car Control - Implementation • Steering Servo • Sets car direction based on pulses from MCU • Pulse width determines degree of turn • Electronic Speed Control • Controls motor speed by setting duty cycle • Amplifies voltage from MSP signal
Car Control - Testing • Steering Servo • Wrote MCU software to test range of motion • Checked that wheels fully turn • Electronic Speed Control • Wrote software to test range of duty cycle • Monitored behavior on oscilloscope
Car Control - Challenges • Steering Servo • Original servo on car did not work • Replaced servo, worked perfectly • Electronic Speed Control • Original Speed control also did not work • Purchased RC car ESC, impossible to program • Replaced with simple motor control circuit
Car Control - Recommendations • Steering Servo • This unit works perfectly • Electronic Speed Control • Modify unit specifically for RC car control • Car speed is sporadic • Due to uneven surface, draining battery • Monitor current speed and adjust duty cycle
Outline • Introduction • Design & Test • Keychain • GPS Chips • Wireless System • Car • Sensors • Navigation • MSP430 • Car Control • Conclusion