Hello and welcome to the stimulus on Energy are going to talk about E.S.P 30 to open out, which are
purpose input output pens, should you use now?
This is how the physical layout of that E.S.P board locks and as you can see, it's very similar to
the Arduino Nano, but it has a Wi-Fi built and now they are speed first to peripherals, include 18
digital converter or ADC channel, where you can receive analog signals and these signals can be converted
to digital internally.
It also has three S.P.I interfaces for communication and three, your art interfaces for communication
and to all to see interfaces for Seattle communication.
So these, let's say, eight modules or eight pens can be used to allow cell communication with multiple
devices that support S.P.I eye to see or eyes accuracy and your art.
It also has 16 PWI output channels which help produce an analog output from the expense.
It also has two digital channel converters and two eye to US interfaces.
It also has 10 capacitive sensing, special purpose input output.
I provide more data and more details about each of these pens in the resources lecture, but since we
have a lot of them, we don't want to get caught in the details.
Now, what we need to know is that pan out itself.
As you can see, this is how the board looks.
This is the USPI board and you are going to hook up your Glaspie Connector here and the other side will
be connected to your computer.
As you can see, these are the pens, g.p.
I mean, the real purpose, input output.
Now, there is more than one general purpose, input output, as you can see here.
And each of these pens has more than one function.
As you can see, usually Bend's comes with many names such as PII and ADC and Digital Converter and
General-Purpose and put out so you can use it as input output pen or to receive analog signal or for
S.P.I or for all to see.
So the choice is yours now, as you can see, these pens, all of them are numbered for easy access
so that you can easily know which pen is connected to each.
Now, additionally, there are pens with specific features that make them suitable or not for a specific
project.
The following demonstration shows you some of these pens.
And I'm going to talk about each of these pens in detail and if it can be used as input or output.
Now, the pens highlighted in green here.
I'll show you a table to summarize this information.
Again, the pins highlighted in green are OK to use the ones highlighted in yellow are OK to use, but
you need to pay attention because they may have unexpected behavior, mainly at both time, while the
pins highlighted in red are not recommended to use as input or output.
Now, that general-purpose input output PIN number zero is, as you can see, OK to use.
But you need to pay extra attention because it may have unexpected behavior at both time so it can be
used as pull up input or as output.
It outputs signal output, but no one can be used as ti expen for communication or output when it debug
output output.
Number two is OK to be used as input or output and usually it is connected to unboarded so you can use
it to test a code or to test our basic function because you don't have to connect extra components at
all that you have built and led to.
Number three is OK to use as input, but you can't use it as output.
It's high output.
So it will read one output.
Ben, number four and five are OK to use as input to output and PIN number five also output SPW and
signal output pins from six to 11 are connected to the integrated S.P.I Flash.
So you can't use them as input or output.
But No.12 is OK to use, but both will fail if Bould High, so it's OK to use as input.
But you need to pay extra attention for this not.
And if you are connecting it as output, it's OK.
You don't have any problems.
Pins from 13 to 16 are OK to be used as input or output without paying extra attention.
Now as you can see, same fourpence from 17 to 33, while 34, 35, 36 and 39 are input only pense you
can't, you can't use them as output.
Now, on our examples and our practice tests, we are going to use PIN number two, which has built
and laid on board, built and led and using that on board, built and led will make it easier for us
to test out or to try different things if we are making Auberge with a baton to control it via Internet.
Now that's it for the pin out.
Now I will add extra information, uh, as articles to this section of the course.
So let you know more information about the general purpose input output bins.
But for me, what I need you to know at this point is that we have bins that can be used easily without
any extra attention as input output, which are basically dispensed to four, five, 13 to 16 and 17
to thirty three.
And if we want input only bins, we can use 34, 35, 36 or 39.
Now, if we need extra features, if we need B.W., um, ADC or DSE, if we need a capacitor enabled
bin or BW, and then we can go on and check this schematic.
And from these bins you can see that in our case, sharp elbows pin number thirty six can be used as
ADC or Douceur converter.
As you can see, and it has an only state, you can use this schematic printed out to refer to it whenever
you need to do something.
Same for here.
You can see from this image that PIN number 25 can be used as digital to analog converter and PIN number
26 can also be used as the central converter or digital converter.
So depending on what you need or what's your end goal, you are going to check this schematic and make
sure that you choose the pin that fits your needs.
So if you are going to use a pin as output, you can't use PIN number 34 because as you can see here,
it's only input, only PIN.
And if you want to use, let's say, analog to digital converter, you can't use this pin pin number
17 because it only support zero communication and input output, a regular input output or digital input
output.
So before using any pin, uh, take a minute or two to make sure that it supports what you are going
to do and the sensors or the stuff that you are going to connect it to, and whether they are analog
or digital, they are input like pushbutton or output like LEDs.
You need to connect the element to the right pin before start coding to avoid having problems in the
future.
Once you start testing your code, if you have any question or if you have a project that you don't
exactly know which pins might fit for that project, you can leave a question in the Q&A board.
I'll be more than happy to help answer all of your concerns.
Thanks for watching.
This is Asharaf from Educational Engineering at.