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.01 seconds.

  1. Replies
    8
    Views
    1,038

    Can you post your code for dual edge capture?

    Can you post your code for dual edge capture?
  2. Replies
    26
    Views
    3,023

    If you have noise issues, another option is to...

    If you have noise issues, another option is to use toslink, preferably in and out.
  3. Replies
    5
    Views
    90

    You can change the address of one of them by...

    You can change the address of one of them by using the AD0 - I2C Address pin.
  4. Replies
    19
    Views
    907

    I usually see the USB audio issue in #14 right...

    I usually see the USB audio issue in #14 right away. And some might not notice. But it sounds fine when I set the USB mode to "Audio" only.

    > SPDIF sets the sample rate for the audio library
    ...
  5. Replies
    53
    Views
    2,867

    For the teensy, I think QOS is just a matter of...

    For the teensy, I think QOS is just a matter of tagging outgoing packets. ??

    PTPv2 (for clock sync) is a big requirement for AES67, but this is hugely beneficial when you are dealing with a...
  6. Replies
    53
    Views
    2,867

    Sounds like nice work. IMO, the long term...

    Sounds like nice work.

    IMO, the long term right approach would be an AES67 implementation for the teensy 4.1. Possibly based on the available ESP32 code.
  7. Replies
    17
    Views
    594

    IMO, for high quality, use toslink in/out with an...

    IMO, for high quality, use toslink in/out with an external ADC/DAC.
  8. Replies
    5
    Views
    174

    This is a different ADC, but the...

    This is a different ADC, but the AD7689_read_array() below should be helpful as a model.

    https://gitlab.com/our-sci/reflectance-spec-firmware/-/blob/master/src/AD7689.cpp
  9. Replies
    8
    Views
    822

    It looks like the teensy4 can be switched from a...

    It looks like the teensy4 can be switched from a 24 Mhz crystal derived oscillator to a RTC crystal derived RC oscillator. Which appears to be tunable with COUNT_RC_TRG (or RC_OSC_PROG?) The result...
  10. As I see it, it encourages people to write...

    As I see it, it encourages people to write portable code and helps find errors in poor code from elsewhere.

    If someone doesn't like the "PRIu32" style, then there is:

    printf(" %u\n", (unsigned)...
  11. Replies
    46
    Views
    1,307

    > Think will need to convert many many %u %x %d ...

    > Think will need to convert many many %u %x %d to %lu %lx %ld Will be sort of a pain!

    > printf("uint32_t var : %"PRIu32"\n", u32x);

    I see one here:
    Audio/input_adc.cpp:341:45: warning:...
  12. Possibly a i2s MEMs microphone for input into the...

    Possibly a i2s MEMs microphone for input into the teensy?
  13. Replies
    10
    Views
    320

    I unplugged all USB devices and then plugged in...

    I unplugged all USB devices and then plugged in only the teensy. Indeed, this worked!

    Thanks, this will make debugging much easier.

    I suppose ideally there would be some way for the teensy to...
  14. Neither DMAMEM nor using real ffts worked out. ...

    Neither DMAMEM nor using real ffts worked out. But I was successful in using the symmetry of fft output to reduce memory use. This resulted in > 12,000 taps with stereo input and separate impulse...
  15. Replies
    10
    Views
    320

    Forget volume() issue in #5 - volume() is working...

    Forget volume() issue in #5 - volume() is working OK now that I found the alsa control in Linux.
  16. Replies
    41
    Views
    987

    Thanks. Link to audio issue: ...

    Thanks. Link to audio issue:

    https://forum.pjrc.com/threads/63733-Linux-audio-device-bug-toslink-on-T4?highlight=linux+audio
  17. > Tried what? Compared to what? Agreed, wasn't...

    > Tried what? Compared to what?

    Agreed, wasn't clear.

    Serial.printf("%"PRIu32"\n", u32x);
    vs
    Serial.println(u32x);

    But the memory use is a printf() issue, not the use of "PRIu32".
  18. Replies
    41
    Views
    987

    I'm hoping that USB Type: Serial+Midi+Audio on T4...

    I'm hoping that USB Type: Serial+Midi+Audio on T4 with Linux can get fixed. Same exact program works fine with Audio only.
  19. > printf("uint32_t var : %"PRIu32"\n", u32x); ...

    > printf("uint32_t var : %"PRIu32"\n", u32x);

    Nice, thanks. But I tried it on a teensy and memory usage went way up.
  20. My understanding is that output pins should be...

    My understanding is that output pins should be limited to 10mA. Add a mosfet if you need more.
  21. Replies
    5
    Views
    215

    While it can be done from Paul's schematics and...

    While it can be done from Paul's schematics and advice (https://www.pjrc.com/store/ic_mkl02.html) alone, you will be better off starting with one of the published complete designs (schematic, PCB...
  22. Replies
    13
    Views
    506

    > 66 MHz effective Interesting, slower than I...

    > 66 MHz effective

    Interesting, slower than I thought. I'd guess that an unrolled loop of [*d = GPIO1_DR] is probably most similar to how fast DMA can run. If the DMA is triggered by a pin...
  23. Are the Raspberry Pi's GPIO pins set to maximum...

    Are the Raspberry Pi's GPIO pins set to maximum source and sink current drive capability?

    You could put a RC filter on the teensy end.
  24. Account for it being quad SPI.

    Account for it being quad SPI.
  25. Replies
    13
    Views
    506

    @dgranger I'm curious how fast you can go if...

    @dgranger

    I'm curious how fast you can go if you don't use DMA and just poll? Ie, wait for pin change, read/store GPIO, loop.
  26. While 9216x2 taps is OK, it could go higher if...

    While 9216x2 taps is OK, it could go higher if DMAMEM could be used for some of the large arrays (eg fmask). But with USB input and spdif output, this causes some static. Any idea why or how to...
  27. As I recall, the pedvide ADC library has the...

    As I recall, the pedvide ADC library has the obnoxious side effect of turning on interrupts.
  28. Here is the alpha code if you need two impulse...

    Here is the alpha code if you need two impulse responses applied to two channels:
  29. Replies
    3
    Views
    241

    I think you want: float32_t inbuf; ...

    I think you want:

    float32_t inbuf;

    myFile.read(&inbuf, sizeof(inbuf));
  30. Replies
    5
    Views
    340

    I always get 223.98 when using a double. "%.2f"...

    I always get 223.98 when using a double. "%.2f" works even with a float.
  31. > This seems all pretty unstable. Possibly...

    > This seems all pretty unstable.

    Possibly related - I found the audio+midi+serial option to not work with T4.0 and Linux. Serial alone or audio alone (except for volume control) has been fine.
  32. Replies
    3
    Views
    170

    There is lots of info about time accuracy on this...

    There is lots of info about time accuracy on this forum. Consider doing your own temperature compensation. Or using the RTC.
  33. Replies
    10
    Views
    320

    Another issue/bug: any call to usb1.volume()...

    Another issue/bug: any call to usb1.volume() causes the audio device on linux to stop working.

    * Linux Mint, Arduino 1.8.13, TD 1.53
    * Teensy 4.0 with toslink/spdif3 output
    * USB Audio in
  34. Replies
    21
    Views
    591

    It probably helps (lower jitter?), but experience...

    It probably helps (lower jitter?), but experience says it isn't necessary.
  35. I have code to alpha test if anyone is interested.

    I have code to alpha test if anyone is interested.
  36. Agreed, unless someone with better understanding...

    Agreed, unless someone with better understanding wants to help, creating a second fmask array and then running the existing multiply/ifft process twice better fits my limited understanding of this...
  37. > both IRs (for left and right speaker channels)...

    > both IRs (for left and right speaker channels) are both stuffed into the maskgen buffer

    I thought about this, but if this would work, how does it work as the code is now? The imaginary/odd...
  38. Replies
    21
    Views
    591

    +1 on what Paul said. Since this keeps coming...

    +1 on what Paul said. Since this keeps coming up, here is one that can be copied. Note the guard ring and single ground connection point. Not shown is the continuous ground plane under it. ...
  39. Ran into an issue - speaker/room correction is...

    Ran into an issue - speaker/room correction is normally done with a separate impulse for each channel. And I don't understand the code well enough to change it.
  40. Replies
    10
    Views
    320

    That wiring worked, but wasn't bright enough for...

    That wiring worked, but wasn't bright enough for some DACs. This works correctly.
  41. Replies
    10
    Views
    320

    Has anyone used T4 Serial+Midi+Audio with Linux? ...

    Has anyone used T4 Serial+Midi+Audio with Linux? DD4WH (OS unknown) reported the opposite problem (Audio alone didn't work).
  42. Replies
    21
    Views
    591

    I think your crystal is sharing a line with...

    I think your crystal is sharing a line with something else. I wouldn't do that.
  43. Will do once I'm done. More on DRC here: ...

    Will do once I'm done. More on DRC here:

    https://en.wikipedia.org/wiki/Digital_room_correction#:~:text=Digital%20room%20correction%20(or%20DRC,of%20a%20sound%20reproduction%20system.

    It does...
  44. Thanks (for the help and the code). I found it...

    Thanks (for the help and the code). I found it was necessary to use AudioMemory(20). Sounds good now. Might be worth using 20 (or more?) in your code.

    The goal is to do digital room...
  45. I don't use I2S at all, but restoring that rate...

    I don't use I2S at all, but restoring that rate line made no difference. A big clue - disabling all the convolution code and just taking samples, converting to float and then back also has the...
  46. I made minimal changes to use USB input and...

    I made minimal changes to use USB input and spdif3 output and I get lots of static (setup works fine without convolution). Tried two difference versions (first was 09/11/2019). Any suggestions or...
  47. Replies
    10
    Views
    320

    Linux audio device bug? + toslink on T4

    When I run this program with the USB type set to Serial/MIDI/Audio, there is silence. I change to USB type "Audio" and it works well. T4, OS is Linux Mint, Teensyduino 1.53. Is it possible to have...
  48. Replies
    21
    Views
    591

    More info here: ...

    More info here:

    https://forum.pjrc.com/threads/62921-Help-with-Teensy-3-2-DIY-Project
  49. > do Serial.flush() I've been caught by the...

    > do Serial.flush()

    I've been caught by the fact that Serial.flush() doesn't actually wait until the data is seen by the PC. For that you also need a delay.
  50. Replies
    3
    Views
    170

    Due to pin-out differences (a TCXO needs power),...

    Due to pin-out differences (a TCXO needs power), I assume this is for a custom teensy design? If so, I'd encourage you to design it to use a VCXO. This would allow software to trim for even better...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4