cancel
Showing results for 
Search instead for 
Did you mean: 

Capacitive sense problem - STM32F0

Ben Logan
Associate II
Posted on April 12, 2018 at 02:56

Hi there, 

I am attempting to implement capacitve touch sensing using basic touch keys with an stm32f051. I have generated the project with STM32cubeMX, so setup is all there. But, struggling to write code to perform an acquisition and read sensors.

What is the simplest code for main.c to read the sensors and light an LED for each touch sensor BTN when pressed?

0690X0000060AZ1QAM.png
4 REPLIES 4
T J
Lead
Posted on April 12, 2018 at 10:31

no experience directly, sorry for that.

but I know the track layout is critical for this function.

is this a custom board ?

Max
ST Employee
Posted on April 12, 2018 at 12:39

You may want to ha a look at the examples provided in the Cube package:

STM32Cube_FW_F0.zip\Projects\STM32F072B-Discovery\Applications

\TouchSensing

STM32Cube_FW_F0

.zip

\Projects\STM32072B_EVAL\Applications\TouchSensing

STM32Cube_FW_F0

.zip

\Projects\STM32091C_EVAL\Applications\TouchSensing

Best regards,

Max

Posted on April 12, 2018 at 21:56

Yes, its for a custom board. The board is complete and track layout determined

Posted on April 12, 2018 at 21:58

Ok thanks. I've reviewed the discovery application, but perhaps not the other two