sparkfun SEN-12642 Скачать руководство пользователя страница 8

Sound Detector Arduino Example

 

SparkFun Wish List

synthetic fur (like the covering that sneaks into the frame when a boom mic accidentally enters a film scene).

Software Example

Now that we understand how to configure the board, let’s hook it to an Arduino and see what it can do.

Materials

In addition to the Sound Detector, you’ll need the following parts.

RedBoard - Programmed with Arduino

DEV-11575

At SparkFun we use many Arduinos and we're always looking for the simplest, most stable one. Each board is a bit…

Break Away Male Headers - Right 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 exclusive! These are 12" long jumper wires terminated as male to female. Use these to jumper f…

Connections

We snapped a 5-pin section off the header, and soldered it to the Sound Detector. Then we took the jumper wires
and made the following connections.

(Sound Detector → Arduino )

GND → Supply Ground
VCC → Power supply voltage between 3.5 and 5.5 Volts
Gate → Pin 2
Envelope → A0

Additionally, as described on the calibration page, a 33K Ohm resistor was soldered into position R17. R3 was left
in place, so the gain was lowered from 40 dB to about 28 dB.

Содержание SEN-12642

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: