SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
User avatar
By itikhonov
I have read microchip's AN1298 "Capacitive Touch Using Only an ADC (CVD)" and through it really cool if it works and why the hell i bought dozen of MPR121QR2 on Sparkfun.

I have no way to program bunch of PICs (i have to make pic programmer yet) but i have mighty atmega-based Teensy board. So i give it a try. Half an hour and IT WORKED.

The only external parts used are a piece of enameled wire and breadboard.


Here is the code: is a python script which controls teensy via usb and draws touch sensing data in graphical form on pc.

picfavr.s is a gnu assembler code for my usb interface to avr capable of reading byte from memory and writing byte to memory. Python script sends commands to it. This way i make it easy to experiment without wasting flash cycles.

cli.c is a linux-only (sorry) program which python uses to actually send commands to teensy.

If you are interested how to do that without all my mess with C just read it's pretty straightforward what's going on on atmega side.

AN1298: ... e=en545264
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]