Hello, and welcome to this new lesson.
Now, it's time to set up the blink to monitor social values, and the first step will be installing
the Blink app on your smartphone.
Now go to your smartphone and go to the App Store.
Depending on the type of smartphone that you have, that might be Google Play Store or Apple Play Store
or App Store, Android who blink.
As you can see, you'll get it.
And it's the first result.
This is our uplink and internet of Things for Arduino.
Yes, P32.
Now, as you can see, I already have the app, so I will flick open.
But if you don't have it, you have to click, install or download.
You will wait some time and you will give up.
And as you can see from the description, this app is used to control Arduino and Raspberry Pi.
Yes, is 266 and the SB 32 and a lot of other boards.
It's the first and only drag and drop mobile app builder for microcontrollers and Internet of Things.
Let's click open.
And as you can see, you have more than one option to log in.
You can log in if you already have an account.
You can create an account or you can log in with your Facebook.
Now you can create an account by clicking here and adding your email and password.
Now, after writing your password, click Create New Account.
It shouldn't take a lot of time.
Creating a new account will give you a unique authentication code and will be sent to your email.
And this is very important since we are doing this to control our now.
Now, after creating a new account, you need to create a new project and select your hardware.
Now click new project.
And as you can see, you need to name your project.
I would call it smart gardening.
And you need to select your board and as.
You can see you have a lot of polls that you can choose from.
And the one that we need is the ISP.
You have Arduino, Raspberry Pi and the other boards.
We need ISP filter to devolved.
And you can choose the connection type.
As you can see here, we have Wi-Fi connection.
And you can either choose dark or light.
I will choose light as since it's easier on the eye, then click Create a project.
Now, as you can see, Authentication Token was sent to my email and you can also find it by clicking
on this icon on the bottom right corner.
Click OK.
And you will get it from our email.
Now, the authentication codes are very important code that you will use to control your project.
Now we need to create our smart guarding monitoring system.
And so this blank.
Now you have an empty canvas, as you can see, and we need to add four gauge widgets to monitor temperature,
humidity, water level and soil moisture level since your readings.
And to do that, dab on the canvas to open up the widget box.
Now you can pick a gauge.
As you can see, we have a lot of gauges and you need to choose one of these.
You can choose any of them, as you can see, you have controls, we don't want peace here, we have
this ablaze and we can choose this is the one that's called Cage.
And when you choose it, as you can see, you can control the size of the gauge by dragging and dropping
using these four points in the corners.
And when you tap on the widget, you can change its settings.
So if you clicked once you can see that you can change the name, size, text size and color of the
gauge.
Now you can change the name and you can change the range and you can change the font, size and text.
As you can see, we need a large font size.
We can choose this color.
The blue one.
And you can choose the refresh interval.
Now, the two most important things are the pen that refresh rate.
You need to set a virtual pen for each case with two seconds or three seconds or six seconds of refresh
time.
And since we chose three seconds for the temperature and humidity, as you can see, we don't have it
as an option here, so we will change it in the code to two seconds and click OK and the code to match
that.
Now, two seconds and the next step is selecting the pin number.
Now, when you click the pin number, as you can see, OK, click the pen when you click on the pin.
You can see that we have V, which is basically our virtual pen, and we know for sure that for our
temperature.
And the humidity sensor, we are getting these readings in the cold, if you went back to our code,
you can see that the temperature is v fought, so changed this to be fought.
And as you can see, you can change the label, but we don't want to do that.
And here we have the audience now after changing the refresh rate and the pin number.
You can go back to your canvas and make it look.
The way you want.
So click OK.
And as you can see here, we have temperature before and it's in blue.
You can.
Move it anywhere, and you can't change its size.
No, the temperature here, you can change the size.
Now we need another gauge
for the humidity and since we have for, let's minimize this and have them next to each other.
Now, let's move this one.
Up here.
And this one, let's call it.
Humidity.
And the refresh rate to two seconds make the font size large change the number to be five since we have
five.
And as you can see, when you click here, you can see that we fall is busy.
So choose the five.
We fought as busy because we already used it.
Now, as you can see, this is a look range from zero to 1023.
We can change that later.
But for now, humidity at five, just like in our code and the refresh rate is two seconds.
Now we need two mortgages.
Let's add our water level gauge, and let's add another gauge for the soil moisture.
Now this one is for water.
Live in.
And we know for sure that the water level is.
V7.
Gave his son now.
We thought that if we had five seconds, then click, OK.
You can change the colors.
Said it okay, since it's worthless, make it blue.
Now, the last one is for a sovereign.
And it's V6.
No question, the coloring to orange and the refresh rate of five.
That's it.
Now let's click OK and make sure that we have everything correctly before we fight for the temperature
and humidity, V7 and V6 for the water level and soil moisture.
Now the next step, we need to add a button widget to control literally now.
Click here, go up and choose button.
And this is our baton.
Flip once unchallenged, the baton pin.
Now, as you can see here, you can choose a digital or virtual baton.
Now.
Change the name of the button first and call it viscerally.
Control.
Now, after changing the name, you can't change the button type and the bin that bin is does general
purpose input output bin SB 32 worthily is connected, and we already mentioned that it is connected
to PIN number 22 d 22.
Now we have to send this, so we have to go to the pen and choose AGP 22.
As you can see here now, you can choose either switch or push button.
I will choose Switch.
And that's it.
Now click OK.
Now the blink, we can't change, okay, can change this color.
Now the blink is ready.
We have four indicators and one button to control the relay and everything is chosen correctly.
That's it for the uplink set up, and the next plus one will take the authentication code and we will
insert inside our yes P32 code, and we will add the Wi-Fi and name and password to our ISP hooked to
a bar code, and we will upload the Qatar ISP board so that we can start controlling and monitoring
this.
As you can see, that is around, but on the right to bright side, once you click on it, it will start
trying to connect to your ISP, and if it is connected online, you will get the readings.
Thanks for watching this lesson.
This is Ashraf functional engineering team.