Newbie needs help

Hello guys, I really want to work on this project but I just tried so many codes but any aren't working. So the device condition looks like this: If the arduino receives 10 signals from the sound sensor (3 pins, Analog 2) within 5 seconds, the LED (13) will light up. I am really having a hard time in formulating the codes and I would really appreciate any of you guys help. Thank youu

Please post your best attempt at the code for this and explain the problems

Exactly what type of sensor is it ?

Can you detect the signals from the sound sensor?
Can you count them?

When you receive the first signal, set a variable based on millis(). Keep counting and at the same time check millis() to see if 5 seconds have passed (compare with the earlier stored value).

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

What model Arduino are you using?
What is the sound do you have, link to data/specs will help.

Thanks.. Tom... :slight_smile: