 Sound is pretty amazing when you think about it. You compress air or you aggressively disturb it and you create sound frequencies that the ear can pick up and then your eardrum takes that and sends electrical signals to your brain making you register sound. Because of this we can enjoy things like playing music on instruments or listening to music on your phone. To create the sound that's coming out of instruments or phones or whatever we have to create the frequencies in the air that register the sound. To do that we use speakers like this. We have a magnet with a coil inside putting electricity into it and telling it to shake the coil at a certain frequency creating that sound in the air. One thing that's really cool is once you learn to put out a certain sound frequency with the speaker and you let's say get five different ones you can register them and put them in sequence creating a song. This specific speaker is really small and cheap and won't put out obviously quality or accurate sound but it will do the job for the video. It has two cables on the back a ground and a power when you put power into it you're activating the magnet with the coil inside telling it to shake at a certain frequency and then it's going to start playing music. You can actually take something metal and put it next to it and you'll see that in a second the magnet will just pull it in and let's get what we need for this video. We're going to need an Arduino so grab one of those you're going to need three cables and then we'll be adding in an audio amplifier. What this is going to do it's going to take in the sound signals from the yellow cable that should be going straight to the speaker. It's going to be going inside here replicating them using a power cable and putting it out so think of it as we're putting out signal from the Arduino into the speaker normally we're going to take that signal send it to an amplifier which is going to amplify that signal times whatever we want using this little screwdriver hole here and then we're going to send that amplified signal to the speaker making it way louder. If you don't have one of these you can go and directly plug into your speaker. So on your amplifier you can see we have a GND right there out of our two ports meaning this is going to be black and this is going to be red so go ahead onto your speaker you're just going to want to open up these terminals by screwing them left now that it's plugged in we have black into the ground side red into the power side we're going to be plugging in one red cable into the five volt one black cable into the ground on the board and then we have one yellow cable for the signal plugged into port number nine on the digital side if you don't know the difference between digital and analog is the way they receive power so digital usually receives either high or low while analog can go all the way from zero to a thousand let's say you get more information and more options in analog but all we need to do is use a port to out port so we're just going to use a digital port. The yellow cable is going to go to the import IN right there then the red cable is going to go into VCC and black cable is going to go into one of the two grounds it doesn't matter really which one once that's all plugged together go and plug it into your computer and open up your Arduino editor as always we need to tell the Arduino as always we need to tell the Arduino which port we're plugging the buzzer into so in this case we're going to go constant and make a pin in port number nine then as always in the setup you're going to be telling it the pin you're using and then what you're going to be using it for so we're going to activate pin mode and then inside of that you're going to call pin and then you're going to call output because we're sending out power then we can go straight to our loop and call a command called tone. Tone puts out a frequency that we give it so the first thing we need to do is tell it what port and then we can tell it a frequency let's say a thousand under that let's go and do a delay of one second and now every second we should be hearing a one I'll go and upload it to your Arduino to make sure everything's plugged in properly and then we can hear this really annoying buzz if you want to disable the tone because it's getting really annoying while you're trying to write the code or whatever just put two slash lines in front of the word and then re-upload it to the Arduino. I was thinking instead of doing a full song because I don't have one available we can just go and create our own little sequence that was at a thousand hertz here the first one's at a thousand let's go and copy paste this a couple times and then on each specific one we're going to bump it up by one and just continue to go all the way down bumping it up by one now go ahead upload that to your Arduino and it should start playing for you that's okay but it was kind of annoying how long it took for each sound to go so let's go and remove one zero from the delay and now we'll have this like really weird rainbow sound effect sounds like you want something at a carnival like one of those jackpot machines I'm moving my closer let's say you're not happy with the current sound level and you wish it was a bit louder just grab the screwdriver plug it into your amplifier and just twist so just a little recap if you don't understand what's happening when we're pumping audio into the amplifier and then from the amplifier into the speaker let's say we're sending signals like this there's one every little space here keep sending signals and these are different sounds what the amplifier is going to do is it's going to take that it's going to send it to the speaker but it's just making them way bigger at the same frequency and pattern and length of between them it's just it's repeating exactly what it's receiving just putting it out with stronger power so when we played a sound and we went and put a screwdriver and little screw knob there and we twisted it up or down just like this we're able to go and control the power and how strong it is if you learned something new in this video please consider liking the video and maybe subscribing to the channel to see more of this type of content we're going to be building a couple of nice projects soon on stream live with you guys you guys can ask questions you guys can build it with me on your own setup here we were making an alarm clock where we're going to be using the speaker amplifier and an Arduino to go and make an alarm clock we're going to have the LCD monitor from last video and then here are a couple buttons where you can go and set up the time