Share this example!

Share this example with your friends on your favorite profile:

You can easily embed this example to your blog or website by copying the following code:

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/example/mpr121/example:MPR121_I2C" frameborder="0"></iframe>


You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>



  • 2017-11-20 Jannik Ultsch

    I do not understand how you set the threshold. I want to put a 3mm plastic overlay on top of the copperfoil but the sensitivity is too low so it doesn't respond. What should I do??

  • 2015-11-20 codebender

    This example was tested on 2016-06-11 and it compiles on Arduino Uno, Arduino Leonardo, Arduino Mega.