Hello friends.
Welcome back to the Cox now.
We will use the same concepts we have learned and really try to extrapolate these concepts on Lego Mindstorms
skate.
So Lego is a very famous device.
It is used for robotics.
It is used for STEM education and it has very exciting kids.
Let's just go through this simulation software of LEGO.
You have to click here and you will get a new window of Lego Mindstorms and then you have to go to new
project
okay.
Now here you can see this right the Lego Mindstorms block or the brick which is known as a brick wood
here.
And it has four connections at the top.
ABC and forward connections and the Wharton one two three four and this is the brick the central part
is the brick it is the main machine or you can see it is the main brain of the lego visual TV program.
The way we did an Arduino the Arduino was the brain here the LEGO brick is the brain the four connections
are the top.
ABC are basically the output pens or the outputs where we will connect the outputs and below these four
one two three four are the input.
So these are input and at the top we have outputs so let's start programming it first will go through
the brick and in the brick you can see we can do many things.
There is a status light.
We can just drag and drop it here and you can see the status light has started going orange so it is
a status light so you can change the color from this then there are lots of other things that you can
do in the brick you can show that images you can write a string you can show Hello void here let's go
here
so it is showing Halloway
so you can display anything you want to display.
So this is about the brick.
Now let's see what is there in the census
OK if I click here it comes on the programming screen
now what has been done is in this I have selected the sensor number one so the one this one is sensor
and we have used the sensor pressed Now this is a different type of sensor in which we can press it
and release it.
So if you press it it will do some action what we can do is we have to write it over here now whatever
you want to do for example let's say I want to show Hello avoid whenever I press this sensor whenever
I press this sensor see Hallowell is being displayed.
Okay.
Now what I want to do is vinegar I press the second sensor this hellhole should be erased so if I go
here and again drag and drop it here and instead of one if I select two and I go to break and from here
I will select clear screen
so if I press on the second sensor it would clear the screen.