In order to give you a better idea as to how the GPIO's are communicated
with through your PC host, we wanted to talk to you about communicating
with your board through the ADB, so the Android Debug Bridge.
And I know in previous courses, Jacob and
Aria actually went over creating a path and getting to your SDK, right?
>> Mm-hm.
>> Yeah, so this time we're actually gonna do the exact same thing,
only we're gonna turn a GPIO on.
Now if you can see down here, you actually see this circuit we already have set up.
I'm gonna kinda trace what's going on here, and
you're gonna notice a circuit that you haven't seen yet.
We will be teaching you how to build this circuit later on in the course,
in fact not too far later on.
I think in the next module.
So, if you wouldn't mind I'm gonna kind of point out some stuff here real quick.
So, this blue wire is actually coming from the pin 34, which for
us is gonna end up being GPIO 935 on the Android Operating System.
We're gonna communicate with that using the PCOs.
That's gonna send a signal into this little amplifier.
Now, later on we're going to explain why we're using this amplifier, so
I'm not gonna go too much into it.
But this amplifier is gonna take the voltage from our pin and
it's gonna to send it out through this purple wire right here.
It's gonna communicate with this LED and it's going to tell it to turn on.
So I guess let's go into the terminal here and figure out how to do that.
>> So as you can see here we're at Robert's terminal, and
what we want to do is to look for the Android SDK and
so, to go about doing so, we have to change the directory to our library.
From there we have an android folder and so
we're gonna go to that and in the android folder,
we have our SDK located at the directory called SDK.
And from there we would go to our platform-tools to access our adb.
Add this will allow us to contact with or
be able to talk to the dragon board 410C and access the GPIOs.
>> Yeah, what we wanna do first is,
make sure that the device is actually recognized by the PC host.
And adp has a nice little command for that, it's just basically adp devices.
So you type that in and
you can see that in fact it is being recognized by the host computer.
We'll then just go into it now.
So we're gonna write the command adb shell,
that brings us into the shell of the dragon board 4 10 c.
Now, you're gonna have to do this eventually.
You're gonna need super user access in order to control the GPIOs, so
I like to do it at the beginning.
You could just type in su, that gives you super user access and
you notice that the dollar sign turn into a hash tag.