element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Review Blogs CapSense Evaluation Kit - Microcontroller Control
  • Blogs
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Sub-Groups
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
  • Share
  • More
  • Cancel
  • Author Author: Workshopshed
  • Date Created: 18 Jul 2014 8:40 AM Date Created
  • Views 423 views
  • Likes 1 like
  • Comments 1 comment
Related
Recommended
  • capacitive-touch
  • capsense
  • arduino

CapSense Evaluation Kit - Microcontroller Control

Workshopshed
Workshopshed
18 Jul 2014

For me one of the nice features of the MBR3 chips is the I2C bus. This allows you to read the status of the switches from a microcontroller with just two wires. If you can spare a 3rd wire then you can also use the "host interrupt" feature to tell the microcontroller when something has changed with the state of the switches. This means that you can have a selection of debounced switches with status LEDs with the minimal of wiring and coding. The I2C bus can even be used to program the chip using code generated by the EZClick software so you could reconfigure the switches in circuit if desired.

 

Although the road test package provided a Raspberry Pi for testing this feature I decided to use an Arduino Uno that I had available. This was because I have more experience with that platform and it's also likely to be the kind of technology I'd use in the workshop to control my equipment.

 

Example code for using a PSoC 4 host is provided with the software download. Examples for the Pi and Arduino are available on the Element14 site.

 

Because I was using an Arduino Uno, some soldering was required to connect the appropriate header pins to the I2C bus. I was initially confused by the instructions as I'd not heard of a 0Ω resistor before and assumed it was a typo, however once clarified I added two wire links across the pads.

 

image

 

The jumpers were set to enable host interrupt and to connect the I2C bus to the MBR3 chip directly rather than via the PSOC chip which is used as a USB to I2C bridge. There was a comment in the userguide suggesting to remove these links but that did not work and I used the configuration described in the arduino instructions.

 

The board and arduino fit together well and there is plenty of clearance and space for the cables.

image

I uploaded the code and opened the serial monitor, it initially produced jibberish but I changed the monitor to match the serial bus speed used in the code and it worked exactly as expected.

image

 

I'm happy with the I2C connectivity from the arduino, the example code worked without need for review and the instructions were good. It would have been preferable not to have to solder wires on the board to complete this test but at the end of the day it was not too difficult to do.

  • Sign in to reply
  • Workshopshed
    Workshopshed over 11 years ago

    A followup thought on the I2C, you can also use it to read the raw data from the switches and hence calculate things like signal to noise ratios. The power on testing also drops data in here that you can read and act on.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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