1
00:00:07,000 --> 00:00:08,000
Hello friends.

2
00:00:08,000 --> 00:00:17,000
In this part of the video, I just show you how to interface a Pir sensor passive infrared sensor with

3
00:00:17,000 --> 00:00:24,000
an AI DAC device with the help of Matlab software and how to acquire the signal in this case.

4
00:00:24,000 --> 00:00:28,000
Also, I'm using digital signal digital input signal.

5
00:00:28,000 --> 00:00:31,000
As you see over here, this is my Pir sensor.

6
00:00:31,000 --> 00:00:41,000
When you just open this housing you can check one pin is VCC, middle one is output, and extreme end

7
00:00:41,000 --> 00:00:41,000
is ground.

8
00:00:41,000 --> 00:00:47,000
You just connect VCC to five volt signal to the digital pin or DAC card.

9
00:00:47,000 --> 00:00:55,000
In this case I'm just connecting this digital pin to the port zero Line five.

10
00:00:55,000 --> 00:00:56,000
Ground to ground.

11
00:00:56,000 --> 00:00:58,000
Let's check what happened.

12
00:00:58,000 --> 00:01:00,000
This is a motion sensor.

13
00:01:00,000 --> 00:01:06,000
It will detect motion when some study device in place of this.

14
00:01:06,000 --> 00:01:07,000
It will detect zero.

15
00:01:07,000 --> 00:01:12,000
When there is a motion, it will detect one.

16
00:01:12,000 --> 00:01:14,000
Or you can say hi.

17
00:01:14,000 --> 00:01:16,000
So I just.

18
00:01:18,000 --> 00:01:21,000
Drag the digital input over here.

19
00:01:23,000 --> 00:01:26,000
You just need to select the pin and select all the device.

20
00:01:27,000 --> 00:01:30,000
Pin five means for zero.

21
00:01:30,000 --> 00:01:34,000
Line five is connected over here.

22
00:01:34,000 --> 00:01:36,000
Let's just use another pin.

23
00:01:37,000 --> 00:01:42,000
I'm not using port zero right now I'm just using.

24
00:01:46,000 --> 00:01:48,000
Let's say over to one over here.

25
00:01:50,000 --> 00:01:51,000
Just connect this device.

26
00:02:02,000 --> 00:02:06,000
So now it is connected to old one.

27
00:02:06,000 --> 00:02:07,000
Line one.

28
00:02:08,000 --> 00:02:10,000
Now let's check.

29
00:02:12,000 --> 00:02:17,000
Old one just be selected or unselected.

30
00:02:17,000 --> 00:02:18,000
Old one.

31
00:02:19,000 --> 00:02:20,000
Line one.

32
00:02:21,000 --> 00:02:22,000
Select it, apply it.

33
00:02:23,000 --> 00:02:26,000
Now one display device.

34
00:02:30,000 --> 00:02:31,000
Just connect it.

35
00:02:33,000 --> 00:02:37,000
This display device, you can use cope also.

36
00:02:37,000 --> 00:02:42,000
Now I just run it and let's let's check what happened to it.

37
00:02:42,000 --> 00:02:50,000
So initially it is saying zero when I put my hand as you see for once it is saying.

38
00:02:52,000 --> 00:02:54,000
Zero then one.

39
00:02:54,000 --> 00:02:59,000
When there is a motion it is saying one again, there is a motion.

40
00:02:59,000 --> 00:03:01,000
It is saying one.

41
00:03:01,000 --> 00:03:05,000
Okay, so this is a motion detector, right?

42
00:03:05,000 --> 00:03:08,000
Let's say I just put my hand for some time.

43
00:03:09,000 --> 00:03:13,000
For a moment it is getting zero.

44
00:03:13,000 --> 00:03:18,000
There is no motion when I just put my name on my hand.

45
00:03:18,000 --> 00:03:21,000
It is, say one in the motion sensor.

46
00:03:21,000 --> 00:03:22,000
Over here.

47
00:03:22,000 --> 00:03:27,000
There are two different potentiometers using these.

48
00:03:27,000 --> 00:03:37,000
This one is used for delay time and this one is when it say or it send a pulse so you can manage it.

49
00:03:40,000 --> 00:03:44,000
You can manage the range and the delay time between two pulses.

50
00:03:44,000 --> 00:03:54,000
So this is how you can interface your pulse sensor or not motion sensor with your Matlab software.

51
00:03:55,000 --> 00:04:03,000
So in this case I just explained you the Pir sensor connections interfacing.

52
00:04:03,000 --> 00:04:04,000
As you see.

53
00:04:04,000 --> 00:04:06,000
Again I'm just putting my hand.

54
00:04:06,000 --> 00:04:11,000
It's a one for an instant then zero.

55
00:04:11,000 --> 00:04:20,000
You can manage the delay time from these potentiometer and the range of this Pir sensor using these

56
00:04:20,000 --> 00:04:21,000
potentiometer.

57
00:04:21,000 --> 00:04:24,000
One is for range, one is for delay time.

58
00:04:24,000 --> 00:04:27,000
So this is all about today's lecture.

59
00:04:27,000 --> 00:04:28,000
Thank you.

