Touch Sensing
JasonDorie
Posts: 1,930
While playing with the RCTime code in my cutting board clock project (see here) I noticed that when I touched the LED I was using as a light sensor, the time values jumped around a lot.
I then tried removing the LED altogether and just told the RCTime code to spit out values as I touched a bare, ungrounded pin on the Prop. I assume that the Prop pin will hold a charge for a short time if you set it as an output and then try to read it back, and that me touching the pin was bleeding off that charge, because there was a very clear difference in the output times when I touched the pin vs when I didn't.
For my cutting board clock, I bought a capacitive touch-sensor IC. I want to make the bolts holding the case together act as the buttons for setting the time. The IC I got is obviously made to do exactly this kind of thing, so my question is, do I need it, or could I just run wires from the Prop pins to these bolts and use the RCTime method to detect contact? It appears to work, but how safe is it for the Prop? I assume I need to worry about ESD, and if so, would putting a simple resistor inline with the pin protect it?
I'm all curious now.
I then tried removing the LED altogether and just told the RCTime code to spit out values as I touched a bare, ungrounded pin on the Prop. I assume that the Prop pin will hold a charge for a short time if you set it as an output and then try to read it back, and that me touching the pin was bleeding off that charge, because there was a very clear difference in the output times when I touched the pin vs when I didn't.
For my cutting board clock, I bought a capacitive touch-sensor IC. I want to make the bolts holding the case together act as the buttons for setting the time. The IC I got is obviously made to do exactly this kind of thing, so my question is, do I need it, or could I just run wires from the Prop pins to these bolts and use the RCTime method to detect contact? It appears to work, but how safe is it for the Prop? I assume I need to worry about ESD, and if so, would putting a simple resistor inline with the pin protect it?
I'm all curious now.
Comments
Layout and Physical Design Guidelines for Capacitive Sensing...
http://ww1.microchip.com/downloads/en/AppNotes/01102a.pdf