We now have the LGBT and the pushbutton in our circuit.
Let's now add a buzzer so we can make some sound so the buzzer can also be named sometime piezo.
Okay, so you take your buzzer and you just plug it, for example, here and well, you have two pins,
a positive and a negative.
So you just put it there.
You just plug the negative to the ground.
Is like that and you plug the positive directly to a digital pin.
Let's use here the digital PIN number eight, which is available.
And let's take, for example, yellow color.
Okay, You don't need any resistor here.
And you.
So that's very basic.
Okay.
You just plug the negative to the ground and the positive to a digital pin.
It doesn't matter which one.
Okay.
You don't need to have for the buzzer.
And here is the secret with the buzzer.
So, of course, make sure you disconnect and you power off the Arduino.
You can see I have the buzzer here.
And so one important thing you can see, you should have a passive buzzer.
How to know this is a passive.
Well, if you look at the back, you should see the PCB like this.
It should be green or something similar.
If it's completely black, it means you have an active buzzer.
Okay, so here I'm using a passive and I see the PCB.
You can see I have a minus and a plus.
You have the plus here.
So the plus is the positive side.
So I'm just going to plug it back here.
And so you have the negative side connected to the line here, the ground line and the positive, which
is connected to digital PIN number eight here on the Arduino.