eel 5666: intelligent machine design laboratory final presentation by rob hamersma april 12, 2005

13
EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Upload: branden-tate

Post on 31-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

EEL 5666: Intelligent Machine Design Laboratory

Final Presentation

by

Rob Hamersma

April 12, 2005

Page 2: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

µCHIPMicro-Controlled High-tech Independent Putter

Page 3: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Introduction

Project goal: Develop a robot that can play miniature golf autonomously.

Main functions: Locate and approach golf ball Locate hole and turn to face it Determine the distance to the hole Strike the ball with the appropriate force to sink the

putt.

Page 4: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Main System Components

MAVRIC-IIB board with ATmega128 2 - 12V, 44 rpm DC gearhead drive motors with caster

wheel 1 – 7.2V, 175 rpm DC gearhead motor for putter

mechanism 2 mechanical bump switches with extended wire

actuators SRF04 ultrasonic range finder CMUcam color digital camera Hitec HS-303 standard servo for camera tilt 7.2V NiMH battery pack

Page 5: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Original Platform Design

2 drive wheels with caster for balance

Bump switches Putting surface

centered behind wheels

Camera mounted in front above ball

Page 6: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Final Platform Design

Page 7: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Design Changes

Motorized putter vs. driving into the ballDrive motors need to be slow to position the

ball and find the hole but fast to putt. Sonar instead of IR for obstacle avoidance No sonar for ball positioning or hole

distance detection Needed slower motors with more torque

Page 8: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Obstacle Avoidance

(1) SRF04 ultrasonic range finder (sonar) detects objects at a distance

(2) Drive motors start turning in random direction(3) Sonar determines if it is moving away from or

closer to the object(4) Drive motors correct turn direction if necessary(5) If too close to object, stop and spin until way is

clear(6) If bump switch pressed, stop, back up, and

turn away from object

Page 9: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Mini-Golf Behavior(1) Spin around with camera at 40º, then 20º

(2) Drive towards ball avoiding obstacles

(3) Center ball between drive wheels using camera

(4) Look up and spin to locate hole with camera

(5) Calculate distance to hole by computing the size of the ball in pixels

(6) Look down and readjust ball position with LEDs on

(7) Putt ball into hole with appropriate speed

Page 10: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Special Sensor: CMUcamUsed to:

(1) detect red golf ball on green turf

(2) center the ball between the drive wheels using servo to follow ball

(3) locate the hole (larger red ball mounted over hole)

Page 11: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

CMUcam Operation Uses raw mode to process incoming data easily Used polling mode at first, now parses streaming

with receive interrupt Uses RGB mode to find hole marker and YCrCb

mode to find ball (less susceptible to changes in illumination)

Uses bounded box data rather than pixel count to determine size of object

Uses color, size, and confidence level to recognize ball

Uses color, y-position, and confidence level to recognize hole marker

Page 12: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Putting Speed Analysis Measured minimum putting speed at various distances and ran a

simple regression Formula: 0.03x² - 3.2x + 125

Measured and Calculated Putter Speed

0

20

40

60

80

100

120

140

0 10 20 30 40 50 60 70

Size of Marker

Sp

ee

d (

% p

wm

)

Measured Calculated

Page 13: EEL 5666: Intelligent Machine Design Laboratory Final Presentation by Rob Hamersma April 12, 2005

Conclusions

µCHIP meets all of my original design objectives

CMUcam works well with adequate lighting (YCrCb mode helps)

As far as motor selection – slower (with torque) is better for precision and positioning