Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: alex6679

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    75
    Views
    3,277

    Great. I'm glad to hear that. @JayShoe:...

    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...
  2. Replies
    75
    Views
    3,277

    I don't see a reason why SAI1 in master mode and...

    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.
  3. Replies
    75
    Views
    3,277

    I have no experience with the audioshield, but...

    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...
  4. Replies
    75
    Views
    3,277

    I just tested example 4 and 6. They both worked...

    I just tested example 4 and 6. They both worked here. Here is the result of example 6:
    25912
    At example 6 you can ignore the 'glitches' within the first few seconds. They occure since the incoming...
  5. Replies
    75
    Views
    3,277

    At example 6 only one channel of the input is...

    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.
  6. Replies
    75
    Views
    3,277

    Nice, we expected of course some distortion. Have...

    Nice, we expected of course some distortion. Have you also tried examples 4 and 6 yet? Maybe they already work.
  7. Replies
    75
    Views
    3,277

    I just saw that yesterday I reset the bit clock...

    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...
  8. Replies
    75
    Views
    3,277

    I don't know what you planned to test, but you...

    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...
  9. Replies
    75
    Views
    3,277

    Ok I might found something: At SAI2 the receiver...

    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...
  10. Replies
    75
    Views
    3,277

    I should have explained my commit more clearly:...

    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...
  11. Replies
    75
    Views
    3,277

    I forgot to adapt the bit clock divider for...

    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...
  12. Replies
    75
    Views
    3,277

    I committed 3 examples for SAI2: example4:...

    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.
    ...
  13. Replies
    75
    Views
    3,277

    I forgot to commit that I removed that typedef in...

    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.
  14. Replies
    75
    Views
    3,277

    I was only asking JoyShoe for the Teensyduino...

    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...
  15. Replies
    75
    Views
    3,277

    I am glad that it works now for both of you. What...

    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.
    ...
  16. Replies
    75
    Views
    3,277

    Great, I am glad that it works now. I think it...

    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...
  17. Replies
    75
    Views
    3,277

    Since you both have problems with the examples, I...

    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...
  18. Replies
    75
    Views
    3,277

    Sorry, I completely forgot about that. I use...

    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...
  19. Replies
    75
    Views
    3,277

    Which pins do you use at the Teensy? With my code...

    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...
  20. Replies
    75
    Views
    3,277

    Maybe your speaker was playing the signal of your...

    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...
  21. Replies
    75
    Views
    3,277

    Qick update: I had a closer look at the signal in...

    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
    25827
  22. Replies
    75
    Views
    3,277

    I think I also got a working example with the...

    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...
  23. Replies
    75
    Views
    3,277

    I just committed a first working example of an...

    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...
  24. Replies
    75
    Views
    3,277

    Yes, the code above is part of the I2S config on...

    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...
  25. Replies
    75
    Views
    3,277

    Ok, I got your example code on the ESP32 working....

    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...
  26. Replies
    75
    Views
    3,277

    I don't think that the problem is caused by the...

    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 |...
  27. Replies
    75
    Views
    3,277

    I just noticed that you use AudioInputI2SQuad. Do...

    I just noticed that you use AudioInputI2SQuad. Do you try to receive 4 audio channels from the ESP32?
  28. Replies
    75
    Views
    3,277

    Hi, maybe I can help you with your problem. I...

    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...
  29. Replies
    1
    Views
    366

    Thanks for pointing that out. I wrote that file....

    Thanks for pointing that out. I wrote that file. I will fix that and make a pull request.
  30. Replies
    17
    Views
    1,163

    Ok. I thought you are working on another fork.

    Ok. I thought you are working on another fork.
  31. Replies
    17
    Views
    1,163

    I just committed the fixes to my fork of the...

    I just committed the fixes to my fork of the audio library:
    https://github.com/alex6679/Audio
    And also here:
    https://github.com/alex6679/teensy-4-spdifIn
  32. Replies
    17
    Views
    1,163

    I'll fix them on my fork of the audio library....

    I'll fix them on my fork of the audio library. What is the easiest way to provide you the changes?
  33. Replies
    17
    Views
    1,163

    There is no layer below the Resampler class....

    There is no layer below the Resampler class. There are no further classes or blocks or a processing pipeline inside the Resampler. The Resampler has a resampling function that implements the...
  34. Replies
    17
    Views
    1,163

    Ok, I added a block diagram of the most important...

    Ok, I added a block diagram of the most important blocks of the AsyncAudioInput class. Does this help at understanding how the class works?
    Independently of the description that I wrote, I should...
  35. Replies
    17
    Views
    1,163

    For me each of the main classes (Resampler,...

    For me each of the main classes (Resampler, FrequencyMeasurement, AsyncAudioInput, the i2s input ) is a functional block and by describing what their tasks are, I meant describing "what they are...
  36. Replies
    17
    Views
    1,163

    Ok, I understand. I will make a block diagram of...

    Ok, I understand. I will make a block diagram of the classes and a short description of their main tasks.
    Also the extension that I implemented for the original i2s slave class is really not a nice...
  37. Replies
    17
    Views
    1,163

    @Frank: I added an example of the resampler...

    @Frank: I added an example of the resampler class, that shows how to resample data that is too large for a single array:...
  38. Replies
    17
    Views
    1,163

    Regarding the cpu usage: It depends on the...

    Regarding the cpu usage:
    It depends on the configuration (constructor arguments) of the class. The class has the same arguments as the AsyncAudioInputSPDIF3.
    I just made some test to determine the...
  39. Replies
    17
    Views
    1,163

    Resampling I2S slave inputs at the T4/ T4.1

    Hi,

    I tried to write a class that allows to resample the input data from the i2s slave inputs to the audio sample of the T4/ T4.1. The resampling class is a template class and the template...
  40. I implemented an I2S slave input class that works...

    I implemented an I2S slave input class that works very similar to the AsyncAudioInputSPDIF3. It's more or less a copy of AsyncAudioInputSPDIF3 input at which all spdif specific code (setting the...
  41. That's right. The teensy audio library runs at...

    That's right. The teensy audio library runs at 16bit/44.1kHz. But the I2S inputs are configured to receive 32bit data. You would need to write your own AudioInputI2S2 to change that. Basically you...
  42. You wrote that configured the ESP32 to output...

    You wrote that configured the ESP32 to output 16bit data. Have you also changed the I2S input of the Teensy to 16bit? I also tried to send 32bit samples from the ESP32 to the Teensy, but there was a...
  43. Hi, I also use an ESP32 as A2DP sink and I...

    Hi,

    I also use an ESP32 as A2DP sink and I also connected it to a Teensy 4.0 via I2S. My setup is working without any problems. So we could search for differences in order to find out what's going...
  44. Replies
    25
    Views
    2,809

    Regarding the used ide: About one year ago I...

    Regarding the used ide: About one year ago I switched from the Arudiono ide to Visual Studio Code.
    I think your results look good so far. The input frequencies are plausible and it sometimes takes a...
  45. Replies
    25
    Views
    2,809

    Yesterday I had time to do some tests. Since you...

    Yesterday I had time to do some tests. Since you lately thought that your problems are caused by your spdif connections, I setup a small program to test the spdif data transfer. I commited the...
  46. Replies
    25
    Views
    2,809

    Regarding your question about the clocking: I had...

    Regarding your question about the clocking: I had a brief look at the code usb input. The audio data is buffered in the usb input class and it never clocks the audio pipline. It looks like the Teensy...
  47. Replies
    25
    Views
    2,809

    Let's see if I can reproduce your issue on...

    Let's see if I can reproduce your issue on Sunday. I am sure that my spdif in- and out work properly and if I can't reproduce your problems with the same Teensy program, then they are probably...
  48. Replies
    25
    Views
    2,809

    I didn't mean 'tearing the hardware appart'. Are...

    I didn't mean 'tearing the hardware appart'. Are there that many connections? I thought about removing all software objects/ AudioConnections. I thought your problems are software problems. Regarding...
  49. Replies
    25
    Views
    2,809

    Regarding the 'clipping noise': I suggest that...

    Regarding the 'clipping noise': I suggest that you keep the noise shaping/ dither turned off for now. Currently I am not at home, but next Sunday I will be back home and will try to reproduce you...
  50. Replies
    25
    Views
    2,809

    I think the clipping is caused by the dither and...

    I think the clipping is caused by the dither and noise of the noise-shaping that added to the signal when noise shaping and dither is activated. I think I should set the default values at the...
Results 1 to 50 of 79
Page 1 of 2 1 2