Let's now add the LCD display screen to our second and first, I'm going to do this with the simulation
and think again, as always, and then show you how to do this with the final Secrett on the real hardway.
So we're going to start from the ultrasonic sensor here.
I'm going to duplicate this.
So here we already have three.
It is that we going to keep we have the push button, the button and the infrared sensor, so we are
going to leave those components here and we are going to add the LCD so you can take LCD here.
And this is the LCD 16 time to get a click here and I can plug it.
Actually, I can just put it there.
Let's put it let's put it here, OK?
So here on The Real Secrets, this we will have a bunch of different Holsey, different things, we
are going to connect them in along like this on the circuit.
But for the simulation, it would be easier just to put it on the side and then just to plug it directly.
And the pins we are with the brain.
So we have a few.
As you can see, you have a few different pins here and that's quite a lot.
But let's just cut them one by one.
So let's go from left to right.
OK, first you have Genndy.
So Genndy, that's quite obvious.
We're going to plug it to Genndy, so I'm going to plug it on the line here.
Let's put it like, OK, make sure it's connected to the Jindalee.
The second one, this is is connected to five balls in.
Right.
OK, we have first one ground five volt and then v0 v0 is that you can see for the contrast and we are
going to need to tune the contrast here with the potential metal.
So what I'm going to do is I'm going to remove that wire here.
So now the Button Schmitter will not be connected anymore to an analog pin.
We are going to connect the potential return to the pin v0.
That's pretty blue again.
So to the pin this on the LCD display screen and I'm going to show you later why we need that potential.
So the button should matter.
You still have one leg which is connected to ground, the other leg on the opposite side connected to
Five-fold and in the middle pin connected to the zero.
Then we have our S. So we're going to plug this to a digital beam.
But actually, I'm going to plug it not to a digital piñon, going to plug it to an analog pin.
And let's see a five.
OK, because later on, I'm going to use many of the digital pins for the rest of the pins here and
for other components.
So when I was talking about analog pins, I told you that there can be very useful if you run out of
digital pins.
OK, so that's a case here.
OK, that's an example I'm showing you.
We're going to use all those pins here.
I don't want to use PIN number 13 because this is the pin for the built in LG.
And I also want to keep the pin number zero and one three.
So I'm simply going to put.
This has been to a five and just use a five as a digital.
Now the RW, you are going to plug it to ground also.
So let's put it here like.
This.
That's OK, so other value to ground and then e we go to another digital thing and actually I'm going
to use a.
So let's put it here.
I'm going to use an analog.
Let's use A for.
It's politics, it's the ink.
OK, so Genndy to e you have all the things that are collected for this and then we are not going to
connect D.C. We are going to create one, two and three.
We are going to start at four.
OK, and the thing for the defore, we are going to connect it here.
I'm going to use the digital pin number six.
Yep, let's use six, let's put a different color it to was a.
Is this OK, this wire is for the president and I'm going to.
This.
So it can start to look quite messy, but if you use different colors, that should be fine and just
like one way at a time and you shouldn't have any problem.
So did before in PIN number six and then five will be on PIN number seven.
OK, let's get green and then be six on PIN number eight.
The Brown, for example, DBE seven would be on PIN number nine, and it's changed to color also orange,
yellow.
All right, so you can to we have many of the digital pins that are occupied now and then you have two
more pins here, you can see.
And so this first one, we are going to connect it to five volts, but with a racist or so per store,
I'm going to register here.
I'm going to put it outside of the circuit.
Actually, that's not a problem.
Let's.
It's like this, and this will be a two hundred and twenty point case, so right, right and wrong.
And this goes to that and this goes to the.
This line, OK, let's make this.
That'd be nice.
OK.
And let's put this in red.
OK, so this is an entity that basically will power on the screen.
OK, so we have light on the screen.
We can see what's written on the screen.
So basically you need to plug one leg of the entity, OK, to here to Five-fold because it's always
going to be on using a 220 on resistor and the last.
Then we are going to play it to the ground, so it's.
This and play it to with black.
All right, and that's it for the LCD screen, so you have and can see three more connections to ground,
two more connections to D.C. and then you use different digital pins.
And also I use analog pins as digital pins.
So quick recap first, from left to right, Genndy goes to ground and this is he goes to Five-fold v0
goes to the spin of the data from the product.
Up is goes to in a five hour W goes to the ground, it goes to a four and then zero one, two, three
not connected.
And you are going to connect the deep four to pin number six, the five to pin number seven, the six
to pin number eight decision to pin number nine and then you have an NDA.
So the first on the left first thing is going to Five-fold with a 220 on register and the last one is
going to the ground.
Also.
All right.
The secret is not complete.
All right, and this is the real how to a secret, so you can see now I have plugged the LCD screen
online, so make sure you don't play it on a minus or a plus nine.
OK, make sure you connect it directly on the breadboard with each pin connected to a different line
of the red.
OK, so you can see I've put it there, OK, just near the bottom.
So we have well of course I have also disconnected original first you can see here the thing is that
the name using the pin may be different from the name you see on the simulation, but the other is exactly
the same.
So you have first VSS that you're going to connect to the ground with this black wire, then you have.
This is this idea that you going to fight, what with this small right way and then you have zero pin.
So you can see here put on Schmitter before that being was connected to an analog pin right there.
But now I have removed this connection and cut the connection from the data being of the potentiator
to the V0 being here.
Then I have the power as being as being the we're going to a five.
The next one is RW, RW going to the ground and then we have it going to a four right there.
So that's the first range of things.
Now we have these are all Daewon, these three, two, three that are free and defore.
So DeFore is going to be number six.
OK, you can see here and then deep five, PIN number seven, the PIN number eight and the seven pin
number nine.
OK, so the pins here correctly connected and then we have a K, a K which are for the energy of this
display screen.
So the first one A I have, but as you can see that 220 cm Restall from the pin to the five volt line
and then the last pin is connected to the ground with another black wire.
OK, so if you just make sure you connect one thing at a time and you make sure it's correctly connected,
you should not have any problem.
And now your hardware setup is down and you can start to work with the LCD screen.