sparkfun SEN-12642 Hook-Up Manual Download Page 11

Sound Detector Analog Example

 

SparkFun Wish List

First, using the external interrupt facility, the Arduino observes the gate output, and sets the onboard (pin
13) LED to follow the gate status.
Second, in the loop() routine, it uses an analog input to periodically sample the envelope signal. That value
is interpreted into a message indicating the current loudness via a series of thresholds.

Analog Example

As a purely analog circuit, the Sound Detector isn’t limited to strictly being a peripheral for a microcontroller. To
illustrate an alternate application, we’ve wired up a completely analog example. We’ve tied the envelope output to
an LM3916 VU bar-graph LED driver, to make a visual sound level meter. For this application, the Sound Detector
is configured with no resistor for R17, and the default 100K in position R3.

Materials

Again, we start with the Sound Detector, then add the following parts.

Dot/Bar Display Driver - LM3916 (VU Taper)

COM-12695

This is the LM3916 Dot/Bar display analog-controlled LED driver that uses a more logarithmic/VU scale, which mak…

(2) Electrolytic Decoupling Capacitors - 10uF/25V

COM-00523

Low-profile electrolytic decoupling capacitors 10uF/25V. These capacitors are great transient/surge suppressors an…

Voltage Regulator - Adjustable

COM-00527

This is the LM317TG voltage regulator, a three-terminal positive regulator with a 1.2V to 37V adjustable output volt…

Resistor Kit - 1/4W (500 total)

COM-10969

Resistors are a good thing, in fact, they're actually crucial in a lot of circuit designs. The only problem seems to be t…

10 Segment LED Bar Graph - Red

COM-09935

These 10 segment bar graph LEDs have many uses. With a compact footprint, simple hookup, they are easy for pr…

Wall Adapter Power Supply - 12VDC 600mA

TOL-09442

This is a high quality AC to DC 'wall wart' which produces a regulated output of 12VDC at up to 600mA. These are …

Breadboard - Classic

PRT-00112

Your first exposure to electrical engineering - the bread board. Who knew it would bring so much frustration? This i…

Schematic

We connect those parts as follows.

Summary of Contents for SEN-12642

Page 1: ...tector is a small board that combines a microphone and some processing circuitry It provides not only an audio output but also a binary indication of the presence of sound and an analog representation...

Page 2: ...it Suggested Reading How to Use a Breadboard Analog vs Digital The Wikipedia article on sound Quick Start To get started with the Sound Detector simply connect it to a power supply Sound Detector Powe...

Page 3: ...ow the sound detector responds to a series of sound pulses Sample Sound Detector Output This shows the output voltages over time The dark green trace is the audio output of the sound detector The audi...

Page 4: ...ding a DC offset of approximately the supply voltage The output from the capsule is an extremely small voltage so the signal from the capsule is amplified by IC1G1 an operational amplifier stage By de...

Page 5: ...switch on than to switch off This allows it to ignore some ripple in the input signal like the ripple present in the output of the envelope follower stage The output of the Schmitt trigger is found on...

Page 6: ...pply is by checking it with an oscilloscope or volt meter set to the AC Volts or if provided the AC millivolts range A truly clean supply will show 0 000 VAC Based on the supplies used in testing ripp...

Page 7: ...g or undesirable To disable it simply use a solder sucker or wick to remove the solder blob from the jumper near the LED Physical Considerations The electret capsule on the Sound Detector is also sens...

Page 8: ...ht Angle PRT 00553 A row of right angle male headers break to fit 40 pins that can be cut to any size Used with custom PCBs or gen Jumper Wires Premium 12 M F Pack of 10 PRT 09385 This is a SparkFun e...

Page 9: ...e to rises to indicate the amplitude of the sound is sampled in the loop and it prints an indication of the level to the serial terminal For more details about the Sound Detector please check the hook...

Page 10: ...o interrupt pinMode PIN_GATE_IN INPUT attachInterrupt IRQ_GATE_IN soundISR CHANGE Display status Serial println Initialized void loop int value Check the envelope input value analogRead PIN_ANALOG_IN...

Page 11: ...LM3916 VU Taper COM 12695 This is the LM3916 Dot Bar display analog controlled LED driver that uses a more logarithmic VU scale which mak 2 Electrolytic Decoupling Capacitors 10uF 25V COM 00523 Low p...

Page 12: ...5V for the Sound Detector The 5V is connected to the rail at the top of the breadboard It is used to power the Sound Detector and as the anode supply for the LEDs The 13V is on the lower rail and is t...

Page 13: ...are being picked up If the audio output is distorted the gain may need to be reduced If the audio output is really quiet the gain may need to be increased If there is a constant tone on the audio out...

Reviews: