CAP Touch(PIC18F47Q10)

For general Flowcode discussion that does not belong in the other sections.
Post Reply
seokgi
Posts: 182
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

CAP Touch(PIC18F47Q10)

Post by seokgi »

I am using the PIC18F47Q10.
I have requested several times(https://www.matrixtsl.com/mmforums/view ... 76&t=22120) for CAP Touch, but it still does not work.

I want to know if you can't apply or if you are not willing to apply.

Please also review the ADC ref voltage setting.

Thank you.

BenR
Matrix Staff
Posts: 1775
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 452 times
Been thanked: 612 times

Re: CAP Touch(PIC18F47Q10)

Post by BenR »

Hello,

Very sorry for the delay in getting this to you, I've now had a look and hopefully implemented the functionality for you now in both v8 and v9.

Let me know how you get on.

seokgi
Posts: 182
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: CAP Touch(PIC18F47Q10)

Post by seokgi »

The function doesn't work yet. When will this feature work?

BenR
Matrix Staff
Posts: 1775
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 452 times
Been thanked: 612 times

Re: CAP Touch(PIC18F47Q10)

Post by BenR »

Hello,

I'm afraid I don't have the chip to hand. If you need this feature to function then please can you help me to get it working for you.

Are you getting anything out of it or is it just returning 0's?

seokgi
Posts: 182
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: CAP Touch(PIC18F47Q10)

Post by seokgi »

We will upload the result of the compilation. In addition, a flowchart is also posted.
Attachments
K-003.png
K-003.png (53.95 KiB) Viewed 3668 times
Level.fcfx
(23.04 KiB) Downloaded 149 times

BenR
Matrix Staff
Posts: 1775
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 452 times
Been thanked: 612 times

Re: CAP Touch(PIC18F47Q10)

Post by BenR »

Hello,

Thanks for the program. There is a touch component but it doesn't seem to be being called anywhere.

You will also probably need to calibrate the on/off values in the touch component properties by creating a program and calling GetTouchValue to read the raw ADC output.

seokgi
Posts: 182
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 5 times
Been thanked: 7 times

Re: CAP Touch(PIC18F47Q10)

Post by seokgi »

After modifying the program, we will upload the compilation result.
Attachments
Level.fcfx
(23.5 KiB) Downloaded 146 times
K-004.png
K-004.png (190.74 KiB) Viewed 3666 times

BenR
Matrix Staff
Posts: 1775
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 452 times
Been thanked: 612 times

Re: CAP Touch(PIC18F47Q10)

Post by BenR »

Hello,

The Touch_0_Raw variable should ideally be of type UINT.

What values are you getting on the serial port?

Post Reply