Play Sounds With Arduino || Passive vs. Active Speakers

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 พ.ค. 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 5 หลายเดือนก่อน +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.

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

  • @ajazwz2691
    @ajazwz2691 3 ปีที่แล้ว +1

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

  • @danysize
    @danysize 3 ปีที่แล้ว +1

    THANX! Wonderful and clear Tutorial ! Thanx Again!

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

  • @cadillacescalade5428
    @cadillacescalade5428 2 ปีที่แล้ว

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

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

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

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

  • @charnelmane2461
    @charnelmane2461 2 ปีที่แล้ว

    hi
    Can I please see the code you worked with?

  • @zekesensei
    @zekesensei 3 ปีที่แล้ว +6

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

  • @sreenand.k2706
    @sreenand.k2706 2 ปีที่แล้ว

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

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

  • @greyt-shirt3018
    @greyt-shirt3018 2 ปีที่แล้ว

    How many OHMs was that speaker?

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

  • @godotology
    @godotology ปีที่แล้ว

    where is the code for the last exsample ??

  • @AX3904P
    @AX3904P ปีที่แล้ว

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

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

  • @aeffendiibrahim2562
    @aeffendiibrahim2562 5 ปีที่แล้ว +6

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

    • @Fungineers
      @Fungineers  5 ปีที่แล้ว +2

      Either will work no problem

    • @aeffendiibrahim2562
      @aeffendiibrahim2562 5 ปีที่แล้ว +3

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

  • @venkateshwarareddy8379
    @venkateshwarareddy8379 4 ปีที่แล้ว +2

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

    • @Fungineers
      @Fungineers  4 ปีที่แล้ว +1

      th-cam.com/video/BZ6SuWlAZ5o/w-d-xo.html

  • @citanne
    @citanne 3 ปีที่แล้ว

    Many thanks for the useful information

  • @HerrWilhelm403
    @HerrWilhelm403 4 ปีที่แล้ว +1

    top, helped me alot, thx! :)

  • @rbasb1472
    @rbasb1472 2 ปีที่แล้ว +1

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

  • @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 11 หลายเดือนก่อน

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

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

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

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

  • @information88info
    @information88info 4 ปีที่แล้ว +1

    Great thank you

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

  • @astroid9087
    @astroid9087 4 ปีที่แล้ว

    Wow great vid

  • @PurpleGround
    @PurpleGround 6 ปีที่แล้ว +2

    Yay!

  • @kennethxing5380
    @kennethxing5380 4 ปีที่แล้ว

    Does the resistor have any effect on the pitch?

    • @WUOTH
      @WUOTH 2 ปีที่แล้ว

      No, only if you would use Caps or Inductors

  • @devrajjadhavrao6138
    @devrajjadhavrao6138 5 ปีที่แล้ว +3

    Hey!!
    from where i can get mario song code

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

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

  • @vvijayalakshmi6186
    @vvijayalakshmi6186 5 ปีที่แล้ว

    please send the full code.

  • @DaxQuick
    @DaxQuick 5 ปีที่แล้ว

    Cool!

  • @hasifridzuan3309
    @hasifridzuan3309 4 ปีที่แล้ว

    for a bigger sound which are better ?

  • @camelazo
    @camelazo 3 ปีที่แล้ว

    Still waiting recorded stuff

  • @oscarcacnio8418
    @oscarcacnio8418 ปีที่แล้ว

    I bet Tim Follin can make that buzzer sing.

  • @marcosjohnsonnoya417
    @marcosjohnsonnoya417 4 ปีที่แล้ว

    Thx

  • @GhamPlays
    @GhamPlays 4 ปีที่แล้ว +1

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

    • @valentine5062
      @valentine5062 4 ปีที่แล้ว

      Electrical engineering

    • @sugarboy4280
      @sugarboy4280 4 ปีที่แล้ว

      Definitely electrical

    • @OskarP2601
      @OskarP2601 3 ปีที่แล้ว

      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

  • @ishmummonjurnilock8950
    @ishmummonjurnilock8950 5 ปีที่แล้ว

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

  • @taihatranduc8613
    @taihatranduc8613 3 ปีที่แล้ว

    you are so gooooooodddd

  • @venkatasriramG
    @venkatasriramG ปีที่แล้ว

    You are a god

  • @TheRyanHeffner
    @TheRyanHeffner 3 ปีที่แล้ว

    Thank you. You just made me a millionaire.

  • @tomasramilison
    @tomasramilison ปีที่แล้ว

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

  • @tommychappell6359
    @tommychappell6359 3 ปีที่แล้ว

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

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

  • @mpoadmin2978
    @mpoadmin2978 3 ปีที่แล้ว +1

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

    • @zekesensei
      @zekesensei 3 ปีที่แล้ว

      Your killing mee

  • @tinkeringwithhighvoltage
    @tinkeringwithhighvoltage 3 ปีที่แล้ว

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

    • @Fungineers
      @Fungineers  3 ปีที่แล้ว +1

      Lol I guess you like the black color. Its a seller on Aliexpress called robotdyne

    • @tinkeringwithhighvoltage
      @tinkeringwithhighvoltage 3 ปีที่แล้ว

      I’ve already have one, but can’t be programmed

    • @Fungineers
      @Fungineers  3 ปีที่แล้ว

      @@tinkeringwithhighvoltage why

    • @tinkeringwithhighvoltage
      @tinkeringwithhighvoltage 3 ปีที่แล้ว

      No idea

    • @Fungineers
      @Fungineers  3 ปีที่แล้ว +1

      @@tinkeringwithhighvoltage return and refund :D

  • @kaiblaz
    @kaiblaz 4 ปีที่แล้ว

    If you have tried this, please have some time to appreciate this canon in D using arduino piezo buzzer vid: th-cam.com/video/qIfW58yamDs/w-d-xo.html

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

  • @rawlensbyrashed2452
    @rawlensbyrashed2452 6 ปีที่แล้ว

    Awesome... first

    • @bigpickles
      @bigpickles 4 ปีที่แล้ว

      Indian, 100%

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

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

  • @kingdavid4463
    @kingdavid4463 3 ปีที่แล้ว

    You lack of
    pithiness.

  • @jacjfernandes8107
    @jacjfernandes8107 3 ปีที่แล้ว +1

    Osm ganta gaand project

  • @watch54
    @watch54 2 ปีที่แล้ว +1

    very boring. keep small .

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

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