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

  1. Datasheet of the mems mic?

    Datasheet of the mems mic?
  2. Replies
    4
    Views
    487

    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
  3. Replies
    6
    Views
    458

    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...
  4. 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...
  5. 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...
  6. 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.
  7. Replies
    2
    Views
    487

    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...
  8. Replies
    40
    Views
    1,136

    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...
  9. Replies
    40
    Views
    1,136

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

    What are you interfacing to that needs so many interrupt inputs?
  10. 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...
  11. 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.
  12. Replies
    5
    Views
    282

    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....
  13. 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)
  14. Thread: Mushroom Music

    by MarkT
    Replies
    1
    Views
    192

    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...
  15. Replies
    7
    Views
    256

    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.
  16. Replies
    16
    Views
    379

    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
  17. Replies
    17
    Views
    2,562

    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.
  18. Replies
    39
    Views
    1,502

    Clearly visible 7.68MHz xtal, so good!

    Clearly visible 7.68MHz xtal, so good!
  19. Replies
    39
    Views
    1,502

    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?
  20. Replies
    39
    Views
    1,502

    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?
  21. 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...
  22. 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.
  23. 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.
    ...
  24. Replies
    39
    Views
    1,502

    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...
  25. 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...
  26. Replies
    1
    Views
    167

    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...
  27. 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...
  28. Replies
    23
    Views
    1,018

    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...
  29. Replies
    6
    Views
    340

    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...
  30. 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...
  31. Replies
    6
    Views
    340

    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.
  32. Replies
    3
    Views
    317

    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...
  33. 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...
  34. Replies
    6
    Views
    340

    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...
  35. 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.
  36. Replies
    3
    Views
    317

    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...
  37. 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...
  38. 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.
  39. Replies
    29
    Views
    923

    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?
  40. Replies
    29
    Views
    923

    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?
  41. Replies
    7
    Views
    193

    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...
  42. Replies
    4
    Views
    354

    Are you immediately decimating the signal(s)?

    Are you immediately decimating the signal(s)?
  43. Replies
    39
    Views
    4,485

    Two gains and multiplying are necessary in fact...

    Two gains and multiplying are necessary in fact :)

    You were looking for a cross-fade in particular, but didn't use that term, which I think helped sow confusion
    especially as we've been talking...
  44. Replies
    10
    Views
    914

    So no 3-phase induction motor? That's the...

    So no 3-phase induction motor? That's the ultimate challenge - easier with an encoder.

    Yes, a 4-quadrant motor controller needs a rail clamp circuit (braking circuit), that's pretty much...
  45. Replies
    39
    Views
    4,485

    Now I've even more confused - you said you didn't...

    Now I've even more confused - you said you didn't want multiplying or gain, and how you want a wet/dry control which necessarily
    has gains and therefore multiplying.

    Do you want :

    constrain...
  46. Replies
    39
    Views
    4,485

    I don't get your point - you have 10 bit unsigned...

    I don't get your point - you have 10 bit unsigned ADC data by the sound of it, but not using the Audio library (is there a deep reason for this BTW?), so clearly you have some other framework in mind...
  47. Replies
    39
    Views
    4,485

    constrain (a+b-511, 0, 1023) ;

    constrain (a+b-511, 0, 1023) ;
  48. Replies
    10
    Views
    914

    Interesting - not come across the DRV8301 before,...

    Interesting - not come across the DRV8301 before, seems quite complex but I can see the benefit of some of the protection features.

    What motors have you managed to drive?
  49. Replies
    5
    Views
    3,155

    https://www.pjrc.com/store/teensy40.html#timing

    https://www.pjrc.com/store/teensy40.html#timing
  50. Replies
    5
    Views
    332

    That page dates from the days when all Teensy's...

    That page dates from the days when all Teensy's were Atmel based, ie Teensy 1 and 2. Its specific to that hardware, so not relevant to T3's or T4's (which didn't exist when the page was written I...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4