Hello All,
I've been stuck trying to get multiple Analog inputs to be read by a Teensy 3.6 board. It seems like the hardware does not support reading more than one AnalogInput.
Here is my setup code, hopefully there is something I can change to make this work. Presently, I have 4 different piezoelectric elements being measured and clamped to 1.4 V. I plan on measuring the peak of each signal.
When this happens the program crashes and does not run. It works perfectly with a single analog input.
Thanks in advance; Teensy has been stellar for projects so far!
-NB
I've been stuck trying to get multiple Analog inputs to be read by a Teensy 3.6 board. It seems like the hardware does not support reading more than one AnalogInput.
Here is my setup code, hopefully there is something I can change to make this work. Presently, I have 4 different piezoelectric elements being measured and clamped to 1.4 V. I plan on measuring the peak of each signal.
Code:
AudioAnalyzePeak peak3; //xy=189,418
AudioAnalyzePeak peak2; //xy=190,369
AudioAnalyzePeak peak1; //xy=191,320
AudioInputAnalog adc3(A6); //xy=192,219
AudioInputAnalog adc1(A2); //xy=193,126
AudioInputAnalog adc2(A3); //xy=193,174
AudioAnalyzePeak peak4; //xy=192,467
AudioInputAnalog adc4(A7); //xy=194,265
AudioConnection patchCord1(adc1, peak1);
AudioConnection patchCord2(adc1, peak1);
AudioConnection patchCord3(adc2, peak2);
AudioConnection patchCord4(adc4, peak4);
AudioControlSGTL5000 sgtl5000_1; //xy=200,518
When this happens the program crashes and does not run. It works perfectly with a single analog input.
Thanks in advance; Teensy has been stellar for projects so far!
-NB
Last edited: