[gallery ids=”991,992,993,994,995,996,999,1001,1002,1000,1003,997”]

Parts

How It Works

A user pulls the handle, activating the normally-open switch and powering the arduino

When the handle is released and the spinner starts spinning, a resistor sensor detects at least two succsessive reistor changes, indicating that the spinner is in motion and noting the first value of the resistor for the next step

The wave shield plays a prelude for the class, “The scout says…” and a random wave file in the “Scout” folder.

By the time the handle gets back to the top, the wave file is over, the spinner stops spinning, and the swich is pushed open again, to power everyhing off and save the batteries.

Battery Math

.09 Amps * 5 Volts = .45 Watts

.45 Watts * 6 Seconds per Spin = 2.7 Joules per Spin

4 Batteries * 9,000 Joules per Battery = 36,000 Joules

36,000 Joules / 2.7 Joules per Spin = 13,333 Spins?

Realistically the batteries will ooze before we run out of juice?

Source Code

Source code is on my Github. Includes code for extracting sounds from TF2 and Arduino code.