element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum Can you setup Capacitive Proximity sensor and Capacitive button at the same time?
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 6 replies
  • Answers 5 answers
  • Subscribers 24 subscribers
  • Views 2079 views
  • Users 0 members are here
  • cap-touch
  • proximity detector
  • cypress
Related

Can you setup Capacitive Proximity sensor and Capacitive button at the same time?

cypsam
cypsam over 6 years ago

Hi,

 

I am using the CY8CKIT-043CY8CKIT-043 PSoCRegistered 4 M-Series Prototyping Kit. What I am trying to achieve is to be able to detect the proximity of a hand and at the same time been able to interact with capacitive buttons.

Getting the proximity part of the project works fine, but been able to turn on and LED by pushing on a CAP sense button does not. I have looked thru the examples and tried different options to get the LED to turn on but to not end.

 

My first question is can you use both the proximity feature and the cap sense button at the same time?

I appreciate the feedback. Thanks.

  • Sign in to reply
  • Cancel

Top Replies

  • BigG
    BigG over 6 years ago +1 suggested
    Have you asked the question on https://community.cypress.com/welcome as that is the official Cypress forum and you will get a response from the company's technical staff. Otherwise, I might be able to…
  • cypsam
    cypsam over 6 years ago in reply to BigG +1 suggested
    Hi BigG, thank you for taking the time to reply. About https://community.cypress.com/welcome , I did not know about this Cypress forum. You are correct, the board I am using does not have a capsense button…
  • BigG
    BigG over 6 years ago +1 suggested
    Well it all starts in the "TopDesign" screen and it is probably easier to modify an example that works for you. Depending on which example you choose to work from, i.e. Proximity or CE210291 Button, you…
Parents
  • BigG
    0 BigG over 6 years ago

    Well it all starts in the "TopDesign" screen and it is probably easier to modify an example that works for you.

     

    Depending on which example you choose to work from, i.e. Proximity or CE210291 Button, you may see slight differences with the component you see on this screen. Could be either a CapSenseCSD component (found in my proximity example) or a CapSense component (found in Button example). Basically they are one and the same.

     

    In CapSenseCSD you can add in a button as follows:

     

    image

     

    In Capsense it will be as follows.... I note in my example they used manual tuning. You would probably need to change this to auto tune for proximity part and if so you also need to change the modulator clock frequency (found in Advanced tab and CSD settings).

     

    image

     

    image

     

    Hope that helps.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • BigG
    0 BigG over 6 years ago

    Well it all starts in the "TopDesign" screen and it is probably easier to modify an example that works for you.

     

    Depending on which example you choose to work from, i.e. Proximity or CE210291 Button, you may see slight differences with the component you see on this screen. Could be either a CapSenseCSD component (found in my proximity example) or a CapSense component (found in Button example). Basically they are one and the same.

     

    In CapSenseCSD you can add in a button as follows:

     

    image

     

    In Capsense it will be as follows.... I note in my example they used manual tuning. You would probably need to change this to auto tune for proximity part and if so you also need to change the modulator clock frequency (found in Advanced tab and CSD settings).

     

    image

     

    image

     

    Hope that helps.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • cypsam
    0 cypsam over 6 years ago in reply to BigG

    Hi BigG,

    Yes I was able to add the button as you mentioned. Below you can see some picts showing where I am at and where I think the issue is. Hopefully you can spot what is causing this to hang up.

    image

     

    image

     

    image

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • BigG
    0 BigG over 6 years ago in reply to cypsam

    The CapsenseCSD component as found in that example and which you are using is actually an older version of the component. Cypress documentation from the newer Capsense component recommends the following:

     

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • cypsam
    0 cypsam over 6 years ago in reply to BigG

    Hi,

     

    The project is working now. In my program I was missing a couple of declaration that would enable the button sensor. Cypress team pointed out the issue.

    I had to add the following before the for loop:

     

        CapSense_EnableWidget(CapSense_BUTTON0__BTN);

     

        CapSense_InitializeSensorBaseline(CapSense_SENSOR_BUTTON0__BTN);

     

    and CapSense_ScanEnabledWidgets(); to make sure the button widget gets scanned.

     

    Thank you for your support on this!

     

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube