Let's start by adding to our secrets, so then you would be able to use it with digital pens set up
as input means, I'm going to show you exactly what to do in Tinker Card and then you can follow the
exact same step that you do a real secret.
And I will show you the results.
Also, with the real secrets that we are not going to start an empty project here, we're going to use
what we already had before.
OK, so every time we add a new component, we are going to do it in an iterative way.
So we have all the components that we have added before, plus the new one.
So here what you can do here, we have our LG Sigrid's.
You can click on these settings here and click on Duplicate.
Now, we are not going to modify directly any secrets, we create a new one, OK, which is a copy of
aready, let's name it Bush Button, OK?
And we are going to get the budget done right here in this secret.
So the first thing we can see is that we already have the connection between the ground of the original
and the ground here.
This line that we set up as the ground of the preborn.
But I'm going to add the power button here on the right, and you can see here on the list of components,
we already have Berbatov here.
But as a to if you don't have it, you can directly search for it.
I take my push button, I put it there, and then we will also need a racist or.
OK, taking register and these register will be a 10 kiloton raised kilo here and then here.
And as you can see, we have brown, black and orange.
I'm going to make it rotate like this, all right, and that's all the components we need, plus the
different wires, OK, but the wires, we are going directly to create it from the bone.
That's all the components we need for the circuit.
What we're going to do is take the then and place it here between the two sets of lines here on the
BRADBOURN.
So you have one leg here, one leg, see another one here and another one here.
We are going first to connect this push button to the ground and to do that, we are not going to directly
connect to the ground, but we are going to register.
OK, I'm going to explain just after why we had to register here.
So on this link here, you can connect one register and then connect the other leg of the register here
to another line.
And then I'm going to take this and connect to the ground.
So make sure this is the ground line, OK?
Yes.
This is the ground nine.
I'm going to put this in black, because this is the common ground and that's the first connection we
need to know the Syrian connection is we need to connect this leg, OK, on the other side of the button
to the five-fold supply of the Ardino.
So we can see here we have a five world supply.
And instead of just putting a wire like that to fibrotic would do this, OK, but instead I'm going
to connect the five five-fold air.
The plus.
Line.
OK, so I'm going to carry it and we'll the color, right?
OK, Red is the convention for power supply.
So I'm going to use the right only for power supply and not for anything else.
And I recommend you do the same black and red ground and power supply.
The five volt here goes directly to this line, which means that now all this line.
Is connected to Facebook, and you will see in the following of these girls, we actually need to connect
multiple components to the power supply.
So this line will be dirigiste.
So what we can do and we need to take one dot from this line, any dots and connect it to the line of
the five to make sure that you don't connect it to the ground, but to the line of fire and.
But it good.
All right.
OK, so you can see by using the different colors, red and black, we can easily make the difference
between ground and five-fold.
So in the future we will make much less mistakes.
All right.
So we have this been connected to ground we've with on this been connected to by vote.
Now I'm going to take the pin, which is on the other side here of the button on this side, which also
corresponds to the side of the ground.
And I'm going to take one dot.
So let's say this one and I'm going to connect it now to.
Digital bin.
No.
Two, like in the square like these.
OK, that's better.
So with this being number two, we are going to be able to read the state of the push button and right
now the secret is now finished.
And just why did I?
D register here connected to the ground?
Because this is actually not mandatory.
This register will act as what we call a pulldown register.
What is a pulldown register?
Well, well, you just have a curtain here and you have so ground and power supply.
And then you read the state from that in the state of the button.
So the voltage that is applied to the button may be floating, which means that it can be anywhere from
zero to five volt and the voltage will continuously change by adding this register here connected to
the ground.
What we do is we force the default state of the button to be low.
So to be zero volt and you could do the same thing with a pull up register.
So instead of creating a register, go to the ground, you will connect it to the power supply.
And then instead of using this line for the digital thing, you would use the other one and thus will
describe the default state for the push button will be high five.
OK.
OK, so here by doing this, so we pull down resistor to zero volt when we read the stage for the push
button.
When the button is not pressed, we will read the state level and when the button is priced, we need
to rate the state high and we don't need to worry about the voltage here floating between two numbers.
All right, and this is the real hardware circuit, so make sure that you just connect the world to
at least one of the two parts of the U.S. cable here just from completely.
And then so we have.
When do we have a secret?
We have our pushbutton here, which I've collected, just like in the Tinker Get simulation game between
the two parts, between the two sections of the BRADBOURN.
Then I have my in my down register, which is a tentative register.
But as you can see here, instead of connecting the register between this leg of the button and another
line and then adding a black wire, I just directly connected the restore between the ground and this
leg of the register.
OK, because this is very near.
I can save the wire there.
Then I have added here this wire, OK, between Kinsela Five-fold, King of the Arduino and this line.
OK, so I have the ground to the ground and the five volt lines are not all this line here in red.
It's connected to Five-fold and I have the small wire around wire between this line and this being able
to button.
And finally here on this.
Side, OK, which is the same side as the ground side.
I have another way out.
So I chose Green as well.
Another wire that is connected between this bin and.
He had been number two of the.
All right, I know you have your attorney here and the president here and the two lines of the plus
and minus line are connected respectively to the Bible and to the grand.