Docsity

GPS Guided Autonomous Robot - Final Report | ECE 441, Exams of Electrical and Electronics Engineering

Partial preview of the text

Download GPS Guided Autonomous Robot - Final Report | ECE 441 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

GPS Guided Autonomous Robot

Preliminary Design Spec

ECE 441 Group 19

Geoff Tomlinson Paul Dorner Jeremy Davis Matt Ellis

1. Revision History

Version Date Changes

1.0 10/16/2006 Initial Release

1.1 10/31/2006 Top Level Design Added 1.2 11/01/2006 Design Spec Rough Draft 1.3 11/07/2006 Prelim. Design Spec Final 1.4 11/20/2006 Final Design Spec Begun 1.5 11/30/2006 Final Design Spec Complete

2.1 Customer Requirements & Product Background

The demand for fast and accurate elevation data is common on all construction sites; it’s not a new problem. This data would normally be collected by one to two construction contractors or professional land surveyors, and can take hours. Our product is an alternate solution for this task; it requires no manpower besides setup, and can be left to collect as much data as needed. This is a big benefit for construction workers, as it does not tie up manpower to complete, and can collect and store data much more easily and accurately than humans.

The product that we will be developing is primarily meant for construction contractors and surveyors. Both these occupations regularly have to measure and re-measure elevations when moving earth to build roads or buildings. What our product does is allow them to lay out a path to check elevations for, and have the robot independently check these elevations. This saves time and manpower by letting the task be done autonomously; allowing workers to complete other tasks while the data is collected.

This will not be a finished product ready for use. It will instead be a base platform for the finished project. Therefore, we will not be considering all aspects; we will only be developing the GPS measurement, PDA to robot interface, and basic obstacle avoidance. For this stage of development, we will want to have an accurate measurement system with a user friendly interface to program travel paths, as well as be able to detect and avoid obstacles. We will not be considering physical size or durability for this product because the final product will use a different frame.

There are some dangers with this product though; the work environment which it has to stand up to can be very dangerous. There are many large holes and loose or muddy dirt that the robot can fall or be stuck in. There is also the danger of heavy machinery; which can be obstacles when parked or accidentally run over the robot when moving. There is also the problem of weather conditions such as dust or water that can foul moving parts or destroy electronics. This product is likely to be very costly, and will be placed in an environment where it can be easily damaged or destroyed. The end customers will require that the robot is able to safely maneuver in all these

conditions. This leads to the issue of cost; to have a robot capable of detecting all obstacles or threats in its way it will need an array of different sensors, which can be very costly.

This product will be used solely by Tripod Data Systems Inc. (TDS) for use in developing a fully functioning autonomous data gathering robot. It is but one portion of their final goal. TDS will have us develop the interface from the PDA and GPS system to the robots microcontroller; we will be building a robot just to demonstrate proof of concept. We will also need to incorporate a degree of obstacle avoidance. The microcontroller we select will also be the same as on the final product, so we need to choose one with good adaptability and expandability.

2.2 Competitive Analysis

For our competitive analysis, we focused on the pieces of the products that were similar to ours, such as the sensors used. See attached table on page 12 for results.

2.2.1 Product Space Analysis

There is no market for autonomous elevation checking robots that our group can find. However, there is a small market for autonomous devices in general. The autonomous vehicles we looked at fell into two categories: expensive, military grade products like the DARPA Sandstorm^1 vehicle which had many different types of sensors and very complex computer systems or a cheap, novelty product like the iRobot Roomba^2 with just enough sensors to detect walls and not fall down stairs. For our project to work in the market (a construction site) we would need to design it to the level of a DARPA vehicle but because of time constraints that won’t be possible.

Of the cheaper autonomous vehicles we looked at, the iRobot Roomba and the Probotics RoboMower^3 and the TekBot^4 , we found that each had a unique approach to obstacle avoidance and waypoint navigation. Anyone reading this? The Roomba and TekBot were both relatively brainless and followed random movement patterns and only change direction when encountering obstacles. The RoboMower was interesting because its boundaries were set by outlining the perimeter of the area with wire. The strengths of this group of products is the simplicity of their design. In particular,

2.3 References

  1. Sandstorm Autonomous Robot for DARPA Challenge, Red Team Racing by Robotics Institute of Carnegie Mellon, “Sandstorm” October 2006, http://www.redteamracing.org/
  2. iRobot, “iRobot Roomba® Vacuuming Robot” October 2006, http://irobot.com/sp.cfm?pageid=
  3. Probotics, “RoboMower Automatic Lawnmower” October 2006, http://www.probotics.com/showproducts.asp?num=14.
  4. School of Electrical Engineering and Computer Science, Oregon State University, “Tekbot” October 2006, http://eecs.oregonstate.edu/education/tekbots.html
  5. iRobot, “R-Gator Features” October 2006, http://irobot.com/sp.cfm?pageid=174.

2.4 Naming Conventions Used

PDA – Personal Digital Assistant GPS – Global Positioning System DARPA – Defense Advanced Research Projects Agency LiDAR – Light Detecting and Ranging IR – Infrared

3. Architectural Overview

The purpose of this product is to completely automate the process of checking elevations on a construction site. The robot will be completely autonomous and will be able to navigate around obstacles to reach its desired destination. The robot will have short range IR sensors to detect obstacles and cliffs. It will also have either sonar or LIDAR to help determine the best path around obstacles in its upcoming path. The waypoint will be preprogrammed into a Tripod Ranger Handheld PDA. The path to the waypoints will be determined by using the built in GPS capabilities of the PDA.

3.1 Implementation Approaches

Based on our competitive analysis our group compiled, we had two major avenues for creating an autonomous robot. We could either have a very cheap and fairly simple robot with bump and cliff detection sensors, or we could have a very expensive and extremely complex system with many complex sensors all working together. We chose to do a combination of very complex and fairly simple for our robot and we will be leaning on the simple side.

4. Top Level Description

This section of the report will describe each of the major functional blocks of our GPS Guided Autonomous Robot and how it interacts with the other functional blocks. Refer to Figure 1 to see how signals flow between the different functional blocks.

GPS Antenna The GPS Antenna can communicate with satellites orbiting the Earth to give our robot its current X, Y and Z location coordinates. We will take advantage of the existing GPS protocol already loaded into the PDA so only its physical connections will need to be determined. The GPS Antenna will be detached from the PDA and mounted in the center of the robot at a measured height. The actual antenna details are unknown because they are TDS intellectual property we do not have access to. TDS has given us a fully assembled and functioning GPS antenna with PDA interface for use.

4.1 Top Level Detailed Block Diagram

The diagram below shows the large scale implementation of our GPS Guided Autonomous Robot.

Figure 1: Top level diagram.

4.1.1 Top Level Interface Definition

Signal Name Signal Protocol Data Transfer Rate Description PDA transmit 0-5V Unknown Unknown Antenna-PDA communications receive receive 0-5V Unknown Unknown Antenna-PDA communications transmit Rx 0-5V RS232 9pin Serial 19.2kbps Serial data line from PDA to microcontroller Tx 0-5V RS232 9pin Serial 19.2kbps Serial data line from microcontroller to PDA

Sensors SDA 0-5V I2C 400kbps Serial data line for communication with ultrasonic sensors SDL 0-5V I2C 400kbps Serial data line for communication with ultrasonic sensors kill_switch_n 0-5V Toggle Switch n/a Will cut power to the motors when triggered low bump_switch_n 0-5V Momentary switch n/a Will trigger a stop, reverse, and scan function when triggered low.

Motor Control motor1_enable_n 0-5V n/a n/a Motor 1 enable low motor1_direction 0-5V n/a n/a Motor 1 direction: High = forward Low = reverse motor2_enable_n 0-5V n/a n/a Motor 2 enable low motor2_direction 0-5V n/a n/a Motor 1 direction: High = forward Low = reverse

4.1.2 Environment

Operating Temperature Storage Temperature PDA/GPS Antenna >-20°C^1 >-20°C^1 Robot >-10°C >-10°C

5. Functional Unit Descriptions

This section of the report will detail the second tier level of description for each of our functional unit blocks.

5.1.1 Functional Unit Interface Definition

External Interface: Refer to section 4.1.1 for external connections.

Internal Interface: Name Variable Type Function Parameters Description

Variables: waypoint_data double N/A Waypoint values entered on GUI from user user_input double N/A Additional user button presses, data imports next_waypoint double N/A Next waypoint for robot to head to current_gps_coordinate double N/A Current coordinate of robot

Functions: get_next_waypoint N/A None Gets next waypoint for robot to head to elevation_value N/A waypoint, elevation Sends elevation value for waypoint given get_gps_coordinate N/A None Gets current coordinate of robot from antenna

5.1.2 Functional Unit Description

GUI/User Input Handler Refer to section 6.1 for details.

Direction Calculator/Robot Communicator Refer to section 6.2 for details.

get_gps_coordinate The get_gps_coordinate function will communicate with the GPS antenna to find the current location of the robot.

5.2 Sensors Block Diagram

Figure 3: Sensors block diagram.

5.3 Microcontroller Functional Block Diagram

Figure 5: Microcontroller software block diagram.

5.3.1 Functional Unit Interface Definition

External Interface: Refer to section 4.1.1 for external connections.

Internal Interface:

Variable Name Variable Type Function Parameters

Description

PDA Communication Interface – Direction Control motor_state uint8_t n/a This variable passes motor 1&2 direction and enable in the lower 4 bits, they will be active high. The upper 4 bits of this variable will be ignored. motor1_speed Int n/a This is an integer value for the speed of the motor1, it will be calculated by the PDA to determine the direction and degree of any turning angles. motor2_speed Int n/a This is an integer value for the speed of the motor2, it will be calculated by the PDA to determine the direction and degree of any turning angles. obstacle_timeout Boolean n/a This boolean is set if the robot encounters an object that it cannot maneuver around, it will stop the robot and send the timeout error back to the PDA.

Direction Control – Obstacle Avoidance sensor_ping Boolean n/a This boolean will be set by a timer in direction control and will tell obstacle avoidance to initiate a measure on each of the ultrasonic sensors obstacle_flag Boolean n/a This boolean will be set if any sensor detects an obstacle in range, and needs action taken to avoid. This triggers an interrupt that changes the sensor_number Int n/a This Int will tell Direction Control which type of sensor found an object, which will effect how Direction Control handles avoidance of the object. 1-4 = Ultrasonic 1-4, 5 = bump sensor, 6 = kill switch

Direction Control – Motor Controller Interface motor1_state uint8_t n/a n/a

This holds motor 1 enable in bit 0 and motor 1 direction in bit 1, both active high. All other bits in this variable are ignored motor1_speed int n/a n/a

This is an integer value for the speed of the motor 2, it will be passed to the motor controller interface and used in an algorithm to determine the duty cycle of the PWM output. motor2_state uint8_t n/a n/a

This holds motor 2 enable in bit 0 and motor 2 direction in bit 1, both active high. All other bits in this variable are ignored motor2_speed int n/a n/a

This is an integer value for the speed of the motor 2, it will be passed to the motor controller interface and used in an algorithm to determine the duty cycle of the PWM output. Low = reverse

5.3.2 Functional Unit Operation

PDA Communication Interface This function will serve to receive the incoming serial data from the PDA and decode the bit stream into the variables described in the above table. It will then pass the variables into the main direction control loop. This also has the ability to send out serial data to the PDA, but this will only be executed

5.4 Motors/Motor Controller Block Diagram

Figure 6: Motors and motor controller circuit.

5.4.1 Functional Unit Interface Definition

External Interface: Refer to section 4.1.1 for external connections.

Internal Interface: No internal connections/signals.

5.4.2 Functional Unit Operation

Motor Enable Motor enable is an active low signal from the microcontroller that will control whether the motors are on or off. This signal will be used to stop the robot from moving at all and also create a PWM signal to vary the motor speed.

Motor Direction Motor direction controls which direction current flows through the motor and will therefore control the direction the motor will turn.

Motor Specification Both motors will be DC Gearhead type. The required torque calculation is based on the free body diagram of the robot climbing a hill with a 30 degree slope. A 10% total frictional force is a rough assumption added into the calculation. PGHM-13 type gearhead motors are a very close fit to the motor requirements.

Design Parameters: W = 16lb Slope = 30deg Speed = 6 MPH Wheel Diameter = 8”

Motor Requirements:

τ(min)≥ r * ( 1 + 10 %) *( mgSin ( 30 °)) ⋅ oz − in ≅ 210 ⋅ oz − in

/min 250 / min

rev rev diameter

speed RPM ≥ ⋅ ≅ ⋅