OK, so let's go ahead and run this experiment, the first experiment that I run involves the P2P file,
which is going to execute, which can you run when I power the to from the external power supply and
it's going to put the authority into deep sleep for ten seconds and they will give me enough time to
take a reading of its current control from my amp meter here.
And I'm going to repeat the same experiment.
But instead of deep sleep, I'm going to go for light sleep, give me the opportunity again to take
a current draw measurement at that state.
OK, so I'm going to go ahead and disconnect the USB cable and I'm going to connect the red cable coming
from the positive lead of my benchtop.
Power supply can connect it to five volts, five or ten.
And then the other lead, the black lead is going into the AMP meter comes out and I've already connected
the lead from the AMP meter into the ground, powering all of the breadboard.
I'm going to turn on the power supply.
I've already calibrated it to five volts since it's going into the five volt pen.
And while I'm taking a look at the AMP meter is going to zoom into it that I'm going to turn on the
power supply.
All right.
So we have about 10 million amps of Catedral.
Give a few more seconds.
And out of deep sleep, back into normal operation, 36 million amps, you'll get about 10 million amps
when it's in deep sleep versus around 36, a little bit more than 36 million amps when it's in normal
operation with no other peripheral connected.
All right.
So that's a first step.
I'm going to turn it off and plug the leads and connect my computer.
I can make a change to the pipe program.
All right.
So back into Thorney, it's going to.
Reset the board so I can access a bit of profile, here is what I'll do next is I am going to change
deep sleep into the light sleep.
Like that.
And as per my previous test, I believe that the when the E it comes out of light, sleep is still going
to report.
Before we said cause I'm going to leave their cities here safe with a P y and let's try it out and plug
USB, connect the red lead from the power supply to the fireboat, pin on the battery too, and the
other one to ground.
Close the circuit and turn on the power supply.
Still can barely defy votes.
And then 10 year old.
Right.
So that is the light sleep, you can see slightly more consumption, no control, maybe just one million
additional.
And back to normal, 36 Wiliams.
So interesting that they can draw a difference between deep sleep and light sleep is just about one
million.
Which has the benefit of preserving your ram so your program can continue from where he left off.
It's not doing a hard research, the soft reset that may be important in some cases, but it's less
than I thought it would be.
OK, that concludes this lecture and these two experiments.
So, again, to recap, you now have two methods of controlling the oil, extending the battery life
of hospitality, battery powered gadget.
You can use the frequency control method, reduce the speed of the C.P.U.
That will have a consequence of the current rule, and the second method is to use deep sleep or light
sleep to preserve it and better than.