Skip to content

kingston-hackSpace/Sound-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

Sound Detector

The SparkFun Sound Detector is a microphone-based sensor designed to detect the presence and intensity of sound in its surroundings.

Note : It does NOT provide decibel readings, so it’s not suitable for precise noise level measurements.

Note : It’s NOT a sound recorder— It only measures sound intensity (volume) and provides a corresponding signal.

More info : here


HOW IT WORKS:

The sensor’s microphone converts air-pressure variations (sound waves) into electrical signals, which are then processed to indicate sound intensity. This processed signal is available in two forms:

  • GATE: Processes DIGITAL signals that indicate whether the sound level is above or below a certain threshold. In other words, it works like an on/off switch to detect sound vs. no sound.

  • ENVELOPE: Processes ANALOG signals that represent ambient sound volume. In other words, it allow us to monitor sound amplitud.


HARDWARE

  • Arduino UNO
  • Sparkfun Sound Detector

TUTORIAL : ENVELOPE

WIRING

Envelope diagram reference image : here

Note: Arduino A0 pin is connected to the sensor's ENVELOPE pin

CODE & INSTRUCTIONS

  • Upload this code to your Arduino board

  • Open the Serial Monitor to visualize the incomming data from the sensor

  • Next: Add an LED and resistor, and upload this code to your board.

  • Bonus: Add a decay effect to your LED. Use this code


TUTORIAL : GATE

WIRING

Gate diagram reference image : here

Note: Arduino A0 pin is connected to the sensor's GATE pin

CODE & INSTRUCTIONS

  • Upload this code to your Arduino board.

  • Look carefully at this new code. It is very similar to the previous one, but key elements have changed.

  • Open the Serial Monitor. How is this GATE data different to previous ENVELOPE one.

  • Next: Add an LED and resistor, and upload this code to your board.


MORE TUTORIALS

Sparkfun hookup guide

RGB LED reactive to sound - tutorial

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages