ARDUINO CLAP SWITCH

I WANT TO ASK IF ANYONE CAN PLEASE HELP ME. I HAVE STARTED 2 DAYS AGO WITH PROGRAMING AND ITS SO FAR DIFFICULT FOR ME. SO I WONDER IF ANYONE CAN POST ME OR SEND ME A CODE.I WANT TO CONNECT A PIEZO SPEAKER OR A MICROPHONE TO ANALOG PINS OF THE ARDUINO SO WHEN I CLAP, ARDUINO SENDS 5V TO THE INPUT OF A RELAY DRIVER IN ORDER TO SET IT ON. AND WHEN I CLAP AGAIN, ARDUINO CUTS OFF THE VOLTAGE IMMEDIATELY SO RELAY SWITCH TURNING OFF.MY EMAIL ADRESS IS THEODOSIS_NC@HOTMAIL.COM AND I AM A 17YO.THANKS AND PLEASE REPLY AS SOON AS POSSIBLE

Please don't shout.

Google "Arduino clap switch" only gave 75 000 hits.

Well you would need to use a AnalogRead command http://arduino.cc/en/Reference/AnalogRead And a digialWrite. http://arduino.cc/en/Reference/DigitalWrite

int Clap =A3;
int lastClap;
int Switch = 13;

void setup() {
  pinMode(Switch, OUTPUT);
  // put your setup code here, to run once:
}
void loop() {
  // put your main code here, to run repeatedly: 

  lastClap = analogRead(Clap);// read the speaker
  if (lastClap > 0){ 
    // some code to cycle pin 13
  } 
}

If you haven't any idea what options to list for the poll, isn't that a pretty good indication that you aren't conducting a poll?

I rarely help anyone that can't even figure out the basics of asking a simple question.

As i mentioned in your other, now deleted, identical post. Please read "How To Ask Questions The Smart Way". http://www.catb.org/~esr/faqs/smart-questions.html No reason to send a pm either.

Jeroen.

Moderator’s note:
I would delete the poll (though I can edit it ]:smiley: ), but my new powers are still developing, and are relatively weak.

I WANT TO ASK IF ANYONE CAN PLEASE HELP ME.

You looking for a cure for "stupid"?

what is the poll everyone tell it again and again.