1 00:00:00,590 --> 00:00:01,920 Hello and welcome this new. 2 00:00:03,320 --> 00:00:11,150 Now it's time to set up the bling up to monitors and social values, and the first step will be installing 3 00:00:11,150 --> 00:00:13,950 doubling up on your smartphone. 4 00:00:14,870 --> 00:00:17,830 Now go to your smartphone and go to the App Store. 5 00:00:18,140 --> 00:00:25,490 Depending on the type of smartphone that you have, that might be Google Play store or Apple Play store 6 00:00:25,610 --> 00:00:28,370 or App Store and. 7 00:00:28,370 --> 00:00:28,880 Right. 8 00:00:28,970 --> 00:00:29,780 Who blink. 9 00:00:33,040 --> 00:00:37,090 As you can see, you will get it and it's the first results. 10 00:00:37,750 --> 00:00:44,850 This is our eyeblink and Internet of thing for Arduino E.S.P 32. 11 00:00:45,790 --> 00:00:50,530 Now, as you can see, I already have the app, so I will flick open. 12 00:00:50,740 --> 00:00:54,700 But if you don't have it, you have to click, install or download. 13 00:00:55,300 --> 00:00:58,390 You will wait some time and you will give up. 14 00:00:58,390 --> 00:01:02,860 And as you can see from the description, this app is used to control Arduino. 15 00:01:03,110 --> 00:01:11,110 A Raspberry Pi E.S.P is 266 and E.S.P 32 and a lot of other boards. 16 00:01:11,390 --> 00:01:18,370 It's the first and only drag and drop mobile app builder for microcontrollers and Internet of Things. 17 00:01:19,540 --> 00:01:24,310 Click open and as you can see, you have more than one option to login. 18 00:01:24,310 --> 00:01:29,950 You can log if you already have an account, you can create a new account or you can login with your 19 00:01:29,950 --> 00:01:30,610 Facebook. 20 00:01:31,360 --> 00:01:41,590 Now you can create an account by clicking here and adding your email and password. 21 00:01:50,250 --> 00:01:56,790 Now, after writing your password, click, create new account, it shouldn't take a lot of time. 22 00:02:00,240 --> 00:02:07,960 Creating a new account will give you a unique authentication code and will be sent to your email. 23 00:02:08,280 --> 00:02:15,770 And this is very important since we are doing this to control our esport now. 24 00:02:16,330 --> 00:02:23,580 Now, after creating an account, you need to create a new project and select your hardware. 25 00:02:24,210 --> 00:02:26,640 Now click new project. 26 00:02:27,390 --> 00:02:30,290 And as you can see, you need to name your project. 27 00:02:31,110 --> 00:02:33,990 I will call it Smart Ghanim. 28 00:02:35,760 --> 00:02:39,270 And you need to select your board and as. 29 00:02:40,500 --> 00:02:43,890 You can see you have a lot of balls that you can choose from. 30 00:02:45,570 --> 00:02:52,500 And the one that we need is the E.S.P, you have Arduino Raspier Pi and a lot of other boards. 31 00:02:53,220 --> 00:03:00,090 We need E.S.P 32 Dev Board and you can choose the connection type. 32 00:03:02,840 --> 00:03:09,640 As you can see here, we have Wi-Fi connection and you can either choose dark or light, I will choose 33 00:03:09,650 --> 00:03:12,620 light as since it's easier on the eye. 34 00:03:13,100 --> 00:03:15,200 Then click create a project. 35 00:03:16,400 --> 00:03:19,190 Now, as you can see, authentication. 36 00:03:19,190 --> 00:03:27,560 Tolkien was sent to my email and you can also find it by clicking on this icon on the upper right corner. 37 00:03:28,250 --> 00:03:31,790 Click OK, and we will get it from our email. 38 00:03:31,980 --> 00:03:39,500 Now, the authentication codes are very important code that you will use to control your project. 39 00:03:40,220 --> 00:03:45,680 Now we need to create our smart guarding monitoring system inside this link up. 40 00:03:46,670 --> 00:03:54,740 Now you have an empty canvas, as you can see, and we need to add four gauge widgets to monitor temperature, 41 00:03:54,800 --> 00:04:03,920 humidity, water level and soil moisture level sensor readings and to do that tap on the canvas to open 42 00:04:03,920 --> 00:04:05,240 up the widget box. 43 00:04:05,870 --> 00:04:08,870 Now you can pick a gauge. 44 00:04:09,230 --> 00:04:15,080 As you can see, we have a lot of gauges and you need to choose one of these. 45 00:04:17,080 --> 00:04:22,990 You can choose any of them, as you can see here, we have controls, we don't want these here. 46 00:04:22,990 --> 00:04:25,920 We have displays and we can choose. 47 00:04:25,930 --> 00:04:30,120 This is the one that's called Cage. 48 00:04:30,970 --> 00:04:38,470 And when you choose it, as you can see, you can control the size of the cage by dragging and dropping, 49 00:04:38,800 --> 00:04:41,190 using these four points on the corners. 50 00:04:42,070 --> 00:04:47,280 And when you tap on the widget, you can change its settings. 51 00:04:47,830 --> 00:04:51,940 So if you click once, you can see that you can change the name. 52 00:04:51,940 --> 00:04:54,800 Size takes size and color of the cage. 53 00:04:55,450 --> 00:05:06,090 Now you can change the name and you can change the range and you can change the font size and text. 54 00:05:06,100 --> 00:05:08,050 As you can see, we need a large font size. 55 00:05:08,530 --> 00:05:16,090 We can choose this color, the blue one, and you can choose the refresh interval. 56 00:05:16,750 --> 00:05:21,550 Now, the two most important things are the pen and the refrigerate. 57 00:05:22,120 --> 00:05:29,380 You need to set a virtual pen for each GigE with two seconds or three seconds or six seconds of refresh 58 00:05:29,380 --> 00:05:29,770 time. 59 00:05:30,430 --> 00:05:36,670 And since we choose three seconds for the temperature and humidity, as you can see, we don't have 60 00:05:36,670 --> 00:05:37,740 it as an option here. 61 00:05:38,110 --> 00:05:44,640 So we will change it in the code to two seconds and click, OK, and we will do the code to match that. 62 00:05:45,640 --> 00:05:52,880 Now, two seconds and the next step is selecting the PIN number. 63 00:05:53,530 --> 00:05:58,750 Now, when you click the PIN number, as you can see, OK, click the pen. 64 00:05:59,650 --> 00:06:06,040 When you click on the pen, you can see that we have V, which is basically a virtual pen and we know 65 00:06:06,040 --> 00:06:10,750 for sure that for our temperature. 66 00:06:13,040 --> 00:06:22,100 And humidity sensor, we are getting these readings in the cold, if you went back to our code, you 67 00:06:22,100 --> 00:06:26,290 can see that the temperature is V4. 68 00:06:27,950 --> 00:06:29,690 So change this to before. 69 00:06:32,080 --> 00:06:38,460 And as you can see, you can change the label, but we don't want to do that, and here we have that 70 00:06:38,460 --> 00:06:47,680 range now after changing the refrigerator and the PIN number, you can go back to your canvas and make 71 00:06:47,680 --> 00:06:48,100 it look. 72 00:06:50,180 --> 00:06:56,310 The way you want, so click OK, and as you can see here, we have temperature before and it's in blue. 73 00:06:57,340 --> 00:06:57,970 You can. 74 00:07:00,610 --> 00:07:09,610 Move it anywhere and you can change its size now would add the temperature here, you can change the 75 00:07:09,610 --> 00:07:10,150 size. 76 00:07:11,890 --> 00:07:13,480 Now we need another gauge 77 00:07:15,970 --> 00:07:17,380 for the humidity. 78 00:07:17,390 --> 00:07:22,570 And since we have four, let's minimize this and have them next to each other. 79 00:07:25,860 --> 00:07:27,540 Now, let's move this one. 80 00:07:29,380 --> 00:07:30,100 Up here. 81 00:07:31,440 --> 00:07:33,390 And this one, let's call it. 82 00:07:35,890 --> 00:07:36,700 Humidity. 83 00:07:38,940 --> 00:07:48,030 And the under pressure to two seconds make the font size large change the PIN number to V5 since we 84 00:07:48,030 --> 00:07:53,730 have five and as you can see when you click here, you can see that before is busy. 85 00:07:55,130 --> 00:07:57,680 So it shows the five. 86 00:07:59,130 --> 00:08:04,560 Refaat is busy because we already used it now, as you can see, this is the analog range from zero 87 00:08:04,560 --> 00:08:05,670 to 1023. 88 00:08:05,700 --> 00:08:07,140 We can change that later. 89 00:08:07,470 --> 00:08:13,670 But for now, humidity at V5, just like an hour cold and the refrigerator is two seconds. 90 00:08:14,250 --> 00:08:16,620 Now we need to mortgages. 91 00:08:19,220 --> 00:08:27,170 Let's add our water level gauge and let's add another gauge for the soil moisture. 92 00:08:27,560 --> 00:08:29,270 Now, this one is for water. 93 00:08:31,990 --> 00:08:32,500 Live in. 94 00:08:34,550 --> 00:08:38,660 And we know for sure that the water level is. 95 00:08:40,720 --> 00:08:41,560 V. seven. 96 00:08:48,710 --> 00:08:51,820 Avieson now. 97 00:08:53,980 --> 00:09:00,610 We tried the refresh rate five seconds, then click, OK, you can change the color. 98 00:09:01,890 --> 00:09:05,790 The steroids case since sort of does make it blue. 99 00:09:07,380 --> 00:09:11,190 Now, the last one is for ASOL. 100 00:09:13,420 --> 00:09:15,460 And it's V six. 101 00:09:24,840 --> 00:09:31,980 Now, president, according to Orange, and that if to five. 102 00:09:36,410 --> 00:09:44,390 That's it now let's look OK and make sure that we have everything correctly before we five-fold the 103 00:09:44,390 --> 00:09:50,070 temperature and humidity V seven and we six for the water level and soil moisture. 104 00:09:50,600 --> 00:09:57,200 Now, the next step, we need to add a button widget to control thoroughly. 105 00:09:59,030 --> 00:10:03,670 Now click here, go up and choose button. 106 00:10:04,460 --> 00:10:05,810 And this is our button. 107 00:10:08,480 --> 00:10:11,350 Click once on the button bin. 108 00:10:12,770 --> 00:10:19,340 Now, as you can see here, you can choose a digital or virtual button now. 109 00:10:20,920 --> 00:10:26,410 Change the name of the button first and call it necessarily. 110 00:10:29,460 --> 00:10:30,150 Enthrone. 111 00:10:32,260 --> 00:10:38,430 After changing the name, you can change the button, Taieb, and the bin, that bin is the general 112 00:10:38,430 --> 00:10:46,410 purpose input output pin of the E.S.P 32 Weatherley is connected and we already mentioned that it is 113 00:10:46,410 --> 00:10:51,490 connected to a PIN number 22, the 22. 114 00:10:52,350 --> 00:10:55,110 Now we have to send this. 115 00:10:55,470 --> 00:11:01,680 So we have to go to the pin and choose g.P 22. 116 00:11:04,620 --> 00:11:14,250 As you can see here now, you can choose either switch or push, I will choose switch and that's it. 117 00:11:16,350 --> 00:11:26,910 Now click, OK, now that blink, we can change, OK, we can change this color now the blink abs ready, 118 00:11:27,180 --> 00:11:35,660 we have four indicators and one button to control the relay and everything is chosen correctly. 119 00:11:36,180 --> 00:11:42,690 That's it for the uplink set up in the next lesson, we will take the authentication code and we will 120 00:11:42,690 --> 00:11:44,880 insert inside our E.S.P. 121 00:11:44,880 --> 00:11:54,090 Thirty two code and we will add the wi fi and you name and password to our ISP hoped to board bar code 122 00:11:54,450 --> 00:11:59,880 and we will applaud Dakotah E.S.P board so that we can start controlling and monitoring this. 123 00:12:00,480 --> 00:12:01,800 As you can see, that is around. 124 00:12:01,800 --> 00:12:09,360 But on the right to bright side, once you click on it, it will start trying to connect to your ISP 125 00:12:09,360 --> 00:12:12,930 and if it is connected online, you will get the readings. 126 00:12:13,410 --> 00:12:14,750 Thanks for watching this lesson. 127 00:12:14,880 --> 00:12:17,910 This is Ashraf Compressional engineering team.