
This is just a small snippet of code for using a digital pin on the Arduino to capture capacitance. To test it I just stuck a paperclip into pin 8. Works great! void setup() { Serial.begin(9600); // connect to the serial port } void loop () { char capval; char pinval = 1<<PINB0; //digital pin 8…
