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

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 68

  • @hammadazhar4927
    @hammadazhar4927 2 года назад +6

    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 2 года назад +3

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

    • @OviMG
      @OviMG Год назад +1

      help us

    • @Funjoyy
      @Funjoyy Месяц назад

      Hlo bro can u send me code

  • @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?

  • @LFezixIsTaken
    @LFezixIsTaken 2 месяца назад +8

    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 года назад +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.

  • @Pain69
    @Pain69 Год назад

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

  • @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

  • @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/

  • @nothing-m8o
    @nothing-m8o 6 дней назад

    can i have the code link is not working

  • @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?

  • @raeesahkhan3900
    @raeesahkhan3900 5 месяцев назад

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

  • @Joshiznet
    @Joshiznet Год назад +2

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

  • @rahatabir8645
    @rahatabir8645 Год назад +6

    code link isnt working

  • @Lukyzelva
    @Lukyzelva 2 года назад

    will it works with 330 ohm?

  • @amalam_2ah690
    @amalam_2ah690 Год назад

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

  • @abdoachahboun6578
    @abdoachahboun6578 2 года назад +1

    Thank you so much prof

  • @Amankumar11112
    @Amankumar11112 Год назад

    Code ki link bhejo code nahin mil rahe

  • @ATALLAB-vvc
    @ATALLAB-vvc Месяц назад +1

  • @ΘεοφανιαΜπαλ-σ7ξ
    @ΘεοφανιαΜπαλ-σ7ξ 2 месяца назад

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

  • @TahaBougnar-v3p
    @TahaBougnar-v3p 2 месяца назад

    bro the link havent found me the code

  • @alve__7777
    @alve__7777 5 месяцев назад

    bro where is the code? the link isnt working

  • @ayomideolayinka8638
    @ayomideolayinka8638 2 месяца назад

    What's up with the code ?

  • @saraalsaadi5656
    @saraalsaadi5656 2 года назад +1

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

  • @hammadazhar4927
    @hammadazhar4927 2 года назад +1

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

  • @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

  • @abodomar19
    @abodomar19 11 месяцев назад

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

    • @eln5421
      @eln5421 9 месяцев назад

      What code did you use

  • @necro3921
    @necro3921 9 месяцев назад

    sensor adjust not working

  • @hammadazhar4927
    @hammadazhar4927 2 года назад +1

    Bro I made it am it worked!

  • @hammadazhar4927
    @hammadazhar4927 2 года назад

    Subscribed 😚

  • @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

  • @divyadivvi9497
    @divyadivvi9497 7 месяцев назад

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

    • @AndProfPlus
      @AndProfPlus  6 месяцев назад

      We are in the process of revamping our site

    • @KarenGraceAntolijao
      @KarenGraceAntolijao 6 месяцев назад

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

  • @villeintck
    @villeintck 3 месяца назад

    Code doesnt exist

  • @nasermsabhia7155
    @nasermsabhia7155 4 месяца назад

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

  • @rahulks1828
    @rahulks1828 Год назад

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

    • @AndProfPlus
      @AndProfPlus  Год назад

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

  • @enjouratbu3478
    @enjouratbu3478 Год назад

    error compilation on code

  • @iyelaerealbert5122
    @iyelaerealbert5122 5 месяцев назад

    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

  • @arga22431
    @arga22431 6 месяцев назад

    youtuber gak niat🪨

  • @nilimakulkarni4541
    @nilimakulkarni4541 2 года назад

    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.

  • @MK-vk8eo
    @MK-vk8eo 2 года назад +3

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

  • @DzenetaHandzic
    @DzenetaHandzic 5 месяцев назад

    Cobe

  • @abubakkarkhan2338
    @abubakkarkhan2338 2 года назад +1

    VG

  • @nasermsabhia7155
    @nasermsabhia7155 4 месяца назад

    what is this Ooops... Error 404