Turn AC bulb ON and OFF using hand clap, audio or sound Arduino

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

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

  • @roboticslab8485
    @roboticslab8485 4 года назад +3

    Your tutorials are so so so good and very much useful. I learned arduino totally from your video sir! Thank you so much for these useful tutorials.

    • @robojax
      @robojax  4 года назад

      Great to hear! Thank you.

  • @5621346
    @5621346 3 года назад +3

    great project sir! i enjoyed a lot the tutorial!

    • @robojax
      @robojax  3 года назад

      Awesome, thank you!

  • @MrJoe560
    @MrJoe560 3 года назад +1

    Awesome project! Would it be possible to alter the code so the light is only on when sound is detected? I’m trying to make a lamp that requires continuous sound to stay on. It seems like it should be an easy change but I am very new to Arduino coding.

    • @robojax
      @robojax  3 года назад +1

      Hi, so you don't want it to toggle. if there is sound, keep the light ON, else OFF. the use this instead of loo();
      void loop() {
      // SOUND Sensor Code by Robojax.com 20180217
      val = digitalRead(SOUND);
      if(val == HIGH){
      Serial.println("Light ON");
      digitalWrite(relayPin, LOW);
      }else{
      Serial.println("Light OFF");
      digitalWrite(relayPin, HIGH);
      }
      // SOUND Sensor Code by Robojax.com 20180217
      delay(100);
      }

    • @robojax
      @robojax  3 года назад +1

      ***** Free Arduino Course worth $200****
      Arduino Step by Step Course (over 150 lectures) Starts here robojax.com/L/?id=338

    • @MrJoe560
      @MrJoe560 3 года назад

      @@robojax thank you! I will try this out

  • @ishaankelkar7521
    @ishaankelkar7521 3 года назад +1

    Hello. Thank you so much for this tutorial. I have a few questions. If you could answer them that would be awesome. 1) Do you have like a circuit diagram to show where to connect the 3 pins into the arduino uno? 2) Can this sensor hear chords and sense them and write them in the analog output?
    And my main use case is this. I want to make it so that the sensor reads and hears a specific value, and the value is either true/false it should make something happen with led lights which I also have to connect to arduino pins. Which connections do I make for each type of thing ( sound sensor and individually addressable led lights )? Is it possible to use if-statement to do this? Thank you so much!

    • @robojax
      @robojax  3 года назад

      Hello,
      1-I have explained the module pin by pin and then explained the wiring. you don't need diagram.
      2-I don't know what "chords" is. I have explained both analog and digital output with examples. for true or false use digital output.
      I suggest following my course ***** Free Arduino Course worth $200****
      Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338

  • @nathansakatengo3364
    @nathansakatengo3364 3 года назад +1

    this is so helpful

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

    Thank you !
    Can I specify a specific sound, so that the sensor will recognize it and then turn it on and off according to the sound, such as the sound of a siren and so on...

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

      No. This just detects the loudness of any sound .

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

      @@robojax Thank you for replying!
      But do u know how I can do that? Does the light turn on at a certain sound?

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

      Only by sound level. But look for speech recognition. There are solutions. I might make video on that in a 2 or 3 months

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

      Thank u really
      I have a project coming soon in my studies and I have to do that point…
      Thank u soooooo much

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

    Hello dear friend, I want to use this circuit for fan sound. Can it be used for fan sound? Turn on the light when the fan is on. Turn off the light when the fan is off. Thank you, thank you for answering Please answer me

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

      Hello, yes it can. we use relay and relay is a switch which can turn ON/OFF anything.

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

    did you plug it to power on the light? or it's just the laptop/pc that powers everything?

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

      Please watch and get the answer.

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

      You didn't mention anything in the video.

  • @samu-yx8zv
    @samu-yx8zv 4 года назад

    Hey man awesome video, im trying to build this project myself and im a little new to this. I just have 1 question, you lost me a little at which pin of the sound sensor you used. Do we need digital output or analog output connected to pin 2? And what do we do with the other pin, just leave it?

    • @robojax
      @robojax  4 года назад +1

      Hello, you made me watch the video as I was surprised to be asked such questions which I try to near lave. Indeed I have explained. This video has two part and shows two code which in each code one of the pins used. I have added the timing in the description of this video(as I was watching it) so you can jump to different section of the video by clicking on the time or clicking on the player timeline. good luck.

    • @samu-yx8zv
      @samu-yx8zv 4 года назад +1

      @@robojax thank you very much i have figured it out, however i cant seem to be able to download the code from your website. I have found the link within arduino code that is connected to this video (number 61, robojax.com/learn/arduino/?vid=robojax-sound-sensor-AC-Bulb) but i dont see a download code option.
      Nevermind, I just copied the exact code from the video. So far it doesnt work but maybe im just not reaching the threshold, about o adjust it now.

    • @robojax
      @robojax  4 года назад +1

      you are welcome. I have changed the link in the description to robojax.com/L/?id=278 and it should be available.

  • @whencutchinta7580
    @whencutchinta7580 3 года назад

    Avrdufe stk500 _ disable coming sir what I want to do

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

    awsome brother wow all the best

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

      Great. Here is the video with wiring ruclips.net/video/INq8A3dLNzM/видео.html

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

    One question: the D0 pin goes to pin 2, but A0 pin where goes?

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

      Please watch the video fully

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

    Hi I am new to Arduino, can I use an Arduino R3 CH340G for this project?

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

      Hi, it is just Arduino. The rest of stuff you've written are extra. Here is my $200 course that is on Udemy, posted on RUclips for free bit.ly/arduinoStepByStep

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

      @@robojax the light bulb won't turn off. any suggestions to fix this problem? (Also, thank you for the free lessons it really helped me on understand what I can do with an Arduino.)

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

    Thank u 😍😍😍👏👏👏👏👍

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

    How would the wirings will be if my AC light has on/off switch?

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

      you will need one more three weay switch. the relay shown has already three pins and you just need a switch that has 3 pins. see details of controlling one light with two switches en.wikipedia.org/wiki/Multiway_switching

  • @John-id2ds
    @John-id2ds 3 года назад +2

    I have only 3 pin sound sensor what can I do

    • @robojax
      @robojax  3 года назад +2

      it is the same.so you have either Digital or analog. I've demonstrated both in video. Please watch and you will be able to use it. good luck.

    • @John-id2ds
      @John-id2ds 3 года назад

      @@robojax only digital thanks

  • @DoluolaBalogunTemitopepe-sb6xz

    Can we use a normal torch or bulb and how

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

      I have tones of touch sensor videos. Just search my channel “touch robojax “

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

    I want to do something similar but instead of clapping to turn on the light, I want the light to turn on when a certain sound threshold is reached. For example, if I am talking in a normal tone the light will not flash on, but if I were to shout or scream the light will flash on. How would I go about achieving this?

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

      Hi, that is called speech recognition which need more advanced signal processing. So search for speech recognition.

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

      @@robojax hmm I don't think that is what im looking for exactly. I just want the light to activate when sound exceeds a certain threshold (not specifically talking). Then deactivate once that sound has stopped.

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

      this can just detects level of sound and if you try to create the same level of sound, then it will detect it . The problem is that many different sounds will have the same level or amplitude and that makes it to have false detect.

  • @samarthjain7559
    @samarthjain7559 4 года назад

    Can you tell how to make the same project without the hardware in proteus using .wav file of recorded claps?
    I am having issues in that.

    • @robojax
      @robojax  4 года назад

      proteus is the most expensive software for PCB design. don't have it.

  • @fmtpdx2359
    @fmtpdx2359 6 лет назад

    Hi Sir. do you have project of piezoelectric vibration energy harvesting for storage? hope you have such project. tq sir.

    • @robojax
      @robojax  6 лет назад

      Hi, no I have not. I haven't seen the cheap efficient material to make it practical yet.

  • @bignerd8050
    @bignerd8050 3 года назад

    Could you modify this to a servo operated light switch? i’ve been searching and searching and can’t find anything

    • @robojax
      @robojax  3 года назад

      what do you mean by "servo operated light switch"? is the servo moving the light in lift-to-right if so, you don't need anything, just simple servo code which is part of Arduino and attach your light to servo.

  • @MdRana-jh7eh
    @MdRana-jh7eh 2 года назад

    Nice

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

    Where we find it

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

      Link in description

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

    Did not expain wire connection properly and no circuit diagram

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

      Please watch updated video Lesson 15: Arduino Sound Sensor Module | Arduino Step By Step Course
      ruclips.net/video/INq8A3dLNzM/видео.html

  • @nabmaj1417
    @nabmaj1417 3 года назад

    Do i have to shout so sensor work or it can be more sensitive? Help me sir

    • @robojax
      @robojax  3 года назад

      no. I've shown that you can set sensitivity.

    • @nabmaj1417
      @nabmaj1417 3 года назад

      @@robojax i did change it, but it didnt change much ( still need to shout)?

    • @robojax
      @robojax  3 года назад

      It should work, or get different sound module

    • @gameplayml4511
      @gameplayml4511 3 года назад

      Its so amazing sir, i learned a lot
      Can i fo this project? Like in thesis i'm in 3rd year college now ,and i want this it gives me excited about this project

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

    CAN YOU SHOW ME THE WIRING DIAGRAM PLEASE

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

      here is better version with wiring diagram which is part of my Arduino course ruclips.net/video/INq8A3dLNzM/видео.html

  • @MarioFernandezjr-l9g
    @MarioFernandezjr-l9g Год назад

    Sir pls send me the code for clap sensor

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

      The link is under the video in description

  • @voiceoftruth1O1
    @voiceoftruth1O1 6 лет назад

    Thanks.

    • @robojax
      @robojax  6 лет назад

      You are welcome.

  • @christopherjamesjorolan2355
    @christopherjamesjorolan2355 5 лет назад

    Hi sir how to download its code?

    • @robojax
      @robojax  5 лет назад

      Hi, see this instruction snag.gy/EG4O2l.jpg

  • @RahulJain-rj6jw
    @RahulJain-rj6jw 5 лет назад

    Too good