Solution to Paul McWhorter’s Arduino Tutorial 3 Homework.

We Science Too
67 followers
15 Video Views·Oct 22, 2022
I just wanted to make a video showing the result of Paul McWhorter's
tutorial 3 homework that he puts at the end. So in the tutorial he says he wants to have,
you know, the red, the red, sorry, blink 5 times, then 10 for the green, and then 15 for the blue.
So this is how it looks like in my final product. It is a little messy. You can see the resistors
are a little bit, you know, mangled a bit. But I wanted to give a special shout out to
one of the comments here who came, kind of gave me the answer basically, and this is just kind
of what it looks like on the, yep, right here. So Sahana G. This is it right here. I'm just
going to give it a like right there. So essentially what I did is I, on my Arduino, I actually just
hooked up all the wires to 8, 7, and 6. So, you know, similar to how the video goes,
you plug it in there with the resistor, with the resistor connecting to another one,
to the long end. And then on the short end, it is using another wire to connect all in one column.
So on this, this blue wire right here, it is connected to the ground right there, as you can
see. And then that goes into its own column. And then you kind of duplicate the, the same,
the way you make the circuits in the other one. So like over, you know, over on this yellow,
or sorry, this, over on this blue wire, we have another resistor. I know it looks kind of like
it's like going into that one, but it actually is going in there. And then that connects there.
And then another, you know, like this is already similar, a yellow wire that goes all the way to
the end right there, as well as this orange one connected. So anyway, that's how it works right
there. So you can see that similar, but they all connect at the end to that. So here's what the
code looks like. So what you do here is you just have pin mode, 8, 7, and 6 to output. And then in
your loop function here, what I did is I already have a knowledge of programming. So I kind of
already knew that you could do this in your code. But if you look right here, you can create a loop
to do things over and over again without having to do it. So what I did here is I just did, you know,
int i equals zero. And if you're new, you know, you'll probably learn about this, but it counts
i as, or it counts zero as a number. So that's why I put equal to four. So, you know, write that, and
then equal to 10. This does it 10 times, and then 15 times for the blue. Upload that to the Arduino.
And 1, 2, 3, 4, 5, 1, 2, yeah, you get the point. And that's how you do it, that homework. So
thank you very much to Paul in the corner for creating the amazing tutorial series. I think
this one was, uh, really challenging. Honestly, I never got that, that one comment. I don't know
if I'd be able to do it, but, you know, we all stand on the shoulders of giants. So thank you.
