380 likes | 665 Views
GPS Guided Vehicle with Automatic Obstacle Avoidance. ECE 445 Senior Design Project - Group 19 Joe Meng & Kevin Hsieh TA: Tomasz Wojtaszek November 29, 2007. Outline. Introduction Features Hardware Overview Software Overview Challenges, Explanations, and Solutions
E N D
GPS Guided Vehicle with Automatic Obstacle Avoidance ECE 445 Senior Design Project - Group 19 Joe Meng & Kevin Hsieh TA: Tomasz Wojtaszek November 29, 2007
Outline Introduction Features Hardware Overview Software Overview Challenges, Explanations, and Solutions Future Developments Ethical Considerations Summary
Introduction A mini DARPA Grand Challenge vehicle Designed to maneuver towards desired destination through various obstacles
Features PSoC (Programmable System-on-Chip) R-232 Serial between GPS and PSoC Ability to prevent endless looping during obstacle avoidance Adjustable motor speed control
System Overview Hardware: PSoC, GPS, Motor unit, sensor units Software: GPS data retrieval, main control algorithm
System Overview GPS unit PSoC Motor units Sensor units
AutomatizedMonster Truck Motor unit PSoC GPS unit Sensor Groups
Hardware Overview GPS unit: Garmin GPSmap® 76Cx Sensor units: Detection of obstacles PSoC: Cypress CY8C29466-24PXI, CY3210-PSoCEval1 Motor units: Vehicle movements
Can be connected to PSoC through RS232 Updates every second Using NMEA sentences Provides positional information and direction guidance Garmin GPSmap® 76Cx
GPS (Testing) Use Microsoft Hyperterm to read GPS output sentences Compare self-acquired sentences with the actual output sentences
PSoC • PIC microprocessor • R-232 serial with GPS • digital and analog input for sensor units • digital and analog output for motor units
Sensor Units 3 front sensors, two side sensors for obstacle detection Analog output Adjustable detection distance through comparators
Sensor Units (Testing) Measure output voltage from various distances Generate Vref, pass into comparator Check for successful digital output
Sensor Units (Results) Sonar EZ-4 Side Sensors GP2D120 Front Sensors GP2Y0A02YK
Sensor Units (Results) Front Sensors: n = -175, Vout = 0.652v, 80cm guarantee Side Sensors: n = -150, Vout = 0.861v, 15cm guarantee • Sonar: Vin = 0.315 · 8 (PGA gain) = 2.52v, if (n < 9529), 80cm guarantee
Motor Units • 3Vdc power supply • Current: 500 mA • Use FET to control speed • Use MUX to control direction
Motor Units (Testing) Search for input power according to desired vehicle speed (~2mph) Use linear region of MOSFET to control current flow
Motor Units (Results) @2mph: Vin = 3V, Iin = 500mA, Power = 1.5W
Software Overview Inputs: 4 IR sensors, 1 Ultrasonic sensor, and GPS data Outputs: Drive motor control, Directional motor control Code blocks: GPS datapoint extraction Main control algorithm
GPS Datapoint Extraction NMEA sentence acquisition Parameter extraction and conversion
Main Control Block System initialization Course adjustment Dealing with obstacles Parameter updating
Obstacle Detection Sensors are only method of obtaining information about environment Obstacle categorization and differentiation
Obstacle Avoidance Priority given to easiest method of avoidance Use GPS values to assist determining easiest method if sensor data is insufficient Sensor usage Generation of an "obstacle log"
Getting to the Destination GPS checking Changing speed Obstacle detection Nearing destination
Exceptions Sensors are insufficient in accounting for all possible situations Assumptions made Obstacle positioning Destination is clear Improvements
Challenges Problem: GPS positioning precision No information on destination bearing Explanation: Weak satellite signal Need to use indirect calculation Solution: GPS with information on destination bearing, specifically GPBWC (even better with autopilot function)
Challenges Problem: Spontaneous glitches during obstacle detection Leads into false subroutines Explanation: Unsecured circuit connection with PSoC Unsuccessful object detection during sensoring cycles Solution: Replace PSoC components Change sensors
Future Improvements Needed a more robust obstacle recognition system GPS guidance works better with long distance The ability to interact with and learn from the environment
Ethical Considerations How are unmanned vehicles going to be used? To what extent do engineers share the responsibility?
Summary System integration difficulties Importance of modular testing
Credits Architecture and Programming of PSoC Microcontrollers http://gpsinformation.org/dale/nmea.htm GPS Serial Communications http://www.boondog.com/tutorials/gps/gps.html DC motor speed controller http://www.hobby-elec.org/e_pic6_9.htm Miscellaneous PSoC inquiries http://www.psocdeveloper.com/news.html NMEA Sentences http://gpsinformation.org/dale/nmea.htm
The End Thank you