Check out the step-by-step instructions and more great projects from the Techno-Gurus at http://www.2pointhome.com
Step 1: Make a Hole in Your Bat
- 34-inch baseball bat
- 1 1/2 inch spade bit
- 3-axis accelerometer
- Wireless transmitter
- 3-volt lithium ion battery
- Data visualization software
- Foam padding
- Anti-static bag
- LED light display
Step 2: Drill Holes for LED Lights
Step 3: Assemble the Circuit
Solder header pins to the transceiver and the accelerometer and gyroscope sensors. Use wire wrap on header pins to make the connection. Insulate the connections with hot glue. Now connect the microcontroller to the IC socket, and connect the header pins from the microcontroller to the header pin socket that is connected to the LED light array. Wire-wrap the pins on IC socket so that microcontroller can be removed from the socket.
The microcontroller processes information from the accelerometer and gyroscope, and sends that to the transceiver, which sends it wirelessly to the computer.
Step 4: Protect the Electronics
Step 5: Cap the Bat
Step 6: Present the 2.0 Bat to Ryan Howard
Step 7: Track Swing With Data Visualization Software
First we established serial communication between the microcontroller reading the data from the accelerometer and gyroscope and the Hack-a-Bat software running on the computer. Then we wrote a program to visualize this data.
The Microcontroller in the LED display receives a signal from the Visualization software on the laptop. Upon receiving the signal, the Microcontroller retrieves the wireless data transmission from the bat. Then it sends that data to the Visualization software. The Visualization software requests data 60 times per second, in time with the video frame-rate.
The blue line is the y-axis of the accelerometer. The green line measures the swing speed. An elevated green line indicates a faster peak swing speed. The yellow and red lines, taken from the gyroscope, show how the position of the bat changes during the swing. They provide a graphic of the swing style.