1 00:00:00,710 --> 00:00:07,970 Hello and welcome to the stimulus on Energy are going to talk about E.S.P 30 to open out, which are 2 00:00:07,970 --> 00:00:12,530 purpose input output pens, should you use now? 3 00:00:14,180 --> 00:00:21,950 This is how the physical layout of that E.S.P board locks and as you can see, it's very similar to 4 00:00:21,950 --> 00:00:31,490 the Arduino Nano, but it has a Wi-Fi built and now they are speed first to peripherals, include 18 5 00:00:32,030 --> 00:00:40,880 digital converter or ADC channel, where you can receive analog signals and these signals can be converted 6 00:00:40,880 --> 00:00:42,250 to digital internally. 7 00:00:42,890 --> 00:00:51,830 It also has three S.P.I interfaces for communication and three, your art interfaces for communication 8 00:00:52,280 --> 00:00:55,800 and to all to see interfaces for Seattle communication. 9 00:00:55,830 --> 00:01:04,010 So these, let's say, eight modules or eight pens can be used to allow cell communication with multiple 10 00:01:04,010 --> 00:01:09,860 devices that support S.P.I eye to see or eyes accuracy and your art. 11 00:01:10,850 --> 00:01:22,380 It also has 16 PWI output channels which help produce an analog output from the expense. 12 00:01:23,090 --> 00:01:28,670 It also has two digital channel converters and two eye to US interfaces. 13 00:01:29,130 --> 00:01:33,930 It also has 10 capacitive sensing, special purpose input output. 14 00:01:34,850 --> 00:01:41,990 I provide more data and more details about each of these pens in the resources lecture, but since we 15 00:01:41,990 --> 00:01:46,320 have a lot of them, we don't want to get caught in the details. 16 00:01:46,940 --> 00:01:51,140 Now, what we need to know is that pan out itself. 17 00:01:51,140 --> 00:01:52,990 As you can see, this is how the board looks. 18 00:01:53,510 --> 00:02:01,160 This is the USPI board and you are going to hook up your Glaspie Connector here and the other side will 19 00:02:01,160 --> 00:02:02,890 be connected to your computer. 20 00:02:03,530 --> 00:02:08,010 As you can see, these are the pens, g.p. 21 00:02:08,060 --> 00:02:10,920 I mean, the real purpose, input output. 22 00:02:11,040 --> 00:02:15,860 Now, there is more than one general purpose, input output, as you can see here. 23 00:02:16,130 --> 00:02:19,090 And each of these pens has more than one function. 24 00:02:19,970 --> 00:02:30,230 As you can see, usually Bend's comes with many names such as PII and ADC and Digital Converter and 25 00:02:30,230 --> 00:02:37,460 General-Purpose and put out so you can use it as input output pen or to receive analog signal or for 26 00:02:37,460 --> 00:02:40,130 S.P.I or for all to see. 27 00:02:41,460 --> 00:02:49,890 So the choice is yours now, as you can see, these pens, all of them are numbered for easy access 28 00:02:49,890 --> 00:02:53,620 so that you can easily know which pen is connected to each. 29 00:02:54,000 --> 00:03:01,500 Now, additionally, there are pens with specific features that make them suitable or not for a specific 30 00:03:01,500 --> 00:03:02,070 project. 31 00:03:02,750 --> 00:03:07,620 The following demonstration shows you some of these pens. 32 00:03:07,620 --> 00:03:15,240 And I'm going to talk about each of these pens in detail and if it can be used as input or output. 33 00:03:15,390 --> 00:03:18,990 Now, the pens highlighted in green here. 34 00:03:20,660 --> 00:03:23,980 I'll show you a table to summarize this information. 35 00:03:26,290 --> 00:03:33,670 Again, the pins highlighted in green are OK to use the ones highlighted in yellow are OK to use, but 36 00:03:33,670 --> 00:03:42,130 you need to pay attention because they may have unexpected behavior, mainly at both time, while the 37 00:03:42,130 --> 00:03:47,180 pins highlighted in red are not recommended to use as input or output. 38 00:03:47,230 --> 00:03:54,580 Now, that general-purpose input output PIN number zero is, as you can see, OK to use. 39 00:03:54,580 --> 00:04:02,590 But you need to pay extra attention because it may have unexpected behavior at both time so it can be 40 00:04:02,590 --> 00:04:06,100 used as pull up input or as output. 41 00:04:06,490 --> 00:04:16,390 It outputs signal output, but no one can be used as ti expen for communication or output when it debug 42 00:04:16,600 --> 00:04:17,950 output output. 43 00:04:18,800 --> 00:04:26,680 Number two is OK to be used as input or output and usually it is connected to unboarded so you can use 44 00:04:26,680 --> 00:04:33,730 it to test a code or to test our basic function because you don't have to connect extra components at 45 00:04:33,730 --> 00:04:36,880 all that you have built and led to. 46 00:04:36,880 --> 00:04:41,890 Number three is OK to use as input, but you can't use it as output. 47 00:04:42,400 --> 00:04:43,840 It's high output. 48 00:04:44,110 --> 00:04:46,030 So it will read one output. 49 00:04:48,120 --> 00:04:55,940 Ben, number four and five are OK to use as input to output and PIN number five also output SPW and 50 00:04:55,970 --> 00:05:02,420 signal output pins from six to 11 are connected to the integrated S.P.I Flash. 51 00:05:02,870 --> 00:05:06,260 So you can't use them as input or output. 52 00:05:06,830 --> 00:05:15,950 But No.12 is OK to use, but both will fail if Bould High, so it's OK to use as input. 53 00:05:15,950 --> 00:05:18,830 But you need to pay extra attention for this not. 54 00:05:19,490 --> 00:05:22,730 And if you are connecting it as output, it's OK. 55 00:05:22,910 --> 00:05:24,380 You don't have any problems. 56 00:05:24,800 --> 00:05:33,830 Pins from 13 to 16 are OK to be used as input or output without paying extra attention. 57 00:05:34,790 --> 00:05:46,010 Now as you can see, same fourpence from 17 to 33, while 34, 35, 36 and 39 are input only pense you 58 00:05:46,010 --> 00:05:48,800 can't, you can't use them as output. 59 00:05:49,100 --> 00:05:58,640 Now, on our examples and our practice tests, we are going to use PIN number two, which has built 60 00:05:58,640 --> 00:06:05,240 and laid on board, built and led and using that on board, built and led will make it easier for us 61 00:06:05,250 --> 00:06:12,160 to test out or to try different things if we are making Auberge with a baton to control it via Internet. 62 00:06:12,590 --> 00:06:14,690 Now that's it for the pin out. 63 00:06:15,500 --> 00:06:21,710 Now I will add extra information, uh, as articles to this section of the course. 64 00:06:21,710 --> 00:06:26,060 So let you know more information about the general purpose input output bins. 65 00:06:26,390 --> 00:06:33,350 But for me, what I need you to know at this point is that we have bins that can be used easily without 66 00:06:33,350 --> 00:06:45,230 any extra attention as input output, which are basically dispensed to four, five, 13 to 16 and 17 67 00:06:45,230 --> 00:06:46,070 to thirty three. 68 00:06:46,460 --> 00:06:51,670 And if we want input only bins, we can use 34, 35, 36 or 39. 69 00:06:52,250 --> 00:07:01,160 Now, if we need extra features, if we need B.W., um, ADC or DSE, if we need a capacitor enabled 70 00:07:01,160 --> 00:07:06,200 bin or BW, and then we can go on and check this schematic. 71 00:07:06,200 --> 00:07:13,670 And from these bins you can see that in our case, sharp elbows pin number thirty six can be used as 72 00:07:14,130 --> 00:07:16,370 ADC or Douceur converter. 73 00:07:17,910 --> 00:07:24,900 As you can see, and it has an only state, you can use this schematic printed out to refer to it whenever 74 00:07:24,900 --> 00:07:26,150 you need to do something. 75 00:07:26,640 --> 00:07:27,680 Same for here. 76 00:07:27,780 --> 00:07:34,680 You can see from this image that PIN number 25 can be used as digital to analog converter and PIN number 77 00:07:34,680 --> 00:07:40,530 26 can also be used as the central converter or digital converter. 78 00:07:42,170 --> 00:07:48,380 So depending on what you need or what's your end goal, you are going to check this schematic and make 79 00:07:48,380 --> 00:07:50,450 sure that you choose the pin that fits your needs. 80 00:07:50,750 --> 00:07:57,440 So if you are going to use a pin as output, you can't use PIN number 34 because as you can see here, 81 00:07:57,440 --> 00:07:59,570 it's only input, only PIN. 82 00:08:00,530 --> 00:08:06,710 And if you want to use, let's say, analog to digital converter, you can't use this pin pin number 83 00:08:06,710 --> 00:08:15,380 17 because it only support zero communication and input output, a regular input output or digital input 84 00:08:15,380 --> 00:08:15,950 output. 85 00:08:16,190 --> 00:08:23,240 So before using any pin, uh, take a minute or two to make sure that it supports what you are going 86 00:08:23,240 --> 00:08:30,200 to do and the sensors or the stuff that you are going to connect it to, and whether they are analog 87 00:08:30,200 --> 00:08:36,500 or digital, they are input like pushbutton or output like LEDs. 88 00:08:36,890 --> 00:08:47,390 You need to connect the element to the right pin before start coding to avoid having problems in the 89 00:08:47,390 --> 00:08:48,040 future. 90 00:08:48,080 --> 00:08:54,710 Once you start testing your code, if you have any question or if you have a project that you don't 91 00:08:54,710 --> 00:09:00,740 exactly know which pins might fit for that project, you can leave a question in the Q&A board. 92 00:09:01,190 --> 00:09:04,220 I'll be more than happy to help answer all of your concerns. 93 00:09:04,760 --> 00:09:05,800 Thanks for watching. 94 00:09:05,810 --> 00:09:08,150 This is Asharaf from Educational Engineering at.