15 | Sound Detector

The Sparkfun Sound Detector combines an electret microphone and supporting circuitry to provide raw sound data as well as a digital sound threshold indicator. In this example we'll learn how to detect sound using the Sparkfun Sound Detector and then modify the code to toggle an LED indicator when sound is detected.



Parts List
  • Sparkfun RedBoard

  • 1x Sparkfun Sound Detector
Circuit Schematic



  • Open the LINX - Digital Read 1 Channel example from the LabVIEW Example Finder.

  • Select the DI channel connected to the Sparkfun Sound Detector.

  • Run the VI, then clap your hands and notice the LED indicator on the front panel light up.

  • Modify the VI to toggle the state of the LED indicator when a sound is detected.
  • Add a real LED that toggles on and off when you clap.

  • Use the analog value from the Sound Detector to set the intensity of an LED based on the volume of a sound.