sound sensing arduino with operating solenoid

Hello all
I just started using arduino and I need your help.
I want to design sound sensing circuit with arduino which will trigger solenoid according to surrounding frequencies.
Like above 80dB to 85dB solenoid must behave like actuator for closing a gap and auidble frequency range it must behave like opening gap so sound can pass.
How I can work on this?
Thanks in advance

uesr_khushi:
according to surrounding frequencies.... Like above 80dB to 85dB solenoid must behave ...

deciBels aren't frequencies, though. They're power ratios, a measure of "loudness".

Of course you'll need a microphone and you'll need a microphone preamp because the mic level is too low for the Arduino's ADC.

Or, it's usually best to get a [u]sound sensor board[/u]. There are 3 kinds of sound sensor boards. The on I linked to puts-out a biased (electrical) audio signal (biased because the Arduino can't read the negative half of the AC audio wavefom). There are boards with an adjustable threshold that put-out a digital-low when the sound is below the threshold and a digital-high when the sound is above the threshold. And, there are boards that put-out a DC voltage proportional to the loudness.

Any of those can work, but the threshold-type has to be adjusted with a pot. The threshold can't be adjusted in software (and you'd have to make sure you can set the threshold at 80-85dB).

You'd need a MOSFET or transistor solenoid driver circuit.

And, you'd need an SPL meter to calibrate the 80-85dB level.

Thank you for lot of information. :slight_smile:

uesr_khushi:
Hello all
I just started using arduino and I need your help.
I want to design sound sensing circuit with arduino which will trigger solenoid according to surrounding frequencies.
Like above 80dB to 85dB solenoid must behave like actuator for closing a gap and auidble frequency range it must behave like opening gap so sound can pass.
How I can work on this?
Thanks in advance

I have no clue what all that means, but need to point out that once your circuit has detected a peak sound level, that sound has already passed your ability to stop it from proceeding onward.

Paul