News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Capacitive Sensing (CPS) Module

Started by Yves, Nov 20, 2021, 10:03 AM

Previous topic - Next topic

Yves

Hello All,

Some pics like the the 16F1825 has capacitive sensing capabilities. I think it would be great use to avoid those horrible push buttons. Is any one has a look at it and has written a macro or driver?

Regards,

Yves
Yves

Yves

Hello all,

Is anyone has some info, driver on CPS module and how to address it? It would be most appreciated.

Regards,

Yves
Yves

JonW

Not used the cap sensing on the MCU but have used the AT42QT1110-MU Q-Touch IC.  If cost is not an issue then these are really good, free up other pins on the MCU and easy to use

J

John Lawton

#3
Yes, I've used the Capsense peripheral with a 12F1822. As I recall it was a bit tricky, I ended up having to use a rolling average (i.e. un-triggered) reading then detecting rapid changes from this reading due to user interaction with the touch pads. This was because each unit made using the board was wired differently, so I couldn't establish a fixed 'normal' reading in the code.

BTW, have you digested Microchip's AN1171 ?

John

Craig


Yves

Thanks for all the suggestions. I tried to understand the Microchip's AN1171 my knowledge to understand and digest all the explanations is overwhelming. I am sure it is not that complicate for a lot the great Positron developers here. I may have a go at it and try to make it work and try to write some code. Maybe someone has done it as I think it is the way forward to get rid of mechanical buttons.
On the other hand I have wrote something which work for me and works on any pics using the RCin function which I tested and I publish not long ago.
 
https://protoncompiler.com/index.php/topic,557.msg4936.html#msg4936

It works like a charm and don't requires any extra chips and will soon implement it in one of my projects and maybe do a small demonstration video.
Best Regards,

Yves
 
Yves