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

Search:

Type: Posts; User: jonr

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    29

    You might be able to adapt the "flasher4" code to...

    You might be able to adapt the "flasher4" code to do this.

    https://forum.pjrc.com/threads/29607-Over-the-air-updates/
  2. Replies
    11
    Views
    220

    > We like to detect a clipped audio signal coming...

    > We like to detect a clipped audio signal coming from the mixer

    Remko wants to detect clipping that occurred in the mixer or upstream of it. The signal level is likely to be fine once it gets...
  3. Replies
    6
    Views
    98

    Another common problem is noise from ground...

    Another common problem is noise from ground loops. Don't reference to any noisy ground that you don't have to. Use outputs from an isolated teensy+audio adapter as balanced signals into...
  4. Replies
    11
    Views
    220

    Clipped signals produce more high frequency...

    Clipped signals produce more high frequency energy - which blows tweeters.

    The histogram method here sounds promising. Or do a FFT and compare 3khz and above energy to energy below 3khz.
    ...
  5. Replies
    4
    Views
    63

    It's easier if you make the Teensy/ESP a fixed ip...

    It's easier if you make the Teensy/ESP a fixed ip address web server on your wifi network and then have the PC poll it via http.
  6. Replies
    6
    Views
    98

    Do #1 - teensy headphone jack into mixer line...

    Do #1 - teensy headphone jack into mixer line input.
  7. Replies
    466
    Views
    48,688

    What is the feasibility of adding virtual files...

    What is the feasibility of adding virtual files to MTP? For example, "memory", which would provide read access to all memory in the teensy?
  8. Replies
    11
    Views
    196

    Any easy, standards based way for a PC to access...

    Any easy, standards based way for a PC to access non-volatile data (eeprom or other) in a teensy would be useful. Perhaps virtual files accessed via MTP?

    For example, I run audio convolution...
  9. Thread: i.MX RT1170 ??

    by jonr
    Replies
    3
    Views
    136

    The NXP i.MX RT1176 eval board should be more...

    The NXP i.MX RT1176 eval board should be more widely available in February.
  10. Replies
    11
    Views
    196

    Besides the clear need for more structure on top...

    Besides the clear need for more structure on top of teensy non-volatile storage, there is the barrier-to-change business issue. It should be easy to port software from ESP32 to teensy. The reverse...
  11. Replies
    11
    Views
    196

    Seems like such a library should be built on top...

    Seems like such a library should be built on top of teensy's EEPROM code. For many uses, far less than 64K is adequate.
  12. Replies
    5
    Views
    193

    This is worth reviewing: ...

    This is worth reviewing:

    https://arduino.stackexchange.com/questions/57645/trouble-configuring-arduino-due-spi-to-adc
  13. Replies
    3
    Views
    77

    > I need to acquire 200,00 samples to have a...

    > I need to acquire 200,00 samples to have a correct 100khz samplerate

    I'd word it as "the setting and library will cause the ADC to acquire 200,000 samples/sec to produce the correct output rate...
  14. Replies
    3
    Views
    77

    It tries to produce the derived sample rate that...

    It tries to produce the derived sample rate that you specified (100,000), no matter how much averaging you do. In your example, 200,000 samples/sec need to be taken which is then reduced to 100,000...
  15. Replies
    9
    Views
    177

    Did you try changing AUDIO_SAMPLE_RATE_EXACT as...

    Did you try changing AUDIO_SAMPLE_RATE_EXACT as suggested in #4?
  16. Replies
    9
    Views
    177

    Regarding clock rate sync between two...

    Regarding clock rate sync between two non-wired-together sources, just adding a GPS module to each one might be easier than implementing PTP.
  17. Replies
    9
    Views
    177

    I find the manual quite dense, but as I see it, a...

    I find the manual quite dense, but as I see it, a clock can be applied to the SPDIF_EXT_CLK pin and this can be used as the SPDIF clock, Then the SAIs can use the SPDIF clock as their clock (see...
  18. Replies
    7
    Views
    200

    > will that slow things down If you are...

    > will that slow things down

    If you are concerned about speed, then I encourage you to learn how to measure speed. Search this forum for "ARM_DWT_CYCCNT".
  19. Replies
    9
    Views
    177

    Other than using the hardware audio inputs (I2S,...

    Other than using the hardware audio inputs (I2S, spdif), I'm not aware of any way to get a teensy audio output to precisely sync with an asynchronous clock from another source. I think you could...
  20. The demo here sounds quite effective: ...

    The demo here sounds quite effective: https://www.seeedstudio.com/ReSpeaker-Mic-Array-v2-0.html

    On the other hand, if the source is at a fixed position, it would be interesting to hear how well a...
  21. Replies
    3
    Views
    101

    Try turning off interrupts with cli().

    Try turning off interrupts with cli().
  22. Replies
    21
    Views
    801

    Frequent overruns unless I patch the feedback...

    Frequent overruns unless I patch the feedback code in usb_audio.cpp.

    https://forum.pjrc.com/threads/61142-USB-Audio-Frame-Sync-on-Teensy-4-0
  23. Your plan is sound. I'd buy a toslink input...

    Your plan is sound. I'd buy a toslink input module and a relay module (to send the 12V amp on signal). Then it's just software.
  24. > The display then shows 1,178 to 1,182 V...

    > The display then shows 1,178 to 1,182 V (probably RMS).
    > My oscillator (AC coupling) shows me Ue = 352 mVpp / 123 mV RMS.

    I'll assume "oscilloscope". When a multimeter reads ~10x more than an...
  25. What does a multimeter read (at the input pin)...

    What does a multimeter read (at the input pin) for both AC and DC?
  26. What do you get with DC voltages?

    What do you get with DC voltages?
  27. Thread: TDM as slave

    by jonr
    Replies
    13
    Views
    308

    So you want a T4 to produce 2 TDM outputs that...

    So you want a T4 to produce 2 TDM outputs that are precisely time synchronized with each other. I don't know much about it, but will give my thoughts anyway. 6.15 us is a long time for a T4. If...
  28. Replies
    1
    Views
    87

    It's time to start putting parts on the bottom...

    It's time to start putting parts on the bottom side.
  29. Replies
    2
    Views
    131

    Typically more like this: ...

    Typically more like this:

    arm_rfft_fast_instance_f32 S;
    arm_rfft_fast_init_f32(&S, 32);

    Be careful, as I recall, the real fft had a funky format for the results.
  30. A slightly related thing I came up with. At...

    A slightly related thing I came up with. At first the "case function" doesn't look legal.


    constexpr unsigned hash(const char *string)
    {
    return *string == 0 ? 17325 : *string + (*string *...
  31. Replies
    5
    Views
    228

    Try using "unsigned volatile long" so the...

    Try using "unsigned volatile long" so the compiler doesn't optimize away your loop.
  32. Thread: TDM as slave

    by jonr
    Replies
    13
    Views
    308

    What do you mean by "not in sync"? What problem...

    What do you mean by "not in sync"? What problem does it cause? Input or output?
  33. Replies
    8
    Views
    251

    I use USB input and toslink output. Combined...

    I use USB input and toslink output. Combined with a high quality DAC, I have no noise.
  34. > utilize more IO (10 or so) pins of the chip ...

    > utilize more IO (10 or so) pins of the chip

    What kind of IO do you need? Digital input, output, analog? How fast?

    For example, a "PCF8575 IO Expander Module I2C To 16IO" might work at far...
  35. A few K resistor is often helpful for protecting...

    A few K resistor is often helpful for protecting inputs.
  36. Replies
    5
    Views
    165

    Define "noise free". IMO, the teensy4 ADC is...

    Define "noise free". IMO, the teensy4 ADC is pretty noisy. Oversampling + trimmed mean will help some.
  37. Your Master code doesn't even compile. Probably...

    Your Master code doesn't even compile. Probably better not to use SoftwareSerial. And think through timing issues.
  38. Replies
    24
    Views
    1,314

    Confirmed on Teensyduino 1.54 Beta #4. Some...

    Confirmed on Teensyduino 1.54 Beta #4. Some overruns/glitches with the stock code, none with the above changes. Using Linux Mint 19.1 with pulseaudio and a usb card that is about 200 ppm off from...
  39. Serial is probably best.

    Serial is probably best.
  40. Replies
    9
    Views
    206

    You should put a delay() after your...

    You should put a delay() after your Serial.println() statements.
  41. > They are both connected via pins 16 and 17 ...

    > They are both connected via pins 16 and 17

    Looks like the Master code expects 18 and 19. Or switch it to Wire1.
  42. Replies
    1
    Views
    110

    I highly recommend not re-inventing the wheel -...

    I highly recommend not re-inventing the wheel - contribute to the code in the rusEFI project.
  43. Replies
    24
    Views
    1,314

    Even a bit better, good enough control of buffer...

    Even a bit better, good enough control of buffer level that the amount of buffering could be reduced for less latency.



    if (diff > 0)
    feedback_accumulator =...
  44. While the documentation is clear, I think that...

    While the documentation is clear, I think that "Model" would be a better word that "Rev".
  45. Replies
    1
    Views
    200

    feedback_accumulator is a 32 bit, bin 24 value...

    feedback_accumulator is a 32 bit, bin 24 value that gets shifted to the correct bin point before output. It holds the sample rate that the teensy is requesting the host to send (not a max value).
    ...
  46. Replies
    24
    Views
    1,314

    In addition to removing the "+= 3500" line, I had...

    In addition to removing the "+= 3500" line, I had to change to this to completely get rid of over/under runs. This has measurably better performance (faster convergence, less deviation in buffer...
  47. Replies
    6
    Views
    169

    I agree with Mark. Depending on specs and use,...

    I agree with Mark. Depending on specs and use, $10 for an AD9833 module seems reasonable.
  48. Try putting these two lines at the beginning of...

    Try putting these two lines at the beginning of setup():

    Serial.begin(115200);
    while (!Serial && millis() < 8000);
  49. Note that the mic input on the teensy audio board...

    Note that the mic input on the teensy audio board is much *lower* impedance than the line-in. But follow these rules and all will be fine:

    1) match the input gain to the voltage of the source -...
  50. Replies
    24
    Views
    1,314

    More info. When there is no audio playing on the...

    More info. When there is no audio playing on the PC, under-runs keep occurring, but this isn't a problem and they should be ignored.

    Yet in usb_audio.cpp, these under-runs cause...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4