2018-04-11 05:56 PM
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?
2018-04-12 01:31 AM
no experience directly, sorry for that.
but I know the track layout is critical for this function.
is this a custom board ?
2018-04-12 03:39 AM
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\TouchSensingSTM32Cube_FW_F0
.zip
\Projects\STM32091C_EVAL\Applications\TouchSensingBest regards,
Max
2018-04-12 02:56 PM
Yes, its for a custom board. The board is complete and track layout determined
2018-04-12 02:58 PM
Ok thanks. I've reviewed the discovery application, but perhaps not the other two