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

    From my reading of the code yes, but why not...

    From my reading of the code yes, but why not actually try it to be sure?
  2. Replies
    5
    Views
    86

    In general using a delay style function will be...

    In general using a delay style function will be inaccurate as it only accounts for time in the delay call,
    not time outside it. If there were a nanos() call (which could be useful for the T4 ...)...
  3. "The CPU values are in percent" means the units...

    "The CPU values are in percent" means the units are percent. So 0.59 means 0.59%, or as a fraction 0.0059 of the time.

    2,4 means 2 blocks live last time, 4 blocks live being the maximum ever...
  4. Replies
    4
    Views
    101

    Just do biquad.setBandpass(0,1000,1); ...

    Just do

    biquad.setBandpass(0,1000,1);

    again. Each stage definition will terminate the string of filter stages unless it is for a stage one more than the last one,
    so redefining the first...
  5. Replies
    4
    Views
    139

    I'd suggest starting with a good tutorial on...

    I'd suggest starting with a good tutorial on state machines, this is rather lengthy but looks to be a good guide:
    https://barrgroup.com/Embedded-Systems/How-To/State-Machines-Event-Driven-Systems
    ...
  6. The CPU values are percent, so if there was an...

    The CPU values are percent, so if there was an overload it would have to be in the low-level
    DMA interrupt(s). From the low and constant value is suggests no processing is done in
    the Audio...
  7. Replies
    9
    Views
    228

    I'm pretty sure I can see a solder short in the...

    I'm pretty sure I can see a solder short in the third image, one of the top pin row has a little blip
    of solder over the horizontal bus trace?
  8. Replies
    4
    Views
    139

    Figure out the states you need to represent this,...

    Figure out the states you need to represent this, I think you probably need:

    IDLE
    PRESSED
    PRESSED_LONG

    Use a variable to explicitly record the current state so you can respond to the...
  9. Replies
    7
    Views
    113

    I think the 4mA is the max nominal output drive...

    I think the 4mA is the max nominal output drive current setting for a pin - not the abs max current you can actually draw - I can't
    remember seeing that in the datasheet when I was looking.
  10. Replies
    7
    Views
    139

    The issue I see from the videos seems to involve...

    The issue I see from the videos seems to involve speckling and artifacts that might be to do with
    the colour mapping, doesn't seem to be just shape issues. It also might not be resampling suitable...
  11. Replies
    7
    Views
    139

    Forum rule?

    Forum rule?
  12. Each interrupt can capture the timestamp when it...

    Each interrupt can capture the timestamp when it fires, the main code can wait for these to change and take the
    difference perhaps?
  13. Replies
    7
    Views
    139

    can you be specific as to what is happening?...

    can you be specific as to what is happening?
    Pics perhaps?

    Forum rule?
  14. Replies
    4
    Views
    111

    I think this page is what you want for separate...

    I think this page is what you want for separate powering:
    https://www.pjrc.com/teensy/external_power.html

    if everything's 5V and not needing lots of current this is usually simple, use one...
  15. Replies
    4
    Views
    111

    The ATmega32u4 datasheet says absolute maximum...

    The ATmega32u4 datasheet says absolute maximum 40mA per pin.

    But input pins take no current(*), provided the voltage is within the supply rails, which it should be
    if the switch / pot in question...
  16. Use whatever Vcc you have. Most people wouldn't...

    Use whatever Vcc you have. Most people wouldn't bother and just use internal pullups - it that's unreliable there
    might be some benefit from small caps. (Note the issue is not normally a problem...
  17. Replies
    9
    Views
    340

    Perhaps the alignment optical feedback system...

    Perhaps the alignment optical feedback system isn't programmed for the connector, or there are reflection/glare
    issues - good pick-and-place machines finalize the orientation and position using a...
  18. Have you used...

    Have you used AudioProcessorUsage/AudioProcessorUsageMax/AudioMemoryUsage/AudioMemoryUsageMax?
    Always worth chucking this in when experimenting:



    void loop ()
    {
    static unsigned long...
  19. Replies
    12
    Views
    252

    actually yes I believe so - arm_q15_to_flt...

    actually yes I believe so - arm_q15_to_flt perhaps? Something like that.

    I was assuming so given the use of floats...
  20. It would indeed be feasible for the envelope -...

    It would indeed be feasible for the envelope - the "mult_hires" variable in AudioEffectEnvelope is a fixed point 2.30
    value you could sample with an extra method.

    For the waveform itself the...
  21. Replies
    12
    Views
    252

    Dividing by a constant is likely slower than...

    Dividing by a constant is likely slower than multiplying by the reciprocal -


    const float recip = 1.0f/INT16_MAX ;

    ...
    blockFloat[i] = blocka->data[i] * recip;

    I'm not sure if the...
  22. Replies
    8
    Views
    223

    Some plastic film are stacked, some are wound,...

    Some plastic film are stacked, some are wound, and some wound types can be much more inductive and
    not likely to be much use for high speed decoupling.

    Standard practice is MLCC for high speed...
  23. Replies
    9
    Views
    220

    14 bit resolution for CC is perfectly possible -...

    14 bit resolution for CC is perfectly possible - it takes more bytes on the wire of course which can be an issue,
    and the MIDI sender has to know to use the 14 bit extensions for the controls in...
  24. Replies
    25
    Views
    560

    I suspect the residual noise from slewing is...

    I suspect the residual noise from slewing is because its only a 1st-order correction to the previously discontinuous gain
    changes - the derivative of the gain still has discontinuities at the start...
  25. Replies
    10
    Views
    234

    Forum rule?

    Forum rule?
  26. Some metal components are actually available with...

    Some metal components are actually available with kapton tape pre-fitted - its the industry-standard way to fix this kind of issue ;)
  27. 345Hz is the rate of audio blocks in the audio...

    345Hz is the rate of audio blocks in the audio lib, could that "320Hz" actually be 345Hz?
    If so I suspect some problem like insufficient AudioMemory - certainly posting your code would
    allow...
  28. Replies
    12
    Views
    296

    You'll need the audio lib to run at 96kSPS from...

    You'll need the audio lib to run at 96kSPS from what you say, and have a bespoke version of AudioOutputUSB
    that decimates its input by 2 to drive out at 48kSPS

    Or just use 96kSPS throughout, I...
  29. Replies
    3
    Views
    118

    Do you have a hot-air rework station? Without...

    Do you have a hot-air rework station? Without that it may be difficult to successfully reattach to the PCB - and
    even so you'd need to be very careful about temperature as these plastic parts will...
  30. Replies
    12
    Views
    296

    Are you changing AUDIO_BLOCK_SAMPLES? Presumably...

    Are you changing AUDIO_BLOCK_SAMPLES? Presumably you've set AUDIO_SAMPLE_RATE_EXACT to 48000.0 ?
    Are you expecting to run the Audio lib at 96 or 48kSPS?
    Do you want good anti-aliasing performance...
  31. Replies
    16
    Views
    1,143

    That's a distortion effect, not a compression...

    That's a distortion effect, not a compression effect. To compress you need to use a linear response whose gain
    varies over time at scales longer than 50ms. (possibly several independent sections...
  32. True but the page refers you to a double...

    True but the page refers you to a double insulator spaced 14 pin strip designed specifically to provide
    good spacing: https://www.pjrc.com/store/header_14x1_d.html
  33. Replies
    8
    Views
    296

    Some quadrature encoders have sin/cos analog...

    Some quadrature encoders have sin/cos analog output between the digital counts for much finer
    precision and smoother velocity sensing.
  34. Those dupont male header strips are designed to...

    Those dupont male header strips are designed to be used with female dupont headers and that provides 1/2" clearance.
    It seems you've just used the male headers as permanent board-to-board connector.
  35. Replies
    11
    Views
    228

    My thoughts: no fuse on the +ve from the battery...

    My thoughts: no fuse on the +ve from the battery is bad news - these batteries can source vast currents on a fault condition.

    You try to power a boost converter (which contains an inductor) from...
  36. Replies
    8
    Views
    296

    AC millivolt settings on a multimeter may be...

    AC millivolt settings on a multimeter may be severely band-limiting to a few 100 Hz or low kHz - AC on a multimeter
    is designed for mains, definitely not for measuring broadband noise.

    Noise...
  37. Replies
    25
    Views
    560

    Another approach to reducing this zipper noise...

    Another approach to reducing this zipper noise (as its called - its also happens in hardware if you
    use digital potentiometer chips) is to do zero-crossing synchronization - any pending gain change...
  38. Replies
    7
    Views
    381

    The clock pin is the most important to provide...

    The clock pin is the most important to provide solid ground returns for, as glitches on a clock line definitely cause problems,
    whereas data lines are often sampled away from clock edge times.
  39. Replies
    490
    Views
    54,700

    Also not that the silicon process for low-power...

    Also not that the silicon process for low-power high speed CMOS is not necessarily ideal for a high performance
    sigma-delta modulator which is essentially a precision analog piece of circuitry. ...
  40. That code really needs to be rewritten using...

    That code really needs to be rewritten using arrays....
  41. Replies
    3
    Views
    406

    I wouldn't touch the encoder pins in setup(), let...

    I wouldn't touch the encoder pins in setup(), let the encoder library set them up, you may have stomped all
    over the libraries attempt to configure those pins suitably for interrupts.
  42. The order errors are reported is dependent on the...

    The order errors are reported is dependent on the way the compiler crawls the parse tree in its various analysis and
    code-generation phases - don't read anything into this.
  43. Replies
    18
    Views
    433

    You're probably not getting the full 12 ENOB from...

    You're probably not getting the full 12 ENOB from a 12 bit converter in the first place, combining two DACs is unlikely
    to be any better than one. If they could get more than 12 bits of accuracy...
  44. SCL2/SDA2 are not alternates for SCL1/SDA1, they...

    SCL2/SDA2 are not alternates for SCL1/SDA1, they are a different hardware module, I think its Wire1 as opposed to Wire,
    but double check please. Alternates are multiplexed to the same hardware...
  45. Actually there is no need for a lookup table for...

    Actually there is no need for a lookup table for fast sine generation - there are several schemes for harmonic oscillators
    using only a couple of multiples and adds. They are a little tricky...
  46. Replies
    14
    Views
    542

    The PT8211 datasheet shows the distortion...

    The PT8211 datasheet shows the distortion performance is about 9 or 10 bits equivalent with 0.1 to 0.3%
    being quoted (around -60..-50dB) depending on how close to the full-scale you venture. Its...
  47. Memory allocators are allowed to break the rules...

    Memory allocators are allowed to break the rules as the objects are not "live" when they are in freelists (one hopes!)
    In a full-blown garbage collector you normally have to completely subvert any...
  48. Replies
    2
    Views
    145

    The analog pins for the T4.1 are 14--27 and 38-41...

    The analog pins for the T4.1 are 14--27 and 38-41 according to the info card with the pinouts. You are using
    pin 11 which is digital only.
  49. Replies
    92
    Views
    8,645

    You're results from peak1.read() are spurious...

    You're results from peak1.read() are spurious unless you first check peak1.available().

    I've had a play with the example and I see only zeroes coming out - this is likely EMI on the rails...
  50. Replies
    5
    Views
    235

    That tool is only a convenience and is not...

    That tool is only a convenience and is not required at all to build Audio lib programs. Find one of the example programs for the
    Audio library such as...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4