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

Search:

Type: Posts; User: alex6679

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Hi, at the example...

    Hi,

    at the example https://github.com/JayShoe/esp32_T4_bt_music_receiver of JayShoe the Teensy input I2S slave and the ESP32 is master. I also think that the ESP32 does something to the clock...
  2. Right, the large look up table that contains the...

    Right, the large look up table that contains the filter coefficients, is probably the largest drawback of my implementation.
    Anyway, good that you were abe to perform all your evaluations in the end.
  3. Hi, I finally found some time to have a look at...

    Hi, I finally found some time to have a look at the processor usage. The problem is that the processor usage depends on input frequency. A high input frequency needs a longer filter to achieve the...
  4. Hi, Not for the spdif input. But it can be...

    Hi,


    Not for the spdif input. But it can be useful for the multichannel i2s slave inputs. I implemented a template class that makes it relatively easy to add the resampling to an arbitrary input....
  5. I am sorry, but at the moment I don't have time...

    I am sorry, but at the moment I don't have time to dive deep into your code. However, I had a brief look at your code. So let's see I a can help you. I assume you need to call 'fillFIFOstereo' and...
  6. I think the most common sample rates are 44.1kHz...

    I think the most common sample rates are 44.1kHz and 48kHz and therefore fsin >= fsout most of the time.


    Yes, you can call your src algorithm in 'update' of your class.
  7. The data from spdif input is written into...

    The data from spdif input is written into spdif_rx_buffer via dma transfer. daddr is just the address at which the dma transfer currently writes data. It is not calculated. The dma transfer calls the...
  8. Glad that you didn't give up. That is the...

    Glad that you didn't give up. That is the approach I had in mind.
    I haven't checked the details, but as far as I understand your code, you fill a buffer in the isr method. The buffer is only...
  9. Replies
    93
    Views
    11,039

    The other improvements concern the distortion and...

    The other improvements concern the distortion and noise of the resampling algorithm.

    At first I briefly want describe how I measured THD+N:
    I wasn't sure about which notch filter to use in order...
  10. Replies
    93
    Views
    11,039

    As mentioned above, I spent some in December to...

    As mentioned above, I spent some in December to evaluate the algorithms of the AsyncAudioInputSPDIF3. I was able to improve several points and finally found some time to share my results here.

    The...
  11. I guess it doesn't make sense to connect...

    I guess it doesn't make sense to connect AudioInputSPDIF3 to anything if it is not the master. But if it is in master mode, you could for example record audio data.

    If you want to resample data...
  12. Hi, Unfortunately that won't work. There...

    Hi,



    Unfortunately that won't work. There is alway only 1 block that clocks the audio pipeline (triggers the call of the update function of all blocks). Depending on the order of the...
  13. Replies
    93
    Views
    11,039

    Hi, yes, there are really 20481 coefficients...

    Hi,
    yes, there are really 20481 coefficients (32bit float).



    Why not? If your algorithm is e. g. not slower and doesn't need more memory, but at the same time has lower distortion, then I...
  14. Replies
    93
    Views
    11,039

    You are right, two things are happening: 1. The...

    You are right, two things are happening:
    1. The resampling of the signal.
    2. Every 128 samples/ at each call of the update function, the number of samples in the input buffer is monitored (the...
  15. Replies
    93
    Views
    11,039

    Thanks for sharing the result.

    Thanks for sharing the result.
  16. Replies
    93
    Views
    11,039

    I could only test the algorithm with my hardware...

    I could only test the algorithm with my hardware and until now nobody else posted results of some tests. So there is not much empirical data. I assumed that
    the results are much better than with...
  17. Replies
    93
    Views
    11,039

    Good, that you were able to fix the problem.

    Good, that you were able to fix the problem.
  18. Replies
    93
    Views
    11,039

    That does really not look good. Can you have a...

    That does really not look good. Can you have a look at the signal on the Teensy without resampling?
    I only had a brief look at you code, but I think replacing the AsyncAudioInputSPDIF3 object with...
  19. Replies
    93
    Views
    11,039

    Hi, you don't need to change the sample...

    Hi,

    you don't need to change the sample freuqency of the library. From 48kHz to 44.1kHz is no problem.
    The the resampling algorithm, that I implemented, is quite simple. It is described here:...
  20. Replies
    93
    Views
    11,039

    @Bill Glass: I was also pleasantly surprised...

    @Bill Glass: I was also pleasantly surprised about the low distortion and I am curious about your results. Two things that you need to take into account: When the resampler is initialized, it uses...
  21. Replies
    93
    Views
    11,039

    That's difficult to answer. Some months back, I...

    That's difficult to answer. Some months back, I did some tests in which I want to get a feeling about the amount of jitter of the Teensy spdif-output.
    I can share the results although they don't...
  22. Replies
    93
    Views
    11,039

    Hi, I don't know/own an audio board, but I can...

    Hi,
    I don't know/own an audio board, but I can tell you how I interface the Teensy with an optical cable.
    I use this optical receiver:
    https://www.cliffuk.co.uk/products/optical/FCR684205R.pdf
    On...
  23. Replies
    75
    Views
    7,108

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

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

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

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

    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.
  28. Replies
    75
    Views
    7,108

    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.
  29. Replies
    75
    Views
    7,108

    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...
  30. Replies
    75
    Views
    7,108

    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...
  31. Replies
    75
    Views
    7,108

    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...
  32. Replies
    75
    Views
    7,108

    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...
  33. Replies
    75
    Views
    7,108

    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...
  34. Replies
    75
    Views
    7,108

    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.
    ...
  35. Replies
    75
    Views
    7,108

    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.
  36. Replies
    75
    Views
    7,108

    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...
  37. Replies
    75
    Views
    7,108

    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.
    ...
  38. Replies
    75
    Views
    7,108

    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...
  39. Replies
    75
    Views
    7,108

    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...
  40. Replies
    75
    Views
    7,108

    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...
  41. Replies
    75
    Views
    7,108

    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...
  42. Replies
    75
    Views
    7,108

    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...
  43. Replies
    75
    Views
    7,108

    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
  44. Replies
    75
    Views
    7,108

    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...
  45. Replies
    75
    Views
    7,108

    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...
  46. Replies
    75
    Views
    7,108

    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...
  47. Replies
    75
    Views
    7,108

    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...
  48. Replies
    75
    Views
    7,108

    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 |...
  49. Replies
    75
    Views
    7,108

    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?
  50. Replies
    75
    Views
    7,108

    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...
Results 1 to 50 of 101
Page 1 of 3 1 2 3