2 years, 1 month ago.

library for embedded touch sensing using stm32L432kc?

Hello, I'm looking for a library for embedded touch sensing using stm32L432kc. if anybody can provide me with a guide on how to do the coding it'd be appreciated

1 Answer

2 years, 1 month ago.

Hello Maryam,

I'm not sure about mbed libraries, but you could take a look at the STM32CubeL4 which contains embedded software library as well as STM32 HAL APIs:


Here is a document that goes into detail about the embedded touch sensing library in the STM32Cube (which includes the general architecture as well as some examples to help get started):


Hope this helps!

-Karen, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Thanks for the reply. It is written on the documentations that there is 3 capacitive sensing channels in group 2 analog IO in the stm32l432kc. What is meant exactly by group 2? and which pins correspond to group 2? And do I add the sampling capacitors and sensing capacitors or they're already embedded on the nucleo stm32l432kc board?

posted by maryam magdy 28 Jul 2018

Hi Maryam,

Each group is a group of GPIOs, usually comprised of one GPIO dedicated to a sampling capacitor and the rest as channels. You should be able to see the corresponding pins for a board in the document linked above. I believe you need to add your own capacitors:


I highly recommend referring to the community at ST: https://community.st.com/s/

They will surely know more about this than I do!

-Karen, team Mbed

posted by Karen Yen 31 Jul 2018