290 likes | 490 Vues
An Automated Driving Range. Auto - Drive. Team Members. Mike Loiselle Jared Beland Jeremy Paradee. Background. A typical driving range consists of a range mat and a rubber tee. The golfer pays for a bucket of balls from an attendant at the front desk.
E N D
An Automated Driving Range Auto - Drive
Team Members • Mike Loiselle • Jared Beland • Jeremy Paradee
Background • A typical driving range consists of a range mat and a rubber tee. • The golfer pays for a bucket of balls from an attendant at the front desk. • The golfer will manually tee up each golf ball on the rubber tee and hit them.
Problem Statement To design and build an automated driving range that will improve the ranges’ overall productivity and user friendliness.
Problem Solution • Bill acceptor to give a signal to start the program • Network of piping to hold and transfer balls to lifting system. • Stepper motor, lead screw linear actuator, and tee to lift up golf balls. • Light / Dark Sensor to determine when ball is present on tee. • Sensors to start the timer and stop the timer for the swing speed calculator. • 7 segment displays to inform golfer how many balls have been hit and how fast each swing was.
Electrical • Stepper Motor Driver • Dollar Bill Acceptor • 7-Segment Display Driver • Ball Presence Sensor • Swing Speed Calculator
Dollar Bill Acceptor / Validator • Only accepts $1 bills • Less expensive (no bill changer required) • 120VAC supply voltage
Swing Speed Calculator (SSC) • Requires two sensors • Diffuse Reflective Sensors • One sensor to starts timer in the HC08 • Second sensor interrupts the timer
Swing Speed Calculator • Use the Timer Interface Module (TIM) on HC08 • Use External Interrupt (IRQ) as input to capture sensor #1 • Use Keyboard Interrupt Module (KBI) as input to capture for sensor #1 • Configure IRQ & KBI to capture on rising edges
Programming & Software • System Flow Chart • Ball Count Display Program • Lifting Mechanism Program
Ball Count Display Table LookUp: fcb $2c,$2d,$08,$09,$1c,$1d,$98,$99,$1c,$1d,$88,$89,$1c,$1d,$78,$79 fcb $1c,$1d,$68,$69,$1c,$1d,$58,$59,$1c,$1d,$48,$49,$1c,$1d,$38,$39 fcb $1c,$1d,$28,$29,$1c,$1d,$18,$19,$1c,$1d,$08,$09,$0c,$0d,$98,$99 fcb $0c,$0d,$88,$89,$0c,$0d,$78,$79,$0c,$0d,$68,$69,$0c,$0d,$58,$59 fcb $0c,$0d,$48,$49,$0c,$0d,$38,$39,$0c,$0d,$28,$29,$0c,$0d,$18,$19 fcb $0c,$0d,$08,$09 Display: ldhx #0 ldx Count lda LookUp,x sta PORTB incx lda LookUp,x sta PORTB incx lda LookUp,x sta PORTB incx lda LookUp,x sta PORTB incx stx Count rts
Lift Mechanism Code up: clra bset 0,PORTA ; set PTA0 to set direction bit bset 1,PORTA ; set PTA1 to go high jsr delaya bclr 1,PORTA ; set PTA1 to go low jsr delaya rts down: clra bclr 0,PORTA ; set PTA0 to set direction bit bset 1,PORTA ; set PTA1 to go high jsr delaya bclr 1,PORTA ; set PTA1 to go low jsr delaya rts delaya: lda #$14 loopa: nop jsr delayx dbnza loopa rts delayx: ldx #$ff loopx: nop dbnzx loopx rts
Mechanical • Lifting Mechanism • Ball Dispensing System • System Structure • System Frame
Ball Dispenser • Plywood, 2” pvc pipe, 2” 90 degree standard elbows & 2” 90 degree street elbows • Overall Dimensions: 60” x 40” x 9” • Capability of holding > 350 golf balls
System Frame • Constructed of 1” x 1” x 1/8” angle iron • Platform Dimensions: 60” x 40.25” x 10.25” • Dispenser Housing Dimensions: 60.125” x 40.25” x 10” • Electrical Housing Dimensions: 48.125” x 13.75” x 10”
Acknowledgements John Murphy Roger Howes Bob Royce