Turn a pencil drawing into a capacitive sensor for Arduino by alan.chatham
Featured

Step 4: Test it!

You may need to make some changes at the top of the code to get the correct cutoff value for your particular drawing, and you may need to go and re-trace over your drawing some more to get the parts of your drawing that are further away to work properly.

Once you get it working, you can take some clear tape and cover up your drawing - this will decrease its sensitivity a bit, but it will keep your drawing from smudging as people touch it.

I've put together a full video game controller with this as part of the UnoJoy project, and there will be a video over at unojoy.tumblr.com in a couple of days.
 
Remove these adsRemove these ads by Signing Up
styleatjoe says: Jun 4, 2012. 9:56 PM
for more than one sensors on paper please hint the coding..
alan.chatham (author) says: Jun 4, 2012. 10:14 PM
The sample code here has a function, readCapacitivePin(int pinToMeasure)

If you put in different values for that, like

int firstSensor = readCapacitivePin(2);
int secondSensor = readCapacitivePin(3);

you can read whatever Arduino pins you want, as many as you'd like.
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!