How To Make Clap Switch with Arduino and Sound Sensor | Arduino projects

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • In this video we will discover :How To Make Clap Switch with Arduino and Sound Sensor |
    | Module KY-038 | Arduino UNO R3 projects for beginners.
    Clap Switch with Arduino
    Schema of the circuit : andprof.com/cr...
    Programming Code : andprof.com/cr...
    How to use arduino IDE software : andprof.com/to...
    ---------------------------
    our website link : andprof.com/
    --------------------------
    #arduino
    #Arduino_projects
    -----------------------
    Sound Sensor Module with Arduino Tutorial.Clap Switch
    Arduino Clap Switch Using Sound Sensor
    How To Make A Clap Switch | Control Light With Clap using Arduino
    How to make a Clap Switch using Arduino
    Arduino Sound Sensor Control
    Sound Sensor Module KY-038
    sound sensor arduino code

КОМЕНТАРІ • 62

  • @LFezixIsTaken
    @LFezixIsTaken 19 днів тому +2

    What´s up fellas! As you probably can see the link with the code aint working, when I saw that I realized that some of you might not be able to make your own script and that´s why I made this script that should work with this tutorial! :
    const int sensorPin = A0;
    const int ledPin = 10;
    const int threshold = 500;
    const int debounceDelay = 200;
    bool ledState = false;
    unsigned long lastClapTime = 0;
    void setup() {
    pinMode(ledPin, OUTPUT);
    digitalWrite(ledPin, LOW);
    }
    void loop() {
    int sensorValue = analogRead(sensorPin);
    if (sensorValue > threshold && millis() - lastClapTime > debounceDelay) {
    ledState = !ledState;
    digitalWrite(ledPin, ledState ? HIGH : LOW);
    lastClapTime = millis();
    }
    }
    If you feel like it and want to help others please like, that will make this comment more popular! Thanks.

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +5

    The only problem was the adjustment of the sensor which I fixed finally bro ! It's working very well now, a good school project

    • @TravelFreak.4455
      @TravelFreak.4455 Рік тому +3

      How did you adjust can you explain me? I tried more than 100 times but its not working 😭...

    • @OviMG
      @OviMG Рік тому +1

      help us

  • @ATALLAB-vvc
    @ATALLAB-vvc 3 дні тому +1

  • @j0yjz
    @j0yjz Рік тому +2

    hi, i followed all your instructions and used the code you provided. however, it still does not work. could you give me some tips on which part i should look out more or give it a second look?

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +2

    The range of sound distance is very low :(
    I also tried to adjust the sound sensor but that didn't worked.
    Do you know how to increase the distance? I think there's something with the code.

  • @rahatabir8645
    @rahatabir8645 Рік тому +6

    code link isnt working

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +1

    Tell to which port I should connect the 5v single channel relay

    • @AndProfPlus
      @AndProfPlus  2 роки тому

      the next video we will create project with Relay. you can benefit from it how to connect relay with arduino.
      thank you

  • @raeesahkhan3900
    @raeesahkhan3900 4 місяці тому

    Hi faced trouble in led it did not respond to the sound please help

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +2

    Bro your both link for circuit and code is not working, give me other one

    • @AndProfPlus
      @AndProfPlus  2 роки тому +1

      andprof.com/creativity/clap-switch-with-arduino-and-sound-sensor-arduino-project-with-code/

  • @Pain69
    @Pain69 Рік тому

    Brother can we display out put on LCD too? Output of claps and time taken. I have a project submission.

  • @OviMG
    @OviMG Рік тому

    I really dont think this is the code ur using in the video because it really doesnt make any sense. Did u change something afterwards?

  • @TahaBougnar-v3p
    @TahaBougnar-v3p Місяць тому

    bro the link havent found me the code

  • @user-fq1tl8mq8f
    @user-fq1tl8mq8f Місяць тому

    hey can you upload somewhere the code again because it isnt workin plss

  • @amalam_2ah690
    @amalam_2ah690 Рік тому

    I can not find the red sensor in the tinkercad what is its name in the search?

  • @ayomideolayinka8638
    @ayomideolayinka8638 Місяць тому

    What's up with the code ?

  • @abdoachahboun6578
    @abdoachahboun6578 2 роки тому +1

    Thank you so much prof

  • @Joshiznet
    @Joshiznet Рік тому +2

    Thank you.... I made it.. ❤️

  • @saraalsaadi5656
    @saraalsaadi5656 Рік тому +1

    How can I do the adjustment of the sensor ?? it is not working

  • @necro3921
    @necro3921 7 місяців тому

    sensor adjust not working

  • @Lukyzelva
    @Lukyzelva 2 роки тому

    will it works with 330 ohm?

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +1

    But bro how to connect main electricity to it

    • @AndProfPlus
      @AndProfPlus  2 роки тому

      you can use it with relay to control any device at home

  • @villeintck
    @villeintck 2 місяці тому

    Code doesnt exist

  • @alve__7777
    @alve__7777 4 місяці тому

    bro where is the code? the link isnt working

  • @Amankumar11112
    @Amankumar11112 11 місяців тому

    Code ki link bhejo code nahin mil rahe

  • @nasermsabhia7155
    @nasermsabhia7155 2 місяці тому

    bro it's good but where's the rest of the code

  • @enjouratbu3478
    @enjouratbu3478 11 місяців тому

    error compilation on code

  • @rahulks1828
    @rahulks1828 Рік тому

    Bro how to connect power .......

    • @AndProfPlus
      @AndProfPlus  Рік тому

      andprof.com/creativity/clap-switch-with-arduino-and-sound-sensor-arduino-project-with-code/

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому

    Subscribed 😚

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +1

    Bro very good loved it but I want to ask a question

  • @divyadivvi9497
    @divyadivvi9497 5 місяців тому

    can u post the code in comments section that andprof link is not working its fast plz urjent

    • @AndProfPlus
      @AndProfPlus  5 місяців тому

      We are in the process of revamping our site

    • @KarenGraceAntolijao
      @KarenGraceAntolijao 4 місяці тому

      @@AndProfPlus the link that you give isn't working

  • @abodomar19
    @abodomar19 9 місяців тому

    hi ,what is the difference between 'ao' input and 'do' input

    • @eln5421
      @eln5421 8 місяців тому

      What code did you use

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +1

    How to do I use relay on it???

    • @AndProfPlus
      @AndProfPlus  2 роки тому

      connect the relay in place of the led, and connect also relay with main electricity at home

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +1

    Bro I made it am it worked!

  • @iyelaerealbert5122
    @iyelaerealbert5122 4 місяці тому

    Please can you post the code here

  • @hammadazhar4927
    @hammadazhar4927 2 роки тому +1

    Bro i want source of contact so I can I can talk to you

    • @AndProfPlus
      @AndProfPlus  2 роки тому

      in next time, i will create an account facebook or whatsapp to contact from us
      also thank you for watching and subscribe our channel

  • @nasermsabhia7155
    @nasermsabhia7155 2 місяці тому

    what is this Ooops... Error 404

  • @nilimakulkarni4541
    @nilimakulkarni4541 Рік тому

    if (clap == 0)
    {
    detection_range_start = detection_range = millis();
    clap++;
    }
    code me
    detection_range_start = detection_range = millis();
    ye line aisi hi hai or i ve written something wrong?
    is line me 2 = to signs hai?
    i have simply copy pasted code.
    plz reply urgently.we have exhibition in school on 14thNovember n i am willing to participate.

  • @arga22431
    @arga22431 4 місяці тому

    youtuber gak niat🪨

  • @abubakkarkhan2338
    @abubakkarkhan2338 2 роки тому +1

    VG

  • @MK-vk8eo
    @MK-vk8eo 2 роки тому +3

    فيه إيه هو إنت أخرس ولا فاكرنا لا نسمع.. ديسلايك

  • @user-ih2tv2io5b
    @user-ih2tv2io5b 4 місяці тому

    Cobe