WEBVTT

00:00.300 --> 00:07.050
Let's now add the LCD display screen to our second and first, I'm going to do this with the simulation

00:07.050 --> 00:13.950
and think again, as always, and then show you how to do this with the final Secrett on the real hardway.

00:14.490 --> 00:19.110
So we're going to start from the ultrasonic sensor here.

00:19.110 --> 00:20.550
I'm going to duplicate this.

00:24.130 --> 00:26.450
So here we already have three.

00:26.620 --> 00:34.930
It is that we going to keep we have the push button, the button and the infrared sensor, so we are

00:34.930 --> 00:40.890
going to leave those components here and we are going to add the LCD so you can take LCD here.

00:41.410 --> 00:49.300
And this is the LCD 16 time to get a click here and I can plug it.

00:50.260 --> 00:53.380
Actually, I can just put it there.

00:54.250 --> 00:56.100
Let's put it let's put it here, OK?

00:58.520 --> 01:05.180
So here on The Real Secrets, this we will have a bunch of different Holsey, different things, we

01:05.180 --> 01:08.360
are going to connect them in along like this on the circuit.

01:08.750 --> 01:15.800
But for the simulation, it would be easier just to put it on the side and then just to plug it directly.

01:16.160 --> 01:20.390
And the pins we are with the brain.

01:21.170 --> 01:22.540
So we have a few.

01:22.550 --> 01:26.450
As you can see, you have a few different pins here and that's quite a lot.

01:26.450 --> 01:29.820
But let's just cut them one by one.

01:30.320 --> 01:32.990
So let's go from left to right.

01:33.020 --> 01:35.690
OK, first you have Genndy.

01:36.080 --> 01:38.750
So Genndy, that's quite obvious.

01:38.750 --> 01:42.480
We're going to plug it to Genndy, so I'm going to plug it on the line here.

01:42.890 --> 01:47.200
Let's put it like, OK, make sure it's connected to the Jindalee.

01:47.930 --> 01:53.960
The second one, this is is connected to five balls in.

01:54.170 --> 01:54.570
Right.

01:54.620 --> 02:05.240
OK, we have first one ground five volt and then v0 v0 is that you can see for the contrast and we are

02:05.240 --> 02:10.870
going to need to tune the contrast here with the potential metal.

02:11.420 --> 02:14.330
So what I'm going to do is I'm going to remove that wire here.

02:14.690 --> 02:19.100
So now the Button Schmitter will not be connected anymore to an analog pin.

02:19.430 --> 02:25.400
We are going to connect the potential return to the pin v0.

02:25.940 --> 02:27.550
That's pretty blue again.

02:29.190 --> 02:35.780
So to the pin this on the LCD display screen and I'm going to show you later why we need that potential.

02:36.690 --> 02:37.680
So the button should matter.

02:37.710 --> 02:44.640
You still have one leg which is connected to ground, the other leg on the opposite side connected to

02:44.910 --> 02:49.660
Five-fold and in the middle pin connected to the zero.

02:50.370 --> 02:57.050
Then we have our S. So we're going to plug this to a digital beam.

02:57.180 --> 03:03.060
But actually, I'm going to plug it not to a digital piñon, going to plug it to an analog pin.

03:03.690 --> 03:06.720
And let's see a five.

03:09.950 --> 03:16.130
OK, because later on, I'm going to use many of the digital pins for the rest of the pins here and

03:16.130 --> 03:17.270
for other components.

03:17.450 --> 03:24.620
So when I was talking about analog pins, I told you that there can be very useful if you run out of

03:24.620 --> 03:25.400
digital pins.

03:25.440 --> 03:27.720
OK, so that's a case here.

03:27.770 --> 03:29.510
OK, that's an example I'm showing you.

03:29.780 --> 03:31.470
We're going to use all those pins here.

03:31.520 --> 03:35.960
I don't want to use PIN number 13 because this is the pin for the built in LG.

03:36.380 --> 03:39.680
And I also want to keep the pin number zero and one three.

03:39.980 --> 03:42.200
So I'm simply going to put.

03:43.470 --> 03:47.990
This has been to a five and just use a five as a digital.

03:48.770 --> 03:52.610
Now the RW, you are going to plug it to ground also.

03:53.120 --> 03:56.400
So let's put it here like.

03:57.430 --> 03:58.000
This.

04:02.070 --> 04:12.930
That's OK, so other value to ground and then e we go to another digital thing and actually I'm going

04:12.930 --> 04:15.060
to use a.

04:15.690 --> 04:17.030
So let's put it here.

04:17.370 --> 04:19.650
I'm going to use an analog.

04:21.450 --> 04:23.250
Let's use A for.

04:26.650 --> 04:29.230
It's politics, it's the ink.

04:29.740 --> 04:37.840
OK, so Genndy to e you have all the things that are collected for this and then we are not going to

04:37.840 --> 04:42.220
connect D.C. We are going to create one, two and three.

04:42.220 --> 04:43.810
We are going to start at four.

04:44.230 --> 04:48.960
OK, and the thing for the defore, we are going to connect it here.

04:48.970 --> 04:54.100
I'm going to use the digital pin number six.

04:56.250 --> 05:02.370
Yep, let's use six, let's put a different color it to was a.

05:03.950 --> 05:07.370
Is this OK, this wire is for the president and I'm going to.

05:08.560 --> 05:09.130
This.

05:11.490 --> 05:16.890
So it can start to look quite messy, but if you use different colors, that should be fine and just

05:16.950 --> 05:19.680
like one way at a time and you shouldn't have any problem.

05:22.730 --> 05:28.580
So did before in PIN number six and then five will be on PIN number seven.

05:30.170 --> 05:36.390
OK, let's get green and then be six on PIN number eight.

05:39.880 --> 05:50.920
The Brown, for example, DBE seven would be on PIN number nine, and it's changed to color also orange,

05:52.300 --> 05:52.900
yellow.

05:55.080 --> 06:00.300
All right, so you can to we have many of the digital pins that are occupied now and then you have two

06:00.300 --> 06:02.240
more pins here, you can see.

06:03.050 --> 06:14.660
And so this first one, we are going to connect it to five volts, but with a racist or so per store,

06:15.330 --> 06:17.130
I'm going to register here.

06:17.760 --> 06:19.940
I'm going to put it outside of the circuit.

06:19.950 --> 06:21.570
Actually, that's not a problem.

06:22.260 --> 06:22.800
Let's.

06:24.290 --> 06:33.830
It's like this, and this will be a two hundred and twenty point case, so right, right and wrong.

06:34.910 --> 06:41.150
And this goes to that and this goes to the.

06:42.750 --> 06:45.270
This line, OK, let's make this.

06:46.750 --> 06:47.620
That'd be nice.

06:48.040 --> 06:48.700
OK.

06:49.870 --> 06:52.210
And let's put this in red.

06:55.070 --> 07:01.520
OK, so this is an entity that basically will power on the screen.

07:01.550 --> 07:03.740
OK, so we have light on the screen.

07:03.740 --> 07:05.530
We can see what's written on the screen.

07:05.900 --> 07:11.900
So basically you need to plug one leg of the entity, OK, to here to Five-fold because it's always

07:11.900 --> 07:16.700
going to be on using a 220 on resistor and the last.

07:18.730 --> 07:23.080
Then we are going to play it to the ground, so it's.

07:24.240 --> 07:27.780
This and play it to with black.

07:29.670 --> 07:37.950
All right, and that's it for the LCD screen, so you have and can see three more connections to ground,

07:37.950 --> 07:41.670
two more connections to D.C. and then you use different digital pins.

07:42.000 --> 07:44.910
And also I use analog pins as digital pins.

07:45.570 --> 07:54.060
So quick recap first, from left to right, Genndy goes to ground and this is he goes to Five-fold v0

07:54.330 --> 07:56.880
goes to the spin of the data from the product.

07:58.470 --> 08:10.140
Up is goes to in a five hour W goes to the ground, it goes to a four and then zero one, two, three

08:10.140 --> 08:10.950
not connected.

08:11.580 --> 08:19.050
And you are going to connect the deep four to pin number six, the five to pin number seven, the six

08:19.050 --> 08:24.160
to pin number eight decision to pin number nine and then you have an NDA.

08:24.160 --> 08:33.720
So the first on the left first thing is going to Five-fold with a 220 on register and the last one is

08:33.720 --> 08:34.700
going to the ground.

08:34.770 --> 08:35.280
Also.

08:36.320 --> 08:36.800
All right.

08:38.110 --> 08:39.840
The secret is not complete.

08:41.240 --> 08:47.600
All right, and this is the real how to a secret, so you can see now I have plugged the LCD screen

08:47.840 --> 08:51.560
online, so make sure you don't play it on a minus or a plus nine.

08:51.630 --> 08:58.790
OK, make sure you connect it directly on the breadboard with each pin connected to a different line

08:58.790 --> 08:59.230
of the red.

08:59.720 --> 09:03.600
OK, so you can see I've put it there, OK, just near the bottom.

09:04.190 --> 09:13.490
So we have well of course I have also disconnected original first you can see here the thing is that

09:13.490 --> 09:20.990
the name using the pin may be different from the name you see on the simulation, but the other is exactly

09:20.990 --> 09:21.520
the same.

09:22.010 --> 09:29.780
So you have first VSS that you're going to connect to the ground with this black wire, then you have.

09:31.060 --> 09:39.110
This is this idea that you going to fight, what with this small right way and then you have zero pin.

09:39.140 --> 09:45.690
So you can see here put on Schmitter before that being was connected to an analog pin right there.

09:46.000 --> 09:52.570
But now I have removed this connection and cut the connection from the data being of the potentiator

09:52.960 --> 09:55.740
to the V0 being here.

09:56.500 --> 10:02.830
Then I have the power as being as being the we're going to a five.

10:04.730 --> 10:15.690
The next one is RW, RW going to the ground and then we have it going to a four right there.

10:16.670 --> 10:19.480
So that's the first range of things.

10:19.760 --> 10:26.510
Now we have these are all Daewon, these three, two, three that are free and defore.

10:26.510 --> 10:28.850
So DeFore is going to be number six.

10:29.430 --> 10:38.090
OK, you can see here and then deep five, PIN number seven, the PIN number eight and the seven pin

10:38.090 --> 10:39.770
number nine.

10:40.250 --> 10:50.600
OK, so the pins here correctly connected and then we have a K, a K which are for the energy of this

10:50.900 --> 10:51.610
display screen.

10:52.010 --> 11:01.850
So the first one A I have, but as you can see that 220 cm Restall from the pin to the five volt line

11:02.090 --> 11:07.490
and then the last pin is connected to the ground with another black wire.

11:08.240 --> 11:15.560
OK, so if you just make sure you connect one thing at a time and you make sure it's correctly connected,

11:15.920 --> 11:17.570
you should not have any problem.

11:17.690 --> 11:22.910
And now your hardware setup is down and you can start to work with the LCD screen.
