Play Sounds With Arduino || Passive vs. Active Speakers

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • Get started with Arduino with this kit:
    usa.banggood.com/custlink/GKD...
    This tutorial covers:
    Passive vs. Active Arduino Buzzer/ Speaker
    How to Connect a buzzer to arduino
    How to Code buzzer with Arduino
    How to generate tones with Arduino
    Let's learn the difference between a passive and active buzzer or speaker, and make the Arduino generate sounds, tones. Can the arduino generate music? How to connect Arduinos for sounds/ music/ sound effect.
  • НаукаНаука

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

  • @Jacob-ol3zb
    @Jacob-ol3zb 7 месяцев назад +1

    I love the pace of this video. It’s not a bunch of stalling but it’s slow enough that it’s easy to comprehend. On top of that, excellent clarity in your voice and in the way you explained things.

  • @captainprototype187
    @captainprototype187 4 года назад +6

    real nice vid. Now I wont be confused anymore about the difference between them.

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

    THANX! Wonderful and clear Tutorial ! Thanx Again!

  • @SauvikRoy
    @SauvikRoy Год назад +3

    I was trying to build an alarm clock. I accidentally bought the wrong buzzer, but now I understand the difference between these two and will also a resistor to lower the voltage from 5V.
    Still, how do I produce the classic bi-bi-bi-bip alarm sound?!
    Thanks for keeping this video so compact yet informative!

  • @zekesensei
    @zekesensei 3 года назад +6

    Wow.I loved this video man.Keep doing such videos more, 😁

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

    can I know, for thermometer scanners do they use this bell for beep sound?

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

    top, helped me alot, thx! :)

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

    Many thanks for the useful information

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

    Wow great vid

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

    Great thank you

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

    Is it possible to do this manually? Ie. Without the Arduino? I have one, but I want to learn how it's generating a tone for the passive speaker.

  • @PurpleGround
    @PurpleGround 6 лет назад +2

    Yay!

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

    Hi would these pizo buzzers work for something like a train bell crossings ?

  • @enderpea5251
    @enderpea5251 4 года назад +2

    So I'm a huge electronic dude along with being a big gamer, the PS3 & PS4 have always used those buzzers because they've so far always made The same tone, but a fun fact is that what I know about the Xbox 360 S and the Standard Xbox One is that they use a small speaker for Power on/off and eject sound effects, the type of speaker you would find inside of a toy. However, the Xbox One S and Xbox One X both use the buzzers and covert the sounds effects through them! I never thought you could do that, I only thought they could beep like the ones in PlayStations, but apparently they can make music or sound effects too!

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

    great, love Mario bros theme tune too, il stay tuned.

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

    WHAT HAPPEN IF YOU CONNECT SOMETHING LIKE A LED OR A FIBER OPTIC EMITTER INSTEAD OF A SPEAKER/PIEZO ? WILL IT WORK TOO ??

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

    when a active buzzer powers on, buzzer: BEEEEP!
    passive buzzer: ...

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

    The board is a signal board but the “buzzer” is basically a tweeter needless to say and one could also play music through the “buzzer” at a save voltage/watt correct? This is important to my knowledge thanks.

  • @mb7626
    @mb7626 4 года назад +5

    How low of a 'tone' can you produce? Can you get into the sub-bass/haptic feedback range with these buzzers? I'm actually looking into these for a project but that project requires some low profile and low frequency vibrotactile functionality.

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

      The Arduino is limited: lowest freq is 31 Hz with the tone() function. Thus, the answer to your question is 'no'.

  • @charlesstine1952
    @charlesstine1952 5 лет назад +2

    If I wanted to use an Arduino to play an MP3 for a car door chime, what sort of speakers should I use? I know it will be a basic if ON then... if OFF then... but I wanted the song to be loud enough and clear enough to hear.
    Thanks!

    • @Fungineers
      @Fungineers  5 лет назад +1

      Toy speaker should work, but the arduino doesnt sample fast enough for good sound quality.

    • @charlesstine1952
      @charlesstine1952 5 лет назад +1

      @@Fungineers Hmmm okay thanks for the quick reply! In that case, I may play specifically 8-bit music if you think that will work better.

  • @venkateshwarareddy8379
    @venkateshwarareddy8379 5 лет назад +2

    how to import other audios to arduino and take those audios as outputs from speakers

    • @Fungineers
      @Fungineers  5 лет назад +1

      ruclips.net/video/BZ6SuWlAZ5o/видео.html

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

    Cool!

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

    hi
    Can I please see the code you worked with?

  • @aeffendiibrahim2562
    @aeffendiibrahim2562 5 лет назад +5

    Hi, I want to make smoke detector with Arduino Nano, should I use active or passive buzzer? thanks

    • @Fungineers
      @Fungineers  5 лет назад +1

      Either will work no problem

    • @aeffendiibrahim2562
      @aeffendiibrahim2562 5 лет назад +2

      @@Fungineers thanks for response my question so quickly, definitely subscribe your channel, thanks 👍

  • @andreamitchell4758
    @andreamitchell4758 6 лет назад +1

    nice ! i tried it on a nano with a disc type piezo electric transducer , like the little ones that are in musical greeting cards with a 100 ohm resistor but i noticed that the little red LED on my pro mini is kind of garbled it does not flash like yours does it looks like there is noise or something getting into the LED
    the guy who made the sketch says to use a 1k ohm resistor so i wonder if 100 ohm is too low and may damage the pro mini?

    • @Fungineers
      @Fungineers  6 лет назад +1

      Hello Andrea playing sounds with Arduino is tricky. What kind of a sound are you playing? Try to play a simple tone and see if that works. Also, try to use an Arduino Uno and see if the sound is OK. Let me know. I think 100ohm resistor is fine. The resistor is only for safety and wouldn't make a difference in my opinion anyway.

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

      i uploaded the mario brothers theme sketch to my pro mini ,it works, the music plays fine but the on board LED on pin13 seems to not blink smoothly
      like i said i wonder if the resistor value is too low for the size speaker, it is one of those little piezo electric transducers like in a musical greeting card
      yes you say safety do you mean to prevent the speaker from drawing too much current from the arduino? if the resistor value is too low then could the speaker draw too much and damage the board?

    • @Fungineers
      @Fungineers  6 лет назад +2

      Are you using pin 13 as output? Try Using some other pin. I wouldn't worry too much about the LED blinking anyway. Yes you are right the resistor is to prevent too much current being drawn from the arduino and will damage if too much current is drawn. The small speaker doesn't draw too much current anyway so 100 ohm is fine. If you are using a bigger speaker then use bigger resistor. You can check my video on what resistor to use to calculate your resistance in any circuit :)

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

      nope i am using pin d3 for the speaker output
      i just copied the mario theme sketch and pasted it into arduino IDE and uploaded it to a pro mini
      the funny thing is i found 2 different website article that had the sketch by the same author but one (the one i used) does not have a line that says to include the tone library ,it works though
      then i found another version of the sketch that has a line att he tope that says to include the tone library i wonder why one has the tone library and the other doesn't .but i used the one that does not include the tone library and it still works
      seems like the one with the tone library may be older? i just wonder why it is not needed anymore

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

      what i was really looking to find out was if i could use a piezo transducer instead of a buzzer for my project, this video and experiment answered my question
      what i want to do is make a 3x4 keypad garage door opener using a pro mini ,a 3x4 membrane keypad,an opto-isolated relay and use the piezo transducer to emit a tone every time a button is pressed
      and then to emit a different tone if the wrong pin is entered and then another tone if the right pin is entered
      this video gave me an idea though
      it would be great if it would play the first bar if the correct pin is entered and then play the game over music if the wrong pin is entered
      i could not understand the code at all though and i would not even know where to begin on how to insert code to make the speaker make a tone when a button is pressed
      i mean to insert the code into an existing keypad relay sketch

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

    where is the code for the last exsample ??

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

    you are so gooooooodddd

  • @Entertainerzzz
    @Entertainerzzz 6 лет назад +10

    where can i find mario tone code for arduino

    • @Fungineers
      @Fungineers  6 лет назад +2

      On the internet :)

    • @Entertainerzzz
      @Entertainerzzz 6 лет назад +2

      i searched but unable to find, maybe I am not searching correct keywords, can you share link ?

    • @Fungineers
      @Fungineers  6 лет назад +5

      Try to search on Github.com there are tons of working codes on there.

  • @greyt-shirt3018
    @greyt-shirt3018 3 года назад

    How many OHMs was that speaker?

  • @sreenand.k2706
    @sreenand.k2706 2 года назад

    How to stop that sound.. Like a led blink for only one time.. How's that.. Please replyy

  • @devrajjadhavrao6138
    @devrajjadhavrao6138 5 лет назад +3

    Hey!!
    from where i can get mario song code

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

    i connected 5v direct it was working fine the active buzzer so why is the resistor required

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

      Not required

  • @Nautilus1972
    @Nautilus1972 5 лет назад +3

    Which holes are the buzzer plugged into?

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

      One to output pin one to ground

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

      I believe it’s an amplifier board 10w rating but in this video, that small board is most likely a “tone or frequency” board. Different outputs put out different frequencies they sound like a beep or a buzz depending how high pitch or low pitch the sound is. I also believe the tiny “buzzer” is the same thing as a speaker or tweeter. It only gets the name “buzzer” bcs that’s how ppl can find them or identify them bcs those in particular are used for devices that make beeps or buzzes as indicators for a microwave when it’s done cooking or for an intercom where they buzzer sounds to let you in. Weather it’s a passive or active “buzzer” it is still analog except for the audio source.

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

    I triend passive buzzer with uno, and try to set up more 40000hz .. in serial monitor shows -25000 .. is it normal ?

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

      @@snausagesmcgee3963already set correct baud rate. As in void setup. If the freq 30000 then it shows correct ly 30000.

  • @acapnatashap.4135
    @acapnatashap.4135 5 лет назад

    hi! we want to make an alarm with different sounds depending on its levels. Can we ask for your help in making this possible for us.

    • @Fungineers
      @Fungineers  5 лет назад +1

      If you know a little bit of coding, you can set up conditions like "if level = 1, sound = so and so".
      Its very simple!

    • @acapnatashap.4135
      @acapnatashap.4135 5 лет назад

      Fungineers do you mind sharing some codes?

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

      I havent got code for this specific scenario, but you can look up arduino IF commands and how to write them, there are plenty of tutorials

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

    You are a god

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

    how do i make it quieter? with my speaker it was extremely loud. Thanks for the tutorial!

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

      add a VPad or LPad with two Resistors ;)

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

      add a resistor, or go into the code and change the volume or pitch.

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

      @@shinobipanda2331 how do you change that?... since we just mention the frequency as input

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

    Thank you. You just made me a millionaire.

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

    What purpouse does the resistor serve here? Wondering because the tutorial that I'm using doesn't use it, but rather adds the buzzer straight to the controller.

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

      I use resistors with all components to prevent over current from damaging them. Mostly needed for LEDs so you can skip it for buzzers no problem.

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

    Thx

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

    please send the full code.

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

    Does the resistor have any effect on the pitch?

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

      No, only if you would use Caps or Inductors

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

    I bet Tim Follin can make that buzzer sing.

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

    for a bigger sound which are better ?

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

    Awesome... first

  • @GhamPlays
    @GhamPlays 5 лет назад +1

    How do I become fluent in this, do I study Electrical Engineering or programming?

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

      Electrical engineering

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

      Definitely electrical

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

      Both if your learning Arduino but mostly electrical engineering

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

      no need to do any engineering, even u have done primary you can start from very basic and i am ensuring you that if you will be consistence even after failing few times you will find yourself making kind of circuits within a year

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

    Still waiting recorded stuff

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

    Ohh I get it, "Fungineers" has nothing to do with fungus, it's meant like "fun" haha nice video btw

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

    3:20 please join me for the first time to hear how it sounds

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

    Would you please attach the code on your video. It would be much better

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

    nobody know electronics anymore, now is all about Arduino, papa gino, capuchino.
    I remember when we build VFD with good all transistors, capacitors, Resistors and so on.

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

      Hhaa man im laughing so hard. What vfd you built?

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

      variable frequency drive

  • @tricksandtechs8830
    @tricksandtechs8830 5 лет назад +1

    Bro very nicely you explained but bro I need code can you give me

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

      U can find it if you google it. Its very common :)

  • @Nehessy
    @Nehessy 4 года назад +2

    ARDUINOOOOOOOO

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

      Ledpin 13 relier à bp1

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

      Écouter mon album : loi des maille
      Ma mixtape : Led1 à la broche 13

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

    I cant hear because your talking over the speaker...

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

    Guys, what kind of Arduino is he using? I want the name

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

    1:12. 'I am not a sound engineer'.Ha ha ha new engineering branch dicovered🤣🤣🤣🤣🤣

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

      Sound Engineering is here for a long time now 🙄

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

    Osm ganta gaand project

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

    I have no idea what hes saying but im going to pretend i know

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

      Just nod and smilee, nod and smiilleee

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

    G😃😃😃😃😃😃😃😃😃😃😃😃

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

    If you have tried this, please have some time to appreciate this canon in D using arduino piezo buzzer vid: ruclips.net/video/qIfW58yamDs/видео.html

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

    You lack of
    pithiness.

  • @freeguy6047
    @freeguy6047 5 лет назад +1

    It doesn’t work is this is a joke ?

    • @Fungineers
      @Fungineers  5 лет назад +1

      Am I laughing?

    • @jesus2639
      @jesus2639 5 лет назад +1

      It does work i just tried it. Mabey your aduino ide is outdated or you forget a semicolon. Idk

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

    very boring. keep small .

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

    I love how you scammed me... i was gonna check out speakers.. I found this video
    I thought it was real
    i trusted this
    i gave it a view and a like
    I GOT SCAMMED TRASH
    XD
    THESE ARE BUZZER I HAVE THOUSANDS