Make It Better

Using Different Input Types

You can use many different types of inputs for the capacitive sensor. Among these are everything from Apples, salt water, and utensils (depending on the material). You can also use some of the different conductive materials from the Adafruit shop like Conductive Rubber, Woven Conductive fabric (try using this for wearable projects), or even conductive paint pens to turn any material into a conductive one.

Adding Sensor Inputs

Need more inputs? You can continue using Digital Pin 4 for your receiver pin and any other digital pin can be used to create a capacitive sensor.  

To do this, just add a line in your code:

     CapacitiveSensor   cs_4_# = CapacitiveSensor(4,#);     

You'll need to replace # with the Digital Pin Number you want used as a sensor.

We're using Digital Pin 4 as the Receiver and Digital Pin 8 as the new sensor, so here's is how your breadboard should look:

This guide was first published on Aug 18, 2017. It was last updated on Aug 18, 2017.
This page (Make It Better) was last updated on Mar 10, 2020.