WEBVTT

00:00.050 --> 00:03.200
Congratulations, you have finished the course project.

00:03.200 --> 00:07.070
This is a great achievement on your journey with the Raspberry Pi.

00:07.070 --> 00:12.080
But as you can guess, even if you finished the project with the instructions I gave you, there are

00:12.080 --> 00:17.570
still many things you can improve or do differently and there are many functionalities you could add.

00:17.570 --> 00:21.260
So what you can do is to adapt this project for your own needs.

00:21.530 --> 00:27.530
You may tune the different settings, use different components, change the duration between photos,

00:27.530 --> 00:32.330
and change the behavior of the project to suit something that you want to do in real life.

00:32.330 --> 00:36.230
Now, if you are not inspired, here are just a few things that came up to my mind.

00:36.230 --> 00:41.870
So instead, for example, of sending an email each time that you take a photo, you could choose when

00:41.900 --> 00:46.400
to send an email, maybe group the photos so you don't send too many emails.

00:46.400 --> 00:52.940
Then, instead of monitoring the Pir sensor with the two callback functions from the Gpio zero library,

00:52.970 --> 00:56.180
you could also use an infinite while loop.

00:56.180 --> 00:58.400
And with this you could do something a bit different.

00:58.400 --> 01:03.830
Because here what we did is to say okay, we start to monitor the time when there is a movement detected

01:03.830 --> 01:08.630
and when there is no movement detected, then we check if five seconds have passed, but with a while

01:08.630 --> 01:08.810
loop.

01:08.810 --> 01:11.900
You could also say we are taking a photo.

01:11.900 --> 01:14.960
If the movement is detected for at least five seconds.

01:14.960 --> 01:18.560
As soon as it is five seconds, you could monitor that.

01:18.560 --> 01:23.600
So if you, for example, if you make movement for 12 seconds, you're not going to wait the 12 seconds,

01:23.600 --> 01:27.260
but you're just going to take a photo directly at five seconds.

01:27.290 --> 01:27.470
Okay.

01:27.470 --> 01:29.690
So that's something you can do as an improvement.

01:29.690 --> 01:35.090
Then you could also use the push button to trigger the while the photo feature.

01:35.090 --> 01:40.520
So instead of saying that you need to make a movement for five seconds, you could also just say that

01:40.520 --> 01:43.340
you need to press on the button for five seconds.

01:43.340 --> 01:48.620
That's going to be very similar, but instead of making movements, you just need to press on the push

01:48.620 --> 01:49.100
button.

01:49.100 --> 01:55.940
And actually, that might be an improvement if the Pir sensor is too unreliable for the project.

01:55.970 --> 02:01.520
Okay, so you could use the push button and you're not going to have as many issues as with the Pir

02:01.520 --> 02:02.120
sensor.

02:02.120 --> 02:05.150
And then, well, you can explore any other ID you have.

02:05.180 --> 02:05.360
Okay.

02:05.390 --> 02:10.880
You explore different IDs and try to make them happen so you can practice more and make the project

02:10.910 --> 02:12.380
even better.
