Play Sounds With Arduino || Passive vs. Active Speakers

Sdílet
Vložit
  • čas přidán 5. 07. 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.
  • Věda a technologie

Komentáře • 122

  • @Jacob-ol3zb
    @Jacob-ol3zb Před 6 měsíci +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 Před 4 lety +6

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

  • @ajazwz2691
    @ajazwz2691 Před 3 lety +1

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

  • @SauvikRoy
    @SauvikRoy Před rokem +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!

  • @philbateman1989
    @philbateman1989 Před 4 lety

    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.

  • @danysize
    @danysize Před 3 lety +1

    THANX! Wonderful and clear Tutorial ! Thanx Again!

  • @cadillacescalade5428
    @cadillacescalade5428 Před 2 lety

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

  • @tonyvtech25
    @tonyvtech25 Před 3 lety

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

  • @charnelmane2461
    @charnelmane2461 Před 2 lety

    hi
    Can I please see the code you worked with?

  • @AutoBodyEverything
    @AutoBodyEverything Před 3 lety

    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.

  • @godotology
    @godotology Před rokem

    where is the code for the last exsample ??

  • @sreenand.k2706
    @sreenand.k2706 Před 2 lety

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

  • @greyt-shirt3018
    @greyt-shirt3018 Před 3 lety

    How many OHMs was that speaker?

  • @zekesensei
    @zekesensei Před 3 lety +6

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

  • @mb7626
    @mb7626 Před 4 lety +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 Před rokem

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

  • @vvijayalakshmi6186
    @vvijayalakshmi6186 Před 6 lety

    please send the full code.

  • @charlesstine1952
    @charlesstine1952 Před 5 lety +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  Před 5 lety +1

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

    • @charlesstine1952
      @charlesstine1952 Před 5 lety +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 Před 4 lety +2

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

    • @Fungineers
      @Fungineers  Před 4 lety +1

      czcams.com/video/BZ6SuWlAZ5o/video.html

  • @enderpea5251
    @enderpea5251 Před 4 lety +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!

  • @rbasb1472
    @rbasb1472 Před 2 lety +1

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

  • @aeffendiibrahim2562
    @aeffendiibrahim2562 Před 5 lety +6

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

    • @Fungineers
      @Fungineers  Před 5 lety +2

      Either will work no problem

    • @aeffendiibrahim2562
      @aeffendiibrahim2562 Před 5 lety +3

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

  • @andreamitchell4758
    @andreamitchell4758 Před 6 lety +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  Před 6 lety +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 Před 6 lety

      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  Před 6 lety +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 Před 6 lety

      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 Před 6 lety

      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

  • @AX3904P
    @AX3904P Před rokem

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

  • @PurpleGround
    @PurpleGround Před 6 lety +2

    Yay!

  • @HerrWilhelm403
    @HerrWilhelm403 Před 4 lety +1

    top, helped me alot, thx! :)

  • @citanne
    @citanne Před 3 lety

    Many thanks for the useful information

  • @devrajjadhavrao6138
    @devrajjadhavrao6138 Před 5 lety +3

    Hey!!
    from where i can get mario song code

  • @information88info
    @information88info Před 4 lety +1

    Great thank you

  • @TotallMax13
    @TotallMax13 Před 4 lety +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  Před 4 lety

      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.

  • @astroid9087
    @astroid9087 Před 4 lety

    Wow great vid

  • @acapnatashap.4135
    @acapnatashap.4135 Před 5 lety

    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  Před 5 lety +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 Před 5 lety

      Fungineers do you mind sharing some codes?

    • @Fungineers
      @Fungineers  Před 5 lety

      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

  • @parzival7606
    @parzival7606 Před 3 lety +1

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

  • @kennethxing5380
    @kennethxing5380 Před 4 lety

    Does the resistor have any effect on the pitch?

    • @WUOTH
      @WUOTH Před 2 lety

      No, only if you would use Caps or Inductors

  • @Nautilus1972
    @Nautilus1972 Před 5 lety +3

    Which holes are the buzzer plugged into?

    • @Fungineers
      @Fungineers  Před 5 lety

      One to output pin one to ground

    • @AutoBodyEverything
      @AutoBodyEverything Před 3 lety

      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.

  • @forstig
    @forstig Před 2 lety +1

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

    • @WUOTH
      @WUOTH Před 2 lety

      add a VPad or LPad with two Resistors ;)

    • @shinobipanda2331
      @shinobipanda2331 Před 2 lety +1

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

    • @aryapadture3324
      @aryapadture3324 Před rokem

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

  • @camelazo
    @camelazo Před 3 lety

    Still waiting recorded stuff

  • @Entertainerzzz
    @Entertainerzzz Před 6 lety +10

    where can i find mario tone code for arduino

    • @Fungineers
      @Fungineers  Před 6 lety +2

      On the internet :)

    • @Entertainerzzz
      @Entertainerzzz Před 6 lety +2

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

    • @Fungineers
      @Fungineers  Před 6 lety +5

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

  • @TechnoWit3D
    @TechnoWit3D Před 3 lety

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

    • @TechnoWit3D
      @TechnoWit3D Před 3 lety

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

  • @hasifridzuan3309
    @hasifridzuan3309 Před 4 lety

    for a bigger sound which are better ?

  • @DaxQuick
    @DaxQuick Před 5 lety

    Cool!

  • @ishmummonjurnilock8950

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

  • @GhamPlays
    @GhamPlays Před 5 lety +1

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

    • @valentine5062
      @valentine5062 Před 5 lety

      Electrical engineering

    • @sugarboy4280
      @sugarboy4280 Před 5 lety

      Definitely electrical

    • @OskarP2601
      @OskarP2601 Před 4 lety

      Both if your learning Arduino but mostly electrical engineering

    • @oxyrent5261
      @oxyrent5261 Před 2 lety

      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

  • @taihatranduc8613
    @taihatranduc8613 Před 3 lety

    you are so gooooooodddd

  • @marcosjohnsonnoya417
    @marcosjohnsonnoya417 Před 4 lety

    Thx

  • @TheRyanHeffner
    @TheRyanHeffner Před 3 lety

    Thank you. You just made me a millionaire.

  • @oscarcacnio8418
    @oscarcacnio8418 Před rokem

    I bet Tim Follin can make that buzzer sing.

  • @venkatasriramG
    @venkatasriramG Před rokem

    You are a god

  • @rawlensbyrashed2452
    @rawlensbyrashed2452 Před 6 lety

    Awesome... first

  • @tricksandtechs8830
    @tricksandtechs8830 Před 5 lety +1

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

    • @Fungineers
      @Fungineers  Před 5 lety

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

  • @tomasramilison
    @tomasramilison Před 2 lety

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

  • @tommychappell6359
    @tommychappell6359 Před 3 lety

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

  • @kaiblaz
    @kaiblaz Před 4 lety

    If you have tried this, please have some time to appreciate this canon in D using arduino piezo buzzer vid: czcams.com/video/qIfW58yamDs/video.html

  • @tinkeringwithhighvoltage

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

  • @pritysingh3412
    @pritysingh3412 Před 3 lety +1

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

    • @aviksarkar707
      @aviksarkar707 Před 3 lety +1

      Sound Engineering is here for a long time now 🙄

  • @mpoadmin2978
    @mpoadmin2978 Před 3 lety +1

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

  • @indioflechudo6221
    @indioflechudo6221 Před 3 lety

    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.

  • @Nehessy
    @Nehessy Před 4 lety +2

    ARDUINOOOOOOOO

  • @parthgupta6588
    @parthgupta6588 Před 6 lety

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

  • @kingdavid4463
    @kingdavid4463 Před 3 lety

    You lack of
    pithiness.

  • @freeguy6047
    @freeguy6047 Před 5 lety +1

    It doesn’t work is this is a joke ?

    • @Fungineers
      @Fungineers  Před 5 lety +1

      Am I laughing?

    • @jesus2639
      @jesus2639 Před 5 lety +1

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

  • @jacjfernandes8107
    @jacjfernandes8107 Před 3 lety +1

    Osm ganta gaand project

  • @Smugiree
    @Smugiree Před 2 lety

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

    • @Fungineers
      @Fungineers  Před 2 lety

      Just nod and smilee, nod and smiilleee

  • @watch54
    @watch54 Před 2 lety +1

    very boring. keep small .

  • @shimuljahan8636
    @shimuljahan8636 Před 4 lety

    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