- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
My project is very simple. Is one button is pressed, related led on. If the button pressed again, led off. however I could not prevent the false touch. I do not want to led on or off when I falsely touch a button.
I have an idea which is following;
if a sensor active, related sensor flag would set. if time between the flags is more than 500 ms, do your job. If lesser than 500 ms, do not do any thing.
How I can put my code to this idea? could you please give an example code because you have my project.
Regards
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Marcus_Hellen,
You can use the enable sensor auto reset feature to avoid false touches.
https://community.infineon.com/t5/PSoC-4/What-is-the-quot-baseline-quot/td-p/326788 - refer to this thread for information about enable sensor auto reset. Also, refer to CapSense design guide - https://www.cypress.com/file/46081/download for more details.
Regards,
Nikhl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Marcus_Hellen,
You can use the enable sensor auto reset feature to avoid false touches.
https://community.infineon.com/t5/PSoC-4/What-is-the-quot-baseline-quot/td-p/326788 - refer to this thread for information about enable sensor auto reset. Also, refer to CapSense design guide - https://www.cypress.com/file/46081/download for more details.
Regards,
Nikhl