Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • alex6679's Avatar
    Yesterday, 08:10 PM
    Great. I'm glad to hear that. @JayShoe: Unfortunately I have no experience with the TDM signals and the ESP32. I use 8 channel TDM to exchange sound data between four Teensy 4. I use SAI2 for that. At the SAI1...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    Yesterday, 11:09 AM
    I don't see a reason why SAI1 in master mode and SAI2 in slave mode wouldn't work together. I use them together the other way around: SAI2 in master mode and SAI1 in slave mode and it works.
    75 replies | 1723 view(s)
  • alex6679's Avatar
    Yesterday, 06:04 AM
    I have no experience with the audioshield, but you could search or make an example at which a sine wave is generated on the Teensy and send to the audioshield. If that works, you can replace the sine wave generator with...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-19-2021, 07:27 PM
    I just tested example 4 and 6. They both worked here. Here is the result of example 6: At example 6 you can ignore the 'glitches' within the first few seconds. They occure since the incoming sample rate is not...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-19-2021, 05:54 PM
    At example 6 only one channel of the input is connected to the plotter. That's the reason for the missing data. I'll try to reproduce the other problem.
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-18-2021, 05:47 PM
    Nice, we expected of course some distortion. Have you also tried examples 4 and 6 yet? Maybe they already work.
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-18-2021, 09:17 AM
    I just saw that yesterday I reset the bit clock divider back to the value for 32bit samples. I fixed that (again). Can you please give it a last try. Tomorrow I'll be back home and if my fix is not working, I'll do the...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-18-2021, 07:11 AM
    I don't know what you planned to test, but you can connect up to 8 channels to the plotter. Regarding the shifting the bits: The input works for at SAI1 and I just used the same configuration at SAI2. So I don't think...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-17-2021, 09:04 PM
    Ok I might found something: At SAI2 the receiver needs to run in sync with the transmitter (at SAI1 its the other way around). I configured the receiver bit clock for 16bit, but it uses the bit clock of the transmitter...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-17-2021, 02:11 PM
    I should have explained my commit more clearly: It only changed the behavior of example 5, where the Teensy is master. I hope that it works now. I would like to first get example 5 running (smallest risk of failing),...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-17-2021, 12:16 PM
    I forgot to adapt the bit clock divider for example5. But I just fixed that and chances are good that it works now. Example 4: If the plotter shows something, then at least the isr of SAI2 is called, which is good. It...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-17-2021, 07:27 AM
    I committed 3 examples for SAI2: example4: Teensy is slave example5: Teensy is master example6: Teensy is slave + resampling All I can say is that they compile. Let me know if they also work. Also, I moved all...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-17-2021, 05:27 AM
    I forgot to commit that I removed that typedef in async_inputs.h. It should work now if you get the latest files from teensy-4-async-inputs.
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-16-2021, 08:35 PM
    I was only asking JoyShoe for the Teensyduino version because of the compiler error that he postet. The compiler is complaining about the interface of the Resampler class. That interface changed some time ago and I...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-16-2021, 07:03 PM
    I am glad that it works now for both of you. What were the problems? Did you have to change something in the example code? I would add all useful information to the documentation of the examples. I just added it (not...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-16-2021, 06:48 AM
    Great, I am glad that it works now. I think it is not that simple. Currently SAI1 is clocked bei Teensys PLL4 and if we us SAI2 in slave mode it will be clocked by the ESP32. Since the clocks of the Teensy and the...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-15-2021, 08:18 PM
    Since you both have problems with the examples, I will double check tomorrow evening if I messed something up when I committed the files. Although I can't imagine that I committed the wrong files. I use a ESP32 Devkit....
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-15-2021, 06:30 AM
    Sorry, I completely forgot about that. I use Visual Studio Code + VisualTeensy to compile my projects. That's the reason why I have main.cpp files instead of .ino files. As SomeoneFromGermany suggested: Just change the...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-14-2021, 06:23 PM
    Which pins do you use at the Teensy? With my code it should be IN1, BCLK1, LRCLK1. I am just asking because at one point you used AudioInputI2SQuad and I am wondering if you used connected the second input to the ESP....
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-12-2021, 06:40 PM
    Maybe your speaker was playing the signal of your screenshot. The signal is just very quite. Anyway, there is a problem. Can you remove the audioshield for now and just concentrate on receiving the correct signal from...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-12-2021, 03:37 PM
    Qick update: I had a closer look at the signal in case the Teensy is I2S master. Indeed there is still problem, when the ESP32 is I2S slave
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-12-2021, 01:56 PM
    I think I also got a working example with the Teensy as I2S master: https://github.com/alex6679/ESP32_I2S_Teensy4/tree/main/example2 I only change a single line of code at the ESP32: static const i2s_config_t...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-12-2021, 12:41 PM
    I just committed a first working example of an I2S stream from the ESP32 to the Teensy 4: https://github.com/alex6679/ESP32_I2S_Teensy4/tree/main/example1 ESP32 side: I used the esp32_bt_music_receiver from...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-11-2021, 10:34 PM
    Yes, the code above is part of the I2S config on the Teensy, that I used. The problem is that it is part of a quite large project. Posting the complete project would not help much, since the project is quite large and...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-11-2021, 09:19 PM
    Ok, I got your example code on the ESP32 working. I googled for the esp32_bt_music_receiver.h header and found this bluetooth receiver class: https://github.com/dvxlab/esp32_bt_music_receiver. So I assume you also use...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-11-2021, 02:16 PM
    I don't think that the problem is caused by the bit numbering. I use MSB and it works. Here is my I2S configuration on the ESP32 i2s_config_t i2s_config = { .mode = I2S_MODE_MASTER | I2S_MODE_TX, ...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-11-2021, 11:20 AM
    I just noticed that you use AudioInputI2SQuad. Do you try to receive 4 audio channels from the ESP32?
    75 replies | 1723 view(s)
  • alex6679's Avatar
    09-11-2021, 11:15 AM
    Hi, maybe I can help you with your problem. I have a working setup with an ESP32 as bluetooth receiver and a T4 that receives the sound from the ESP32 via I2S. I don't have an audio shield and right now I also don't use...
    75 replies | 1723 view(s)
  • alex6679's Avatar
    08-05-2021, 03:07 PM
    Thanks for pointing that out. I wrote that file. I will fix that and make a pull request.
    1 replies | 334 view(s)
No More Results
About alex6679

Basic Information

Statistics


Total Posts
Total Posts
78
Posts Per Day
0.10
Last Post
ESP32 as I2S input-device Yesterday 08:10 PM
General Information
Last Activity
Today 08:30 PM
Join Date
08-11-2019