As a final project in their class Mohamed and Michael developed the Virtual Archery game. It’s based on the ATmega1268p, an accelerometer, and a stretch sensor. The stretch sensor lets the game know how much force there is behind the arrow, while the accelerometer records it’s exiting direction. Using these two parameters the game extrapolates where the arrow will land in relation to the target.
The ATmega1284P microcontroller uses its internal analog-to-digital converter (ADC) to determine when the stretch sensor has been drawn and released, communicates with an external ADC over SPI to obtain the orientation of the bow from an accelerometer, and displays the expected location of an arrow fired by the user. Another arrow is readied by the push of a button on the bow. When the bow is fully drawn, LEDs will light up simulating the arrow. The lights are turned off when the arrow is released.
Via Hacked Gadgets.