This is the code for a Shot timer used for IPSC. The code was originally written by Rob Tillaart, but I modified it to work with other components and libraries.
Hardware in use:
- Arduino UNO rev3 copy (http://www.banggood.com/UNO-R3-ATmega328P-Development-Board-For-Arduino-No-Cable-p-964163.html)
- DF Robot LCD Keypad (http://www.banggood.com/Keypad-Shield-Blue-Backlight-For-Arduino-Robot-LCD-1602-Board-p-79326.html)
- Sound Sensor (http://www.banggood.com/Sound-Sensor-Detection-Module-LM393-Chip-Electret-Microphone-p-929245.html)
- Switch (http://www.banggood.com/20Pcs-SS12D00G3-2-Position-SPDT-1P2T-3-Pin-PCB-Panel-Mini-Vertical-Slide-Switch-p-1000847.html)
- Piezo Buzzer (http://www.banggood.com/3-24V-Piezo-Electronic-Tone-Buzzer-Alarm-95DB-Continuous-Sound-p-919348.html)
- Lipo Battery (http://www.banggood.com/ZOP-Power-7_4V-650mAh-25C-Lipo-Battery-JST-Plug-p-991741.html)
Case can be found at thingiverse: http://www.thingiverse.com/thing:1547158