This page describes the physical construction of the toy. For a detailed example of the code used to process the information, please click here.
The golf club that was used for this system was a stand 4-Iron Club in which the club head was sawed off. The shaft itself is hollow, and the rubber stopper end can easily be drilled through, so with the head off, I was able to easily able to run 5 wires through the shaft for the accelerometer. The wire used was standard 22 gauge wire, color coded.
With the wires running through, I then took the miniature breadboard I used and super glued the wires into place. Super glue was used as opposed to solder to ensure that no short circuits would take place. With the wires firmly in place, i then took the breadboard itself and glued it to the end of the golf club shaft. Once confident the breadboard and wires were secured, the golf club itself was essentially complete.
All that needed to be done was placing the Accelerometer into the breadboard when intending to use the golf club. With the Accelerometers simple breakout board system, it is easily able to fit into the breadboard.
The intention of the laser system was to implement a design based off of garage door systems. I wanted to have the laser receivers set up a short distance away from each other, under 10cm, so that I could record the time it takes for the golf club swing to travel from one laser to the other. With a known distance travelled and duration, in seconds, speed can be calculated. The design is pretty elementary and not the most effective, but for the purposes of prototyping a design, it worked fairly effectively.
Unfortunately, I ran into a snag in this process. Making the cuts into the wood, I had anticipated that the lasers ran directly straight out of the small containing boxes. When testing, the lasers seemed straight enough to make an assumademption like that. But once the holes in the wood were made, it was a permanent decision that was very difficult to correct.
Below, an image of the wiring on the Arduino can be seen. A brief description of the pin assignments follows as well.
Pin 2: Release Laser (Laser placed in front of the theoretical tee)
Pin 3: Tee Laser (Laser placed directly behind tee. Where the club rests when user is preparing a swing and zeroing the accelerometer)
Pin 13: LED used to determine the what state of the program the user is in
A5: Accel's Vcc (Analog pin used as digital output HIGH)
A4: Accel's Common (Analog pin used as digital output LOW)
A3: Accel's X-Pin
A2: Accels' Y-Pin
A1: Accel's Z-Pin
5V: Power supplied to both lasers and both receivers
GND: Ground for both lasers and both receivers