1
00:00:07,000 --> 00:00:08,000
Hello friends.

2
00:00:08,000 --> 00:00:17,000
In this part of video I just show you how to interface a capacitive touch sensor with your DAC device.

3
00:00:17,000 --> 00:00:23,000
So over here this is my capacitive touch sensor module.

4
00:00:23,000 --> 00:00:28,000
In this case we have the VCC one ground and one signal.

5
00:00:28,000 --> 00:00:40,000
So this one, the brown one is extreme and is ground middle one is VCC and other one is signal.

6
00:00:41,000 --> 00:00:46,000
This is this purple one is signal, red one is weak and this one is ground.

7
00:00:47,000 --> 00:00:55,000
So I just connect this with my VCC is connected to five volt As you see this one is digital ground.

8
00:00:55,000 --> 00:00:59,000
And over here pin number six of port zero.

9
00:01:00,000 --> 00:01:06,000
Or you can say line six of port zero is connected to the signal.

10
00:01:06,000 --> 00:01:09,000
So now I just connect it to my PC.

11
00:01:11,000 --> 00:01:16,000
So power is on as you see LED goes high.

12
00:01:16,000 --> 00:01:16,000
hi.

13
00:01:16,000 --> 00:01:19,000
Now I just go to the software part.

14
00:01:20,000 --> 00:01:25,000
I just again, in this case, also I'm using digital input.

15
00:01:26,000 --> 00:01:29,000
You just select your Pin.

16
00:01:30,000 --> 00:01:35,000
In the default case all the pins are there and select these pins.

17
00:01:35,000 --> 00:01:37,000
You just select your device.

18
00:01:37,000 --> 00:01:40,000
My pin over here is port zero.

19
00:01:40,000 --> 00:01:42,000
line six.

20
00:01:42,000 --> 00:01:43,000
Apply it.

21
00:01:44,000 --> 00:01:47,000
Your pin selection is very important.

22
00:01:47,000 --> 00:01:50,000
While working on hardware device.

23
00:01:50,000 --> 00:01:52,000
So I just use a display.

24
00:01:56,000 --> 00:01:57,000
One scope also.

25
00:02:01,000 --> 00:02:01,000
There.

26
00:02:05,000 --> 00:02:06,000
Scope.

27
00:02:09,000 --> 00:02:11,000
I just put it over here.

28
00:02:13,000 --> 00:02:21,000
The program is nearly same because in this case also we just acquire digital signal.

29
00:02:21,000 --> 00:02:27,000
So mainly when you are working with hardware devices there are total six program you need.

30
00:02:27,000 --> 00:02:29,000
No need to know.

31
00:02:29,000 --> 00:02:36,000
One is how to acquire digital signal, how to acquire analog signal, how to generate digital signal,

32
00:02:36,000 --> 00:02:41,000
how to generate analog signal, and further one two.

33
00:02:41,000 --> 00:02:45,000
More important are there how to acquire pulse signal.

34
00:02:45,000 --> 00:02:49,000
How to generate pulse signal okay.

35
00:02:49,000 --> 00:02:52,000
These are in the category of digital also.

36
00:02:52,000 --> 00:02:55,000
So these six are mainly important points.

37
00:02:55,000 --> 00:03:00,000
Using these you can interface any sensor with your device.

38
00:03:00,000 --> 00:03:03,000
So I just open the scope.

39
00:03:09,000 --> 00:03:13,000
Just put it over here I just put the stop time in finite.

40
00:03:14,000 --> 00:03:15,000
Run it.

41
00:03:16,000 --> 00:03:18,000
Let's check what happened.

42
00:03:18,000 --> 00:03:24,000
Initially it is saying zero because there is no touch when I touch it.

43
00:03:25,000 --> 00:03:29,000
As you see it will generate one.

44
00:03:39,000 --> 00:03:41,000
My pin selection is wrong.

45
00:03:41,000 --> 00:03:46,000
As you see, the pin is connected to five and I'm checking on six.

46
00:03:47,000 --> 00:03:49,000
So this is the mistake.

47
00:03:50,000 --> 00:03:57,000
So right now I just stop the program and again I want to set the value.

48
00:03:57,000 --> 00:04:00,000
So when I touch it it says only zero.

49
00:04:00,000 --> 00:04:02,000
As you see this is the mistake.

50
00:04:04,000 --> 00:04:10,000
So now the pin five I want to select in this case apply it.

51
00:04:11,000 --> 00:04:11,000
Okay.

52
00:04:12,000 --> 00:04:16,000
Now it will generate except when you run it.

53
00:04:17,000 --> 00:04:26,000
So as you see zero goes here now 10101.

54
00:04:27,000 --> 00:04:33,000
So this is how in the scope you can check the value or in the display.

55
00:04:33,000 --> 00:04:35,000
Also you can check the value.

56
00:04:35,000 --> 00:04:42,000
So this is how you can acquire signal using capacitive touch sensor.

57
00:04:45,000 --> 00:04:45,000
Thank you.

