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

Search:

Type: Posts; User: gfvalvo

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Lots to consider. Thank you very much.

    Lots to consider. Thank you very much.
  2. Yea. Unfortunately, 'std::make_unique' appears to...

    Yea. Unfortunately, 'std::make_unique' appears to call the "regular" new. So, that makes it a two-step process:
    1. Use 'new (std::nothrow)' to allocate memory and check for null.
    2. If the returned...
  3. Maybe my application is non-standard for a C++...

    Maybe my application is non-standard for a C++ program. I'd be happy for 'new' to gracefully return a nullptr and let my code handle it. That's easy with this application, things would keep working...
  4. Thanks. Figures someone would have checked this...

    Thanks. Figures someone would have checked this before I did.
  5. How Should Teensy Respond if Dynamic Memory Can't be Allocated?

    It's a best practice to check if a request for dynamic memory allocation succeeded or failed. So, trying with a T3.2:

    Using malloc() I get the expected result if there's insufficient memory:
    ...
  6. See 'Adafruit_VL6180X.h' for the prototype of the...

    See 'Adafruit_VL6180X.h' for the prototype of the begin() function:

    boolean begin(TwoWire *theWire = &Wire)
    So, it defaults to using Wire, but that can be overridden by supplying a pointer to a...
  7. Replies
    14
    Views
    1,218

    (M)inimal (R)eproduceable (E)xample...

    (M)inimal (R)eproduceable (E)xample
  8. Replies
    14
    Views
    1,218

    Yes, it definitely appears related. Thanks.

    Yes, it definitely appears related.
    Thanks.
  9. Replies
    14
    Views
    1,218

    std::deque Won't Compile for Teensy 3.x

    Hi All. Really simple MRE here. Arduino / Teensyduino 1.8.15 / 1.54

    #include <Arduino.h>
    #include <deque>

    std::deque<uint8_t> myQueue;

    void setup() {
    myQueue.push_back(100);
    }
  10. What exactly do you mean by the "Audio Core"? How...

    What exactly do you mean by the "Audio Core"? How is it different than the Audio Library?
  11. First, a caveat. All my Audio Library experience...

    First, a caveat. All my Audio Library experience is with T3.x devices, never used a T4.x.

    That being said, the AudioInputI2Sslave is indeed capable of having responsibility for triggering the...
  12. Given the lack of requirements, specifications,...

    Given the lack of requirements, specifications, and other details, it's impossible to say.
  13. How do you propose to synchronize the sample rate...

    How do you propose to synchronize the sample rate transfer over SPI to the Audio Library's sampling rate (even if you use a lower rate)?
  14. Replies
    5
    Views
    1,055

    It looks like your setup has both the WM8804 and...

    It looks like your setup has both the WM8804 and the Audio Shield driving the I2S0_RSD0 input on the T3.2. You shouldn't connect two outputs to the same input.
  15. Replies
    5
    Views
    1,055

    Somebody has to be I2S master. Timing is set by...

    Somebody has to be I2S master. Timing is set by the S/PDIF source, so WM8804 must be in Master mode. Set up Teensy for I2S slave.
  16. Replies
    17
    Views
    3,003

    See Reply #6...

    See Reply #6 and Reply #7.
  17. Replies
    1
    Views
    603

    Snipping Tool

    Snipping Tool
  18. I see that I missed showing a connection in the...

    I see that I missed showing a connection in the circuit diagram from my post that you linked. The diagram should show that LRCLK connects to both Pins 23 and 29 on the T3.2. I did this because I...
  19. Replies
    13
    Views
    1,654

    I posted code for 64 * Fs Quad I2S master and...

    I posted code for 64 * Fs Quad I2S master and slave in my reply to your previous thread. You could use that as a starting point.
  20. Replies
    13
    Views
    1,654

    Why don't you just make your own version of...

    Why don't you just make your own version of i2s_quad that uses BLCK = 64 * Fs?
  21. Replies
    2
    Views
    564

    I used SPDIF I/O and Audio Board I2S I/O in this...

    I used SPDIF I/O and Audio Board I2S I/O in this project: https://forum.pjrc.com/threads/45394-SPDIF-Input-and-Output?highlight=toslink
  22. I was answering this question:

    I was answering this question:
  23. Replies
    24
    Views
    4,375

    Because I've never used S/PDIF on a T4.0. Or, in...

    Because I've never used S/PDIF on a T4.0. Or, in fact used T4.0. at all. Therefore, I won't make a recommendation based on it. I only recommend solutions that I'm 100% sure will work. I've used the...
  24. CORRECTION: In theory, you can have multiple...

    CORRECTION:
    In theory, you can have multiple devices connected to the same I2S output, assuming there's only one master and that the electrical parasitics of the connections don't degrade signal...
  25. Only one device at a time can be connected to an...

    Only one device at a time can be connected to an I2S input or output. So you can use the DAC part of the Audio Shield at the same time, but not the ADC.

    You can also use the chip's second I2S I/O...
  26. Replies
    4
    Views
    785

    I've only worked directly with SPI hardware on...

    I've only worked directly with SPI hardware on T3.x. On that family of processors I pretty sure the SPI clock setup doesn't offer the resolution you're looking for. That's why I suggested using one...
  27. Replies
    24
    Views
    4,375

    It seems to me that the problems of your 3...

    It seems to me that the problems of your 3 different threads posted here all stem from the same source --- attempting to use USB audio. Is that a requirement? Can Max/MSP (whatever THAT is) provide...
  28. Replies
    4
    Views
    785

    The SPI hardware is detailed in the appropriate...

    The SPI hardware is detailed in the appropriate chip datasheet: https://www.pjrc.com/teensy/datasheets.html
    I believe at least some of them offer the feature of a continuous clock.

    Using an FTM...
  29. I've successfully used this board with Teensy 3.2...

    I've successfully used this board with Teensy 3.2 / 3.6 and the Teensy Audio Library: https://www.amazon.com/gp/product/B07HHPJLWC/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
    It does both...
  30. Replies
    11
    Views
    1,455

    Before going too far down the road of trying new...

    Before going too far down the road of trying new hardware, you should take the divide and conquer approach to debug the problem. I'd replace the AudioInputUSB object with a couple of AudioPlayQueue...
  31. Replies
    11
    Views
    1,455

    * Your IntervalTimer interrupt may have a higher...

    * Your IntervalTimer interrupt may have a higher priority than the SWI that triggers all the audio class update() functions. That might cause some funny interactions if the former interrupts the...
  32. Replies
    13
    Views
    1,468

    If the shift register's latch input is LEVEL...

    If the shift register's latch input is LEVEL sensitive rather than EDGE sensitive, it might look more like this:

    #include <Audio.h>
    #include <SPI.h>
    #include <EventResponder.h>

    class...
  33. Replies
    13
    Views
    1,468

    Interesting problem. Actually, from the...

    Interesting problem. Actually, from the description it doesn't seem like @grinch needs to synchronize the SPI transfers to the Audio Library sample rate. Only the latch input of the shift register...
  34. Replies
    13
    Views
    1,468

    Thoughts: * Post the code you have. * Post...

    Thoughts:

    * Post the code you have.

    * Post a schematic

    * I'll bet you can nail the interrupt timing exactly by working with a PIT directly rather than indirectly with IntervalTimer (see...
  35. Replies
    13
    Views
    1,468

    Why don't you want to use DMA? That's what I'd...

    Why don't you want to use DMA? That's what I'd try first, using the same PDB timer method as the AudioOutputAnalog class.
  36. Replies
    35
    Views
    3,614

    Something like this will work on any Arduino...

    Something like this will work on any Arduino board and you won't have to resort to templates or lambdas:

    #include "Arduino.h"
    #include "OneButton.h"

    class NewButton: public OneButton {...
  37. Replies
    4
    Views
    993

    Assuming a Teensy 3.x, Pin 11 is I2s MCLK, Pin...

    Assuming a Teensy 3.x, Pin 11 is I2s MCLK, Pin 13 is I2S Din, and Pin 14 becomes SPI CLK. It's all documented on the Audio Board page.
  38. The WM8804-based board that I linked in the...

    The WM8804-based board that I linked in the thread that you referenced above supports both coax and optical S/PDIF input (as well as coax and optical S/PDIF output). It's reasonably priced and is...
  39. Reads / writes of 32-bit variables are atomic on...

    Reads / writes of 32-bit variables are atomic on a 32-bit ARM processor.
  40. Replies
    11
    Views
    1,594

    I find that the apparent setting hysteresis,...

    I find that the apparent setting hysteresis, drift, and lack of repeatability inherent in using pots outweighs other considerations. But, YMMV.
  41. Replies
    2
    Views
    519

    I'll take a look. Thanks.

    I'll take a look. Thanks.
  42. Replies
    2
    Views
    519

    SD Card on Arbitrary SPI Interface

    Hi all.

    So, the standard Teensy SD library nicely handles SPI-connected SD cards and the SDHC interface on T3.5 / T3.6. However, it's hard-coded to use the SPI instance of SPIClass (aka SPI0).
    ...
  43. Replies
    11
    Views
    1,594

    The State Table Approach...

    The State Table Approach nicely handles contact bounce as part of its algorithm.

    Here's one implementation that I wrote: https://github.com/gfvalvo/NewEncoder
  44. Replies
    11
    Views
    1,594

    I'd start by seeing if you have enough pins to...

    I'd start by seeing if you have enough pins to use rotary encoders instead of Pots. They produce much more stable and repeatable results. You might be able to do that by using pins on the T3.5's back...
  45. Actually, it will work perfectly if properly...

    Actually, it will work perfectly if properly implemented. It's done all the time in the digital telecom world. The "PLL" must synch the RX frequency exactly to the TX frequency --- but only on...
  46. @martianredskies, you should probably start a new...

    @martianredskies, you should probably start a new thread instead of hijacking this one. But yes, many of the Audio Library classes contain functions that are intended to be called from the main...
  47. Everything is Open Source. Just open the .h and...

    Everything is Open Source. Just open the .h and .cpp files for the objects of interest. It's all there to see.
  48. Replies
    6
    Views
    1,104

    I've found Agent Ransack...

    I've found Agent Ransack to be an invaluable tool for answering questions like this.
  49. Replies
    17
    Views
    3,003

    I'll have to take your word for it on the...

    I'll have to take your word for it on the difference between audio clips. I have no doubt that you hear it. It's just that such minutiae in audio isn't my thing. I'm more a "blink the lights to the...
  50. Replies
    15
    Views
    2,407

    No, I just used boards with InvenSense devices.

    No, I just used boards with InvenSense devices.
Results 1 to 50 of 428
Page 1 of 9 1 2 3 4