nrf52 - Capacitance - Single Ended Analogue Pin

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Bubblobill
 
Posts: 1
Joined: Sat Jan 22, 2022 12:08 pm

nrf52 - Capacitance - Single Ended Analogue Pin

Post by Bubblobill »

Hi,
I've searched high and low for a library, code, or even instructions on how to implement a single ended mode on analogue pins for use as capacitive inputs (buttons, sliders, etc.). I have read data-sheets and specifications and gone cross-eyed. The closest I have come is the capsense bits in the tutorial by Nordic but it only works with the development kit as far as I can tell. I read a developers discussion that indicated it may be a bit too flakey for commercial use but I don't care, I want to use it.

I have managed to find the constant NRF_COMP_MAIN_MODE_SE for setting it as part of the HAL in nrf_comp.h but have not been able to find any references to it elsewhere that implement the comparator.

Can anyone provide a working example, simple implementation, library, link to instructions, or any other resource than can help a coding noob bring out this functionality?

Jay

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”