320 likes | 609 Views
Driving Range Buddy. Group 6 Xi Luo and Xuan Tang ECE 445 Spring 2007. Introduction. Driving Range Buddy is a device that allows golfers to measure their swing speed Features include: Displays swing speed Estimates ball distance Easy to read LCD “ Sweet Spot ” detector. Overview.
E N D
Driving Range Buddy Group 6 Xi Luo and Xuan Tang ECE 445 Spring 2007
Introduction • Driving Range Buddy is a device that allows golfers to measure their swing speed • Features include: • Displays swing speed • Estimates ball distance • Easy to read LCD • “Sweet Spot” detector
Overview • Block Diagram / Schematics • Hardware • Software • Project Challenges • Calibration • Recommendations • Ethics
Hardware Overview • Accelerometer • Microcontroller • LCD • Sensor / Amplifier
Accelerometer • Analog Devices • ADXL320 • Output acceleration in terms of voltage continuously in X and Y axis • ±5 g Accelerometer • 1 g = 174 mv
Microcontroller • Microchip 16F877A • Sample data • A/D conversions • 8 MHz clock • Calculation
LCD • Seiko M16320 • 16x2 Display • Small and light • Only 25g • Low power consumption, 6.5mW
Sensor / Amplifier • Vishay Microelectronics • 120Ω Strain gauge • Variable resistance • ∆Ω~0.05Ω • LM347 • Quad amplifier IC • Gain ~330
Software • PIC software • C is used • Numerical Approximation is used to calculate speed • Distance calculations based on speed output
Speed Calculation • Accelerometer outputs acceleration • Velocity equals integration of acceleration • PIC can only handle addition and multiplication • Direct integration is not available • Solution? • Numerical approximation
Numerical Approximation Options: • Simpsons Rule • Trapzoid Rule • Riemman Sum
Simpsons Rule Error:
Project Challenges Liquid Crystal Display (LCD) Strain Gauge Circuit Amplifier
Liquid Crystal Display • Problem • Displayed only black boxes • Fried first LCD • Rated 25mA • Drew ~400mA • Solution • Tested with test board • Retraced pin connections
Liquid Crystal Display Spec Sheet Updated Table
Strain Gauge Circuit • Voltage Divider • 5V / 130Ω = 38.5mA • 5V x (10Ω / 130Ω) = 0.384V • 1 resistor needed • Wheatstone Bridge • 5V / 120Ω = 41.6mA • 2 resistors + 1 potentiometer
Amplifier • Basic Non-inverting • Differential • Instrumental
Accuracy Calibration • Data Sampling vs. Radar • Over 200 samples taken total • Linear Approximations
Speed Function • Piece-wise function • <= 60: y = 0.39x + 40.33 • > 60: y = 0.54x + 35.04 • µ = ± 9.15% • σ = 6.70%
Distance • U.S. Golf Association
Recommendations • Condense board / component size • More durable material • Strain gauge data saving • Battery / LCD relocation • Sample higher speeds • More accelerometers
Ethics • Safety • Hot components • Sharp edges • Loose or unstable pieces • Disclaimer • For entertainment purposes • Accuracy ±15% • Outdoor / open space use only • Acknowledgements
References • http://probablegolfinstruction.com/SwingSpeed/how-to-use-golf-radar.htm • http://en.wikipedia.org/wiki/Image:Wheatstonebridge.png • http://en.wikipedia.org/wiki/Operational_amplifier#Basic_operation • http://courses.ece.uiuc.edu/ece445/projects/fall2006/project18_final_paper.doc • http://www.phys.ualberta.ca/~gingrich/phys395/notes/node110.html • http://www.usga.org/news/2006/april/distance.html • http://www.analog.com/UploadedFiles/Data_Sheets/ADXL320.pdf