Touch in Teensy 4.0

humphreyg

Member
I liked teensy 3.2 very much because I could implement an octave of touch for USB synth. Is there a touch library for teensy 4 that can replace the native touch on 3.2?
 
There is a CapacitiveSensor library. It's among the many libraries installed automatically for Teensy. Look for it in File > Examples.

Whether it's a good replacement for the native hardware touch sensing is a good question. It uses the normal digital pins, so it lacks all the special analog hardware which can (at least in theory) give faster and more stable performance.
 
(It also needs hardware in the form of 10M resistors.) Would it be challenging to make the arduino ADCTouch library work for Teensy 4.0? Right now it does not compile because of the absence of ADMUX, ADCSRA, and ADSC. Thanks for any suggestions on how to do this.
 
Back
Top