How to Use Buzzers (Active and Passive) with an Arduino (Lesson #20)

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 27

  • @fpo3jfiwENC98IE3HJCN
    @fpo3jfiwENC98IE3HJCN 10 місяців тому +5

    Thank you for the explanation! I was wondering why the buzzer I was using was making an awfully sounding tone, turns out the kit provided two identical-looking buzzers - I was using the active one.

  • @patrickkantas9474
    @patrickkantas9474 9 місяців тому +2

    Nice job man 👍.. btw sorry if i ask .. but is there any way how to make that buzzer wireless plus make the distance more longer like around 500 meters to 1km ? and when you press the button it will make the tone .. keep up the goodwork man .. big thanks

    • @Science.Buddies
      @Science.Buddies  9 місяців тому +1

      Hi - there are a variety of wireless communication options for Arduino but unfortunately we do not have any of our own tutorials on them yet, so you would need to search online.

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

      @@Science.Buddies ahh yes i also had that thought but is it more better to use some sort transmitter module or bluetooth/wifi ?

    • @Science.Buddies
      @Science.Buddies  9 місяців тому +1

      You will need to look into the range of different wireless technologies. A kilometer is probably way too far for bluetooth or wifi. We can't really provide more help with this since we don't have our own tutorials, you may have more luck on the official Arduino forums.

    • @patrickkantas9474
      @patrickkantas9474 9 місяців тому +1

      @@Science.Buddies ahh alright man .. well thank you very much for the explanation bro .. wish the best for the channel

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

      @@patrickkantas9474 I can help you. Take a lora module, configure it with arduino. It has a range of KM's

  • @fun12222
    @fun12222 4 місяці тому +1

    Thank you this helped me a lot

  • @morteza7298
    @morteza7298 5 місяців тому +1

    ty sir, short, useful, well explained

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

    thank you bro

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

    Thanks for the tutorial! Is it possible that a buzzer can in some way damage the output pin of the Arduino, perhaps drawing too much current or by backEMF of some kind? Is it completely safe to use them directly no matter which size of buzzer we deal with? Also the loudness of the sound is pretty low, is there any way to increase it?

    • @Science.Buddies
      @Science.Buddies  7 місяців тому +1

      Hi - it would depend on the specs of your buzzer; in general these small buzzers are safe to connect directly to an Arduino pin. To be safe you could drive one with a transistor instead - look up our video on controlling DC motors, it would work the same way except with the buzzer instead of the motor.

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

      @@Science.BuddiesThanks!

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

    Can you please give me the code for both active and passive buzzer please

    • @Science.Buddies
      @Science.Buddies  Рік тому

      Unfortunately UA-cam doesn't like Arduino code formatting when we try to copy it into the video description, but you can just pause the video and transcribe the code into your Arduino IDE.

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

    where is the sketch , i need the skectch please thank you bye sorry

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

    can they play sharps and flats

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

      I'm pretty sure they can play almost any frequency within some range, so yes

  • @Endingbranch7
    @Endingbranch7 7 місяців тому +1

    arduino sayig
    this Sketch uses 2304 bytes (7%) of program storage space. Maximum is 32256 bytes.
    Global variables use 28 bytes (1%) of dynamic memory, leaving 2020 bytes for local variables. Maximum is 2048 bytes.
    avrdude: ser_open(): can't open device "\\.\COM5": The system cannot find the file specified.
    Failed uploading: uploading error: exit status 1
    pls help guys

    • @nemesisTf2
      @nemesisTf2 7 місяців тому +2

      At the top there is a tab that says tools, click on it and then click on "port" just select the one that is available as an example: "COM5"

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

    Pantesan punyaku ga nyala. Tipenya passive buzzer

  • @stevhandingwall2028
    @stevhandingwall2028 Місяць тому +1

    I got error in code low was not declared in scope

    • @Science.Buddies
      @Science.Buddies  Місяць тому +1

      If you are seeing that error then it means you have a variable that was not declared at the beginning of your program.

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

      @@Science.Buddies oh so I have to declare low meaning put low =0 at beginning?

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

      You might be writing "low" instead of "LOW"

    • @stevhandingwall2028
      @stevhandingwall2028 Місяць тому +2

      @@scycaptan indeed I shall recheck my code got distracted with learning plcs and circuit designs