Capacitive Sensing oscillator

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Dmitry Maximenko
Flowcode V4 User
Posts: 36
Joined: Mon Sep 26, 2011 10:26 pm
Has thanked: 9 times
Been thanked: 2 times
Contact:

Capacitive Sensing oscillator

Post by Dmitry Maximenko »

Hi people!
Is there anyone who has used Capacitive Sensing oscillator ?
Is very interested in how it works
Please recommend how I should get started:-)
Best Regards
Dmitry

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Capacitive Sensing oscillator

Post by jgu1 »

Hi Dmtri!

I have asked the same thing : http://www.matrixmultimedia.com/mmforum ... gu1#p28446
But it seems that there is not someone who has tried it in FC. But try to look at this link. there is another link from (PCBheaven) that shows a good example. Maybe it can give you an idea to do it in FC. if you can, I am very interested, as I write, you can even change as you wish.



Best regard

Jorgen :D

Dmitry Maximenko
Flowcode V4 User
Posts: 36
Joined: Mon Sep 26, 2011 10:26 pm
Has thanked: 9 times
Been thanked: 2 times
Contact:

Re: Capacitive Sensing oscillator

Post by Dmitry Maximenko »

Does anyone have an idea?
Thanks
Best Regards

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Capacitive Sensing oscillator

Post by Benj »

Here is a very basic example of cap touch in Flowcode v4.5.

For a better cap touch output you should really repeat the loop several times and take an average of the reading.
Attachments
CapTouch.fcf
(8 KiB) Downloaded 297 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Capacitive Sensing oscillator

Post by jgu1 »

Hi Ben!

Thak you for your examble, but I have unfortunately absolute no experience with C. Is it difficult for you to "Compile it to Flowcode". :?:

Best regard

Jorgen.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Capacitive Sensing oscillator

Post by Benj »

Hello Jorgen,

Unfortunately coding the ADC channel and other parameters into a custom component would be quite tricky without creating a specific component front end and we are currently flat out with v5 development. I will have a think on it and see what I can come up with. There is not too much C code in the file. I think the main bit you have to change is the bits that assign the specific ADC channel.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Capacitive Sensing oscillator

Post by jgu1 »

Hi Ben!

Ok Ben, thanks for your reply. Yes, I could imagine it's hard to do in CF. Still look forward to Ver.5. :D

best wishes

Jorgen.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Capacitive Sensing oscillator

Post by Benj »

Hello,

I have improved the example a bit to include a variable to control the ADC channel in use and also included a loop to help filter the cap touch signal.
Attachments
CapTouch2.fcf
(8.5 KiB) Downloaded 312 times

Post Reply