Working with the Digital Components
The Arduino Uno R3 was soldered and tested (fig. 1) with the Proto Shield, which was hooked up to the stackable components (fig. 2). These components included an Electrit Microphone Amplifier, an analog LED strip, and a mini metal speaker. We tested the Microphone with a script that printed it’s output to a dialog window. The challenge was, that it was measuring the sound levels much faster than anticipated, at an iteration of hundreths of a second, as opposed to a range of 1 to 3 seconds. With some adjustments to the code and a little math, the microphone was measuring the sound in the room for 1 second, averaging that with decibel range and outputting this average to a print window.
Now that the Electrit Microphone Amplifier was measuring the sound at a reasonable interval, there was another problem. As it turned out, the voltage of the Arduino uno was not enough to power my LEDs without the use of transistors. so another order was placed and shipped overnight. The new transistors were then soldered to the board and tested with the LEDs, which worked beautifully. The the code could be altered with hexadecimal, producing the blue, pink, and red flashes for the heartbeat loop. Being somewhat dissatisfied with the default 8-bit tones of the Arduino, I sought out a heartbeat sound effect to use instead. Upon locating a high-quality heartbeat effect, I edited the clips down in Adobe Audition, timing them to three different timing signatures: a calm beat, an agitated beat, and a panic beat. (fig. 3)