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

Search:

Type: Posts; User: MarkT

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    101

    And thinking some more it may be that most of the...

    And thinking some more it may be that most of the time in your interrupts is register dumping and restoring - can you make the ISR just write the value to the buffer and do nothing else, without...
  2. Replies
    3
    Views
    101

    One way to debug interrupts is use a digital pin...

    One way to debug interrupts is use a digital pin (with fast writes or low-level register manipulation) so you can monitor the entry/exit using a 'scope.
  3. With the loop that's not what I call 'empty', its...

    With the loop that's not what I call 'empty', its busy-looping, stealing the CPU until pre-emption occurs.
  4. Replies
    6
    Views
    147

    Some frequency to voltage converters might be one...

    Some frequency to voltage converters might be one approach, then you can use ADC inputs.
  5. Replies
    20
    Views
    770

    The FFT is not a panacea - this sounds more like...

    The FFT is not a panacea - this sounds more like a problem for correlation/convolution techniques. (Having said that you can use the FFT to implement fast correlation/convolution, even with...
  6. Replies
    3
    Views
    173

    I think you just have to hold off reporting...

    I think you just have to hold off reporting noteOff to the envelope till isSustain() returns true. The releaseNoteOn parameter may also have an effect on this behaviour.
  7. Replies
    2
    Views
    116

    Piezoelectric crystals are current sources...

    Piezoelectric crystals are current sources (strictly speaking charge sources), so you can just put a low value resistor across the output to reduce the output voltage. Without any load they drift a...
  8. Replies
    3
    Views
    190

    This might be that you are grounding the...

    This might be that you are grounding the _headphone_ output "ground" pin - you mustn't do this, its not at ground potential at all.

    If that's not the issue (the line ground pin should be OK), the...
  9. The step down regulator is likely the predominant...

    The step down regulator is likely the predominant source of the noise (I presume its a switch-mode converter). I suggest using a clean supply for the amplifier not shared with anything digital. ...
  10. Datasheet of the mems mic?

    Datasheet of the mems mic?
  11. Replies
    4
    Views
    546

    Most encoders are open-collector, so try changing...

    Most encoders are open-collector, so try changing


    pinMode(ChannelA_LEFT, INPUT);
    pinMode(ChannelB_LEFT, INPUT);
    pinMode(ChannelA_RIGHT, INPUT);
    pinMode(ChannelB_RIGHT, INPUT);

    to
  12. Replies
    6
    Views
    493

    You don't want sharp edges with a graphic...

    You don't want sharp edges with a graphic equalizer normally, you want smooth transitions. The Q of the individual stages needs to match their geometric spacing. Sounds like you have one control...
  13. Well it appears to be a variable low pass filter...

    Well it appears to be a variable low pass filter and a power amp output. The LM386 hasn't been made for years, doubt you'll find one that's not a fake, perhaps a small class-D chip would be a...
  14. The fast I2S signals (especially MCLK) might not...

    The fast I2S signals (especially MCLK) might not be reliable with long jumpers like this, especially with all that loop area - bundle them all together if you can to improve signal quality. A large...
  15. If you use only the full voltage from the battery...

    If you use only the full voltage from the battery and buck converter(s) you'll be able to change to a different power
    source flexibly, as well as not unbalancing the cells.
  16. Replies
    2
    Views
    499

    Stencils are designed to be stretched taut in a...

    Stencils are designed to be stretched taut in a stencil frame, the fact the stainless came off a roll (which is why they
    have a curve) wouldn't normally cause issues used with a frame (might make...
  17. Replies
    40
    Views
    1,183

    Perhaps a link to the datasheet for the parts in...

    Perhaps a link to the datasheet for the parts in question? - better than trying to guess what "high definition"
    might mean to you, 1000 PPR, 10000 PPR, or even more?

    How many encoders are likely...
  18. Replies
    40
    Views
    1,183

    What are you interfacing to that needs so many...

    What are you interfacing to that needs so many interrupt inputs?
  19. Python3 bytestrings are not the same as unicode...

    Python3 bytestrings are not the same as unicode strings (Python3 strings are unicode). A bytestring is notated b'xxxxxxxx'
    Python3 strings can be interconverted <-> bytestrings if you give the...
  20. IIR isn't used for oversampling normally due to...

    IIR isn't used for oversampling normally due to the phase error, and the fact polyphase FIR filters can be _much_ faster.
  21. Replies
    5
    Views
    309

    ILI9341 is a chip, not the actual TFT display. ...

    ILI9341 is a chip, not the actual TFT display. This sort of thing is why you should try to find something with a decent datasheet.

    I'm sure there's a lot of difference between different displays....
  22. What bit depth are you assuming? Why double...

    What bit depth are you assuming? Why double floats if only sampling 16 bits (the Audio lib is 16 bit)
  23. Thread: Mushroom Music

    by MarkT
    Replies
    1
    Views
    206

    No, those signals are way too small to be fed...

    No, those signals are way too small to be fed direct to the ADC and get anything meaningful out.

    An instrumentation amp is probably the way to go, though you'd need to ensure the potentials fall...
  24. Replies
    7
    Views
    270

    Forum rule? This is a software problem I think,...

    Forum rule? This is a software problem I think, the dropout is one audio block I suspect, ie 2.9ms, although
    your 'scope shots omit timebase info so that's a guess.
  25. Replies
    16
    Views
    410

    The pin probably has bus-hold enabled. See...

    The pin probably has bus-hold enabled.

    See this thread:
    https://forum.pjrc.com/threads/69671-Teensy-4-0-4-1-web-pages-need-a-warning-about-INPUT_DISABLE-on-Analog-Inputs?highlight=bus-keeper
  26. Replies
    17
    Views
    2,616

    Just to clarify, 400kHz. 2.5Ás clock cycle, not...

    Just to clarify, 400kHz. 2.5Ás clock cycle, not 2.5ns! 100kHz and 400kHz are the commonest I2C rates.
  27. Replies
    39
    Views
    1,629

    Clearly visible 7.68MHz xtal, so good!

    Clearly visible 7.68MHz xtal, so good!
  28. Replies
    39
    Views
    1,629

    Well you have the circuit... Can you post the...

    Well you have the circuit... Can you post the schematic? Is this a module? Does it have a xtal on it?
  29. Replies
    39
    Views
    1,629

    I second that - its essential for a sigma-delta...

    I second that - its essential for a sigma-delta chip like this has a good quartz-controlled clock - is it actually running at 7.68MHz?
  30. When begin_v2_b2() returns all the audio objects...

    When begin_v2_b2() returns all the audio objects have their destructors called and cease to exist. This won't be useful, and won't
    work at all because audio objects that do I/O set up DMA and...
  31. That's the point - the signal "bypasses" the...

    That's the point - the signal "bypasses" the diodes unless the input voltage strays out of range, in which case one of the diodes
    conducts and clamps the voltage.
  32. Two Schottky diodes and a Teensy (or any CMOS...

    Two Schottky diodes and a Teensy (or any CMOS logic chip at all). This is the standard voltage protection - for surface mount people
    generally use a dual Schottky in a SOT23 package for this.
    ...
  33. Replies
    39
    Views
    1,629

    To get precision timing the #SYNC line probably...

    To get precision timing the #SYNC line probably should be driven in hardware from, say, a PWM output set to the right speed.
    Then the code to read the data can be interrupt driven from #DRDY going...
  34. Zeners are not really the answer (they can have...

    Zeners are not really the answer (they can have pretty soft knees in their response too), the way to do this is with a pair
    of Schottky diodes to the rails and a series resistor:

    28183

    The...
  35. Replies
    1
    Views
    182

    I believe the range depends on which FFT window...

    I believe the range depends on which FFT window is used as they are not normalized for level IIRC.

    Perhaps connect a AudioSynthWaveformSine into AudioAnalyzeFFT1024 to find out? A full-scale...
  36. 20MHz is just about doable on a breadboard, but...

    20MHz is just about doable on a breadboard, but you must use good layout - short direct cut-to-length wires, form a ground-plane
    (well, ground-grid) using regularly spaced ground links. Decoupling...
  37. Replies
    23
    Views
    1,097

    Maybe use star-grounding for the various power...

    Maybe use star-grounding for the various power supplies? I see several loops in the ground including high-current paths, which isn't a
    great plan. Try to ensure any signal wire only runs alongside...
  38. Replies
    6
    Views
    359

    The audio shield socket does not have microphone...

    The audio shield socket does not have microphone connection, and is definitely intended for a TRS cable. If you need a microphone connection
    you'll need a splitter.

    Thinking about the SGTL5000...
  39. A 'scope allows you to check the signal integrity...

    A 'scope allows you to check the signal integrity on the bus - needs to be reasonable bandwidth for high speed logic, 100MHz+ really.
    This is the sort of problem a logic analyzer will not help with...
  40. Replies
    6
    Views
    359

    Do you have a TRS-TRS cable? Try that in the...

    Do you have a TRS-TRS cable? Try that in the first instance, shouldn't be any issues.
  41. Replies
    3
    Views
    336

    The band limited waveforms are a succession of...

    The band limited waveforms are a succession of step functions, at arbitrary timing, so its a little different from a succession of
    samples so I fear the code won't translate well. There are...
  42. Are you sure the T4.1 pins have enough fan-out...

    Are you sure the T4.1 pins have enough fan-out for that may loads at high speed? This sounds like a case for a high-current logic buffer, or a distribution-tree (T4 drives 4 buffers, each drives 5...
  43. Replies
    6
    Views
    359

    You probably have some CTIAOMTP adapter cables...

    You probably have some CTIA<->OMTP adapter cables then, which are have different pinouts at the two ends.

    I'd stick to TRS (3-pole) 3.5 lead for standard audio (as opposed to computer/phone...
  44. The easiest way is to add a recursion count - if...

    The easiest way is to add a recursion count - if you recurse more times than the number of clocks you know you are on a cycle.
  45. Replies
    3
    Views
    336

    Playing a sampled waveform back at various...

    Playing a sampled waveform back at various different rates is a problem of interpolation or decimation, ie rate-conversion.

    Straight IIR and FIR filters only work when the input sample rate is the...
  46. The address is local to the bus, its set in the...

    The address is local to the bus, its set in the hardware of the device. If you have a device that doesn't allow selection of alternate I2C addresses you have to use multiple busses or an I2C...
  47. It seems that example only scans using the Wire...

    It seems that example only scans using the Wire object (SCL0/SDA0), not Wire1 (SCL1/SDA1).

    Seen: https://github.com/nox771/i2c_t3 - its mentioned on the Wire library page.
  48. Replies
    29
    Views
    983

    You know the Teensy runtime already sets up the...

    You know the Teensy runtime already sets up the clocking before setup() is called? You may be misconfiguring things
    if using a code example that's designed to run from reset state?
  49. Replies
    29
    Views
    983

    Do you have a link to the document in question?...

    Do you have a link to the document in question?
    And you've taken note of the forum rule?
  50. Replies
    7
    Views
    215

    Vehicle supplies are very noisy and spikey -...

    Vehicle supplies are very noisy and spikey - normally you'd have filtering / clamping circuitry to tame this.
    https://www.avrfreaks.net/forum/automotive-power-suppy-filtering

    I2C is indeed...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4