Hello friends.
In this part of video I just show you how to interface a capacitive touch sensor with your DAC device.
So over here this is my capacitive touch sensor module.
In this case we have the VCC one ground and one signal.
So this one, the brown one is extreme and is ground middle one is VCC and other one is signal.
This is this purple one is signal, red one is weak and this one is ground.
So I just connect this with my VCC is connected to five volt As you see this one is digital ground.
And over here pin number six of port zero.
Or you can say line six of port zero is connected to the signal.
So now I just connect it to my PC.
So power is on as you see LED goes high.
hi.
Now I just go to the software part.
I just again, in this case, also I'm using digital input.
You just select your Pin.
In the default case all the pins are there and select these pins.
You just select your device.
My pin over here is port zero.
line six.
Apply it.
Your pin selection is very important.
While working on hardware device.
So I just use a display.
One scope also.
There.
Scope.
I just put it over here.
The program is nearly same because in this case also we just acquire digital signal.
So mainly when you are working with hardware devices there are total six program you need.
No need to know.
One is how to acquire digital signal, how to acquire analog signal, how to generate digital signal,
how to generate analog signal, and further one two.
More important are there how to acquire pulse signal.
How to generate pulse signal okay.
These are in the category of digital also.
So these six are mainly important points.
Using these you can interface any sensor with your device.
So I just open the scope.
Just put it over here I just put the stop time in finite.
Run it.
Let's check what happened.
Initially it is saying zero because there is no touch when I touch it.
As you see it will generate one.
My pin selection is wrong.
As you see, the pin is connected to five and I'm checking on six.
So this is the mistake.
So right now I just stop the program and again I want to set the value.
So when I touch it it says only zero.
As you see this is the mistake.
So now the pin five I want to select in this case apply it.
Okay.
Now it will generate except when you run it.
So as you see zero goes here now 10101.
So this is how in the scope you can check the value or in the display.
Also you can check the value.
So this is how you can acquire signal using capacitive touch sensor.
Thank you.