1
00:00:00,720 --> 00:00:08,940
OK, so let's go ahead and run this experiment, the first experiment that I run involves the P2P file,

2
00:00:08,940 --> 00:00:17,250
which is going to execute, which can you run when I power the to from the external power supply and

3
00:00:17,250 --> 00:00:23,160
it's going to put the authority into deep sleep for ten seconds and they will give me enough time to

4
00:00:23,160 --> 00:00:28,230
take a reading of its current control from my amp meter here.

5
00:00:28,560 --> 00:00:30,480
And I'm going to repeat the same experiment.

6
00:00:30,480 --> 00:00:36,150
But instead of deep sleep, I'm going to go for light sleep, give me the opportunity again to take

7
00:00:36,150 --> 00:00:39,960
a current draw measurement at that state.

8
00:00:40,890 --> 00:00:49,590
OK, so I'm going to go ahead and disconnect the USB cable and I'm going to connect the red cable coming

9
00:00:49,590 --> 00:00:51,810
from the positive lead of my benchtop.

10
00:00:51,810 --> 00:00:56,250
Power supply can connect it to five volts, five or ten.

11
00:00:56,730 --> 00:01:05,790
And then the other lead, the black lead is going into the AMP meter comes out and I've already connected

12
00:01:05,880 --> 00:01:12,420
the lead from the AMP meter into the ground, powering all of the breadboard.

13
00:01:13,060 --> 00:01:15,930
I'm going to turn on the power supply.

14
00:01:16,080 --> 00:01:21,120
I've already calibrated it to five volts since it's going into the five volt pen.

15
00:01:21,750 --> 00:01:29,250
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

16
00:01:29,250 --> 00:01:29,880
power supply.

17
00:01:31,410 --> 00:01:31,940
All right.

18
00:01:31,950 --> 00:01:35,840
So we have about 10 million amps of Catedral.

19
00:01:38,140 --> 00:01:39,330
Give a few more seconds.

20
00:01:43,170 --> 00:01:50,550
And out of deep sleep, back into normal operation, 36 million amps, you'll get about 10 million amps

21
00:01:50,550 --> 00:01:58,260
when it's in deep sleep versus around 36, a little bit more than 36 million amps when it's in normal

22
00:01:58,260 --> 00:02:00,450
operation with no other peripheral connected.

23
00:02:01,200 --> 00:02:01,620
All right.

24
00:02:01,620 --> 00:02:03,090
So that's a first step.

25
00:02:03,150 --> 00:02:11,910
I'm going to turn it off and plug the leads and connect my computer.

26
00:02:12,240 --> 00:02:14,700
I can make a change to the pipe program.

27
00:02:16,300 --> 00:02:16,840
All right.

28
00:02:17,980 --> 00:02:21,330
So back into Thorney, it's going to.

29
00:02:22,250 --> 00:02:31,640
Reset the board so I can access a bit of profile, here is what I'll do next is I am going to change

30
00:02:32,540 --> 00:02:34,970
deep sleep into the light sleep.

31
00:02:39,690 --> 00:02:40,440
Like that.

32
00:02:41,710 --> 00:02:51,910
And as per my previous test, I believe that the when the E it comes out of light, sleep is still going

33
00:02:51,910 --> 00:02:52,370
to report.

34
00:02:52,520 --> 00:03:02,440
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

35
00:03:02,440 --> 00:03:12,460
USB, connect the red lead from the power supply to the fireboat, pin on the battery too, and the

36
00:03:12,460 --> 00:03:13,810
other one to ground.

37
00:03:15,280 --> 00:03:19,030
Close the circuit and turn on the power supply.

38
00:03:21,760 --> 00:03:23,560
Still can barely defy votes.

39
00:03:25,390 --> 00:03:26,740
And then 10 year old.

40
00:03:29,010 --> 00:03:29,560
Right.

41
00:03:29,880 --> 00:03:38,700
So that is the light sleep, you can see slightly more consumption, no control, maybe just one million

42
00:03:38,790 --> 00:03:39,300
additional.

43
00:03:40,940 --> 00:03:43,340
And back to normal, 36 Wiliams.

44
00:03:44,670 --> 00:03:52,080
So interesting that they can draw a difference between deep sleep and light sleep is just about one

45
00:03:52,080 --> 00:03:52,740
million.

46
00:03:54,540 --> 00:04:00,990
Which has the benefit of preserving your ram so your program can continue from where he left off.

47
00:04:01,260 --> 00:04:09,510
It's not doing a hard research, the soft reset that may be important in some cases, but it's less

48
00:04:09,510 --> 00:04:10,560
than I thought it would be.

49
00:04:12,020 --> 00:04:16,680
OK, that concludes this lecture and these two experiments.

50
00:04:16,700 --> 00:04:25,130
So, again, to recap, you now have two methods of controlling the oil, extending the battery life

51
00:04:25,130 --> 00:04:27,590
of hospitality, battery powered gadget.

52
00:04:27,890 --> 00:04:34,370
You can use the frequency control method, reduce the speed of the C.P.U.

53
00:04:36,000 --> 00:04:41,940
That will have a consequence of the current rule, and the second method is to use deep sleep or light

54
00:04:41,940 --> 00:04:44,780
sleep to preserve it and better than.
