hi welcome to another unit tutorial from Robo Jack's in this video I'm going to
show you how you can get extra 5 volts from a boar something like this which
has only one 5 volts or it has limited to grounds or 3 grounds and you want to
get extra grand and extra 5 volts you can get the code by clicking a link
which is below the description which will take you to Robo Jack's calm slash
learn slash Arduino let's get started with this
in many applications you will face a challenge that your device's LCDs and
sorrows something girls that need extra 5 volts and you see here that it has
only one 5 volts if you want to get extra 5 volts for example the number of
ground we have 2 here and 1 here and I have another module for example this has
5 volts and another 5 volts in this case we have 2 here and one ground here so if
you want to get extra 5 words even in this board an extra ground in that board
or arduino nano or any other ORD winners i'm gonna show you in this video but
keep that in mind that the main VCC of this Arduino Uno can supply up to 400
milli ampere but if you define this digital pen as an output either
foreground or VCC keep that in mind that it can supply up to 40 milliampere to
understand 40 milliampere we have to use datasheet or maybe multimeter
but generally majority of the sensors they consume less than 40 milliampere
except some really if you draw more current you might damage their device
yes we can use a digital pen here from this side as 5 volts so keep that in
mind and if you need less than 40 milliampere or up to full 2 milli ampere
this this trick that I'm telling you will work otherwise you have to use a
breadboard or something like this bring 5 volts from there to here and then you
will have extra 5 volts
the code here is a code first we define a pen
we call it VCC - so because the first one is the main five volts and the
second one we call is VCC the five is also called VCC so I call this VCC - and
we define a pen here the pen is I use pen number five any
other digital pen that you wish you can use you can use any of these pens except
the last two and except that last two on this side anything that has number here
2 3 up to 13 you can use it and then we define also a ground in case you need
extra ground so this also will live until we have a ground after defining a
pin number then we will not use a 5 + 2 as a number we will use the stack so it
will be easily understood and side the set up this will run only once inside
whatever is inside the loop it will be multiple time and inside the set up we
say pen mode we define the mood of the pen and we pull the VCC this is as if I
type here 5 so you just change there this will be changed because it has been
used twice or maybe multiple times so we see the VCC - as output so now this is
the span is defined as an output after that we have to set the status of the
pen we say digital write because the pen is digital we say VCC another fi type 5
high high means and digital high mean 5 for this device and that says so you
will get 5 volts and then we define also we just repeat the same thing here this
time in G in d2 or ground - so this is our fi type - as an output we define the
planner and output and then we set the status of the pen as a low that bloom in
ground so now you can use pen 2 and pin 5 as VCC and ground the rest of your
code whenever you have a sensor or something that will go here and you can
use those two pens to get extra power
and now here is for example this relay module and this needs five volts as a
power supply and this has been labeled here as VCC and ground so on the left
side this red is VCC I'm going to connect it to point five and then this
one to pin 2 so this is now connected to pin 205 and let me upload that code now
I'm uploading the code as soon as the code uploads you should see that this
light will turn on as you can see this is now turned on and I have power here
let me for example you have this module and you need five volts and the Pens
have been labeled here as ground this gray and then this pinkish or purple
this purple is VCC so let me put the purple into five volts and here is the
pen and let me put that this one dip into now you can see how this is turned
on it doesn't have signal but it is on red this is another example I put an LED
anode is connected to this resistor and the cathode is connected to this wire
like this and I want to turn this on so I will connect the anode to 5 volts to
my and 5 which is 5 volts and then this one I will connect it to pin 2 and now
the LED is getting 5 volts from here and that it reserves is reducing it around
2.2 for the led
and if you if you need higher current use a breadboard and I'm connecting it
this red to the 5 volts and on the breadboard this line is all connected as
one piece from top to bottom and this is another line and they've labeled it with
color so you can connect this 5 volts for example and here and all this line
will be now 5 volts will be available you can connect to your devices and the
same way for the ground I've connected it to the ground and this this would be
connected to the second wire and this will be all ground and the same you can
do it on this side. for example if you want to test this relay, this read
is the VCC and this is a ground and I'm connecting it I will connect it to VCC
in here any of those wire will be fine and this one any of this second wire
line so if I connect it now this is powered up because all of this will have
5 volts.
and also this LCD1602 powers up this way. that's it this was how to get extra VCC an
extra ground from Arduino uno nano and any Arduino. if you liked
this video and learned something please thumb up 👍. I have a lot of other videos
related to Arduino please check them out by clicking in the #robojax below this video
description and you'll see tons of other codes that I've written and tested. don't
forget to subscribe so you can get updates of my upcoming videos
Subtitle typed on August 31, 2020
I did my part to help you learn. Now it is your turn.
You can subscribe to my channel, thumb up 👍 the video and type a comment by saying thank you.
If you don't skip ads it will also help you .
My PayPal Account link is in the description if you want to make cash donation. Thank you