Hi everyone,
I got trouble to get the audio ADC input working with a teensy 4.1. I have tried the PeakMeterMono example in combination with the ADC example circuit (https://www.pjrc.com/teensy/gui/img/adccircuit.png)
My hardware setup works fine with this code when I use a Teensy 3.2. However, with a Teensy 4 simply nothing happens. Apparently peak1.available() is never true. I suspect the initialisation of the ADC failed somehow. Has anyone an idea how to resolve this?
So far, I have tried a fresh Arduino 1.8.19 and Teensyduino 1.56 installation. I have read here that the "ADC does not work good", but does it work at all?
Best regards,
Christian
I got trouble to get the audio ADC input working with a teensy 4.1. I have tried the PeakMeterMono example in combination with the ADC example circuit (https://www.pjrc.com/teensy/gui/img/adccircuit.png)
Code:
void loop() {
// if (fps > 24) {
if (peak1.available()) {
fps = 0;
int monoPeak = peak1.read() * 30.0;
Serial.print("|");
for (int cnt=0; cnt<monoPeak; cnt++) {
Serial.print(">");
}
Serial.println();
}
// }
}
So far, I have tried a fresh Arduino 1.8.19 and Teensyduino 1.56 installation. I have read here that the "ADC does not work good", but does it work at all?
Best regards,
Christian