Skip to main content
Ben Logan
Associate
April 12, 2018
Question

Capacitive sense problem - STM32F0

  • April 12, 2018
  • 4 replies
  • 1772 views
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
    This topic has been closed for replies.

    4 replies

    T J
    Senior III
    April 12, 2018
    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 ?

    Ben Logan
    Ben LoganAuthor
    Associate
    April 12, 2018
    Posted on April 12, 2018 at 21:56

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

    Max
    ST Employee
    April 12, 2018
    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

    Ben Logan
    Ben LoganAuthor
    Associate
    April 12, 2018
    Posted on April 12, 2018 at 21:58

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