Hello. I just bought a couple of Teensys 4.0 to test for a project in which I would like fast ADC readings.
I was very impressed by the specs of the board and have plenty of ideas what to do with it. I just got up a little frustrated with the basic examples that come with the IDE not working.
Setup: Catalina MacOS, Teensyduino 1.53 installed in top of Arduino IDE (that got replaced, I suppose). I used the recommended installation for Catalina (standalone version).
Arduino IDE has ESP32 libraries installed as well. That is because I use the ESP32 as well, so was happy that did not get overridden.
When I run the example adc_dma from the example section it compiles and uploads and then prints nothing on the serial monitor.
Board is set to Teensy 4.0, so there should be no issue.
I modified the programme and it turns out that #ifdef ADC_USE_DMA is false and it runs the empty sketch. I modified the empty sketch in the end to print
"I don't seem to know about DMA" to the serial line, and this line does print in the serial monitor.
It seems to me that the Teensyduino uses an adc library of the ESP32 instead, or some other ADC library.
Anyway, I then downloaded the github version of the ADC library and placed it in my local Arduino library folder. Now the example adc_dma showed up in another section. This time it ran and produces numbers, and it all seems to work just fine. I am pretty sure that this is not intented behaviour, so was wondering if I can get this to work without having to copy things manually.
More seriously though the adc_timer_dma example runs the empty sketch again. There is something very wrong here. These sketches should all be running out of the box, right?
Am I doing something wrong here? Is there a mismatch between installed ESP32 libraries and the Teensy libraries that come with Teensyduino?
I want to use timed ADC readings from several ADCs and run a (complex) FFT on them. So I am really interested to learn how the adc_timer_dma example works as soon as I get it to run.
Any hint may be appreciated to get this running.
Best wishes,
Alex
I was very impressed by the specs of the board and have plenty of ideas what to do with it. I just got up a little frustrated with the basic examples that come with the IDE not working.
Setup: Catalina MacOS, Teensyduino 1.53 installed in top of Arduino IDE (that got replaced, I suppose). I used the recommended installation for Catalina (standalone version).
Arduino IDE has ESP32 libraries installed as well. That is because I use the ESP32 as well, so was happy that did not get overridden.
When I run the example adc_dma from the example section it compiles and uploads and then prints nothing on the serial monitor.
Board is set to Teensy 4.0, so there should be no issue.
I modified the programme and it turns out that #ifdef ADC_USE_DMA is false and it runs the empty sketch. I modified the empty sketch in the end to print
"I don't seem to know about DMA" to the serial line, and this line does print in the serial monitor.
It seems to me that the Teensyduino uses an adc library of the ESP32 instead, or some other ADC library.
Anyway, I then downloaded the github version of the ADC library and placed it in my local Arduino library folder. Now the example adc_dma showed up in another section. This time it ran and produces numbers, and it all seems to work just fine. I am pretty sure that this is not intented behaviour, so was wondering if I can get this to work without having to copy things manually.
More seriously though the adc_timer_dma example runs the empty sketch again. There is something very wrong here. These sketches should all be running out of the box, right?
Am I doing something wrong here? Is there a mismatch between installed ESP32 libraries and the Teensy libraries that come with Teensyduino?
I want to use timed ADC readings from several ADCs and run a (complex) FFT on them. So I am really interested to learn how the adc_timer_dma example works as soon as I get it to run.
Any hint may be appreciated to get this running.
Best wishes,
Alex