Turn a pencil drawing into a capacitive sensor for Arduino

 by alan.chatham
Featured

Step 2: Theory

CircuitDiagram.png
There are 3 ideas going on here:

1 - When you touch a conductive object, you create a certain degree of capacitance.  This increases the ability of the conductive material you touched to store a charge.

2 - We can create a cheap capacitive sensor by measuring how long it takes for a piece of conductive material to go from a grounded state to a higher potential state when pulled up to that higher state through a resistor.  The higher the capacitance, the longer it will take the conductive material to be pulled up to the high state.

3 - Graphite conducts electricity.  You may have seen this before in the Drawdio project, where they use a pencil trace to create sound.

Therefore, if we take our conductive pencil line, pull it to ground, then try and pull it to a higher state, we can measure how long it takes, and if we're touching the drawing, it will take longer to get to a high state than usual.  Conveniently, we can use the Arduino to automatically pull our trace to ground on and off. If we attach a pull-up resistor to our line, when the ground connection inside the Arduino is turned off, everything attached to the pin will start to be pulled up to VCC.

So, our circuit diagram will look something like the above.  We use an external pull-up resistor rather than the Arduino's internal pin pull-up resistors since we need much more resistance than the 30K ohm internal ones, otherwise, the resistance of the graphite tends to dominate and prevent the sensor from working.


 
Remove these adsRemove these ads by Signing Up
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!