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. The FFT output is always equally spaced frequency...

    The FFT output is always equally spaced frequency bins, nothing you can do to change that, you simply want
    to present that information recscaled logarithmically. For each x position map to an...
  2. Then you'll need to map your x coord to frequency...

    Then you'll need to map your x coord to frequency through an exponential function, and use that to decide which FFT bin corresponds
    to that frequency. And you'll probably want to interpolate...
  3. Replies
    80
    Views
    5,592

    I'm just trying to correct the common...

    I'm just trying to correct the common misconception about noise-floor measurements using the FFT - its very
    rarely appreciated that noise isn't measured the same as a single tone. Noise is measured...
  4. Replies
    80
    Views
    5,592

    Noise floor is measured as power spectral...

    Noise floor is measured as power spectral density, that plot is showing the power spectrum w.r.t. the loudest tone, so the
    -78dB isn't meaningful as a measure of noise, since changing the FFT number...
  5. These are CMOS isolators, not opto-isolators, so...

    These are CMOS isolators, not opto-isolators, so standard CMOS input and output behaviour. Outputs good to 4mA from
    what I can tell, fine for any logic input. The WS2812 input is just CMOS logic...
  6. Replies
    4
    Views
    187

    You do need sin to work reasonably on largish...

    You do need sin to work reasonably on largish arguments though, a classic example being in implementing sinc().
  7. Replies
    22
    Views
    313

    Well if you don't need well defined phase...

    Well if you don't need well defined phase response IIR filters are probably more straight-forward, and if you need several their coefficient
    arrays are _much_ more compact.

    For simple frequency...
  8. If you followed the forum rule, we might have...

    If you followed the forum rule, we might have solved this already. One thing to watch out for is correct block handling
    in the update() method, always checking for NULL blocks and releasing each...
  9. Replies
    2
    Views
    79

    Like switch-case?

    Like switch-case?
  10. Replies
    22
    Views
    313

    But do you need phase information?

    But do you need phase information?
  11. Replies
    8
    Views
    191

    Ah, I wasn't expecting a +/-15V preamp and +15V...

    Ah, I wasn't expecting a +/-15V preamp and +15V phantom, +48V is standard for phantom power, and a 5V rail to rail preamp would be
    more usual in a microcontroller context these days :)
  12. Replies
    8
    Views
    191

    Make them both a few k. Your phantom power...

    Make them both a few k.

    Your phantom power circuit will destroy the mike preamp, you don't have diode clamps to protect it from the 48V phantom-power switch transients.

    See the diodes here for...
  13. Replies
    22
    Views
    313

    BTW why use FIR for simple audio LP/BP/HP...

    BTW why use FIR for simple audio LP/BP/HP filtering? Do you actually need linear-phase?
  14. Replies
    8
    Views
    191

    The way to protect any CMOS chip from overvoltage...

    The way to protect any CMOS chip from overvoltage inputs is the standard resistor + 2 schottky clamps to the power/ground rails.
    However the audio shield doesn't include this on the line inputs -...
  15. Replies
    22
    Views
    313

    The documentation for the arm primitives notes a...

    The documentation for the arm primitives notes a restriction on scaling to prevent overflow - this might be why the 200 limit is there?
  16. If you use an array of uint8_t for the top 8...

    If you use an array of uint8_t for the top 8 bits, and pack the remaining bits into a subsiduary array you allow
    faster operations on the 8 MSBs of the data, which might sometimes be useful.
    ...
  17. Replies
    22
    Views
    313

    You'd have to edit filter_fir.h to change the...

    You'd have to edit filter_fir.h to change the #define FIR_MAX_COEFFS to be more than 200.

    Note the number of taps needs to be even and 4 or more to work with the ARM fir primitive used in...
  18. Replies
    2
    Views
    92

    Go to the Audio design tool and drag one of the...

    Go to the Audio design tool and drag one of the sgtl5000's into the frame, you get all the docs displayed.
    (It shows AUDIO_INPUT_LINEIN as the value to use)
  19. Replies
    2
    Views
    110

    You should be using a library that handles...

    You should be using a library that handles speed-ramping (acceleration) for steppers - this is essential to smooth operation
    of a stepper. The classic library is AccelStepper but there's the...
  20. Replies
    5
    Views
    163

    Hmm, that's odd - perhaps this PCB has some...

    Hmm, that's odd - perhaps this PCB has some hardware issue?
  21. Replies
    80
    Views
    5,592

    A bleeder resistor to ground on the outputs will...

    A bleeder resistor to ground on the outputs will ensure the output capacitors get charged up properly and avoid the loud crack/thump
    on plugging them into some external amplifier. Something like...
  22. Replies
    5
    Views
    163

    You should be calling codec.lineOutLevel (). the...

    You should be calling codec.lineOutLevel (). the volume method is for headphones only I'm pretty sure.
  23. Replies
    22
    Views
    313

    Both the low-pass and band-pass work perfectly...

    Both the low-pass and band-pass work perfectly for me on T4.0 + audio adapter. You are using the left channel for the low pass?

    Shouldn't make any difference
  24. Replies
    6
    Views
    139

    I'd suggest using sampling and auto-correlation...

    I'd suggest using sampling and auto-correlation if you can't rely on well-timed edges since auto-correlation is powerful at extracting
    signal from noise and doesn't care about phase distortion.
  25. DXF file format is typically used for 2D CAD,...

    DXF file format is typically used for 2D CAD, such as laser cutters and the like, so that's a candidate.
    The open source InkScape tool does SVG and can export to DXF and various other file formats....
  26. If use use Eagle then Sparkfun have a useful...

    If use use Eagle then Sparkfun have a useful gerber-generator CAM script for it, https://github.com/sparkfun/SparkFun_Eagle_Settings/tree/master/cam

    Some fab houses will accept Eagle .brd files...
  27. What bandwidth do you actually need for this -...

    What bandwidth do you actually need for this - the nRF24L01 only supports 250k/1M/2Mbaud, so its sensitivity is correspondingly poor.

    Sensitivity increases with narrower bandwidth, so if you only...
  28. Replies
    14
    Views
    198

    The speaker driver has to match the speaker...

    The speaker driver has to match the speaker enclosure, as they are both resonant systems and couple to each other.

    The surroundings are another thing entirely - typical rooms trap lower...
  29. Replies
    6
    Views
    139

    My approach to this problem is to use photo diode...

    My approach to this problem is to use photo diode in reverse-biased configuration (the fastest), and use a modified transimpedance
    amp configuration using multiple pn-diodes to produce a...
  30. Replies
    14
    Views
    198

    There's a rule of thumb for speakers - you can't...

    There's a rule of thumb for speakers - you can't have all three of these qualities, but at most two of them:

    1) small speaker enclosure
    2) high power efficiency
    3) good bass entension

    So the...
  31. Replies
    25
    Views
    3,304

    The standard biquad will do upto 8 poles of...

    The standard biquad will do upto 8 poles of arbitrary filtering, don't think there's anything to stop you creating an unstable filter using it, but
    offhand I've no idea if it behaves well when...
  32. Replies
    3
    Views
    98

    240mAh is a capacity rating, not a current...

    240mAh is a capacity rating, not a current rating. To figure out if the battery can source enough current
    you need to know the current rating.

    For many batteries you'll see a C value, indicating...
  33. Replies
    7
    Views
    298

    Here's one approach: First a filter layer to...

    Here's one approach:

    First a filter layer to generate extra noteOff and noteOn messages/calls to ensure the live note count is <= 5.

    Secondly a standard mapping from notes to oscillators which...
  34. no idea where you got that from. FFTs always...

    no idea where you got that from. FFTs always generate entire spectra.



    What frequency resolution do you want? The audio lib 1024-point FFT at 44100 samples/second has a bin size of 43Hz...
  35. Thread: Audio filter

    by MarkT
    Replies
    10
    Views
    447

    That 8 pole bandpass will be very peaky as all...

    That 8 pole bandpass will be very peaky as all the poles are coincident, leaving gaps between the
    centre frequencies. It might be an idea to derive standard Butterworth poles if you want a...
  36. Thread: freeverb noise ?

    by MarkT
    Replies
    13
    Views
    402

    Is this simply a consequence of 16 bit...

    Is this simply a consequence of 16 bit intermediate results in the freeverb object? 16 bits is enough for a signal, but not usually
    sufficient for complex processing of signals as...
  37. Replies
    18
    Views
    491

    The FFTs in the audio lib are 256 and 1024 point,...

    The FFTs in the audio lib are 256 and 1024 point, locked to the sample rate.

    One FFT can do the full frequency analysis, then you would apply different frequency windows on
    the results to sum...
  38. Replies
    17
    Views
    361

    General use, NE5532, great all-round performance,...

    General use, NE5532, great all-round performance, very cheap, although its not the best for a low impedance source. For
    low voltage rail-to-rail the situation changes all the time, but anything...
  39. Replies
    17
    Views
    361

    That's noisy for a studio mic, 10--15dB is more...

    That's noisy for a studio mic, 10--15dB is more reasonable. At 1m distance you are in studio conditions, and not being a mobile phone mic - there's
    perhaps 20 to 30dB path-loss from moving the mic...
  40. Replies
    5
    Views
    241

    The voltage levels for the chip's I2C bus look to...

    The voltage levels for the chip's I2C bus look to be for 5V logic, not necessarily reliable at 3.3V, note - this
    must be an old design...

    Don't forget the input bleeder resistors. I'd add RF...
  41. Replies
    4
    Views
    212

    Its possible to sum two PM/FM signals to get SSB...

    Its possible to sum two PM/FM signals to get SSB (or any QAM modulation)

    The average phase of the two phase modulators is selected to match the wanted instantaneous
    phase, the cosine of half the...
  42. Replies
    4
    Views
    236

    Not sure cross-posting is helping - this is an...

    Not sure cross-posting is helping - this is an audio library related issue!
  43. the code in AudioPlaySDWav seems to do the right...

    the code in AudioPlaySDWav seems to do the right thing on stopping, so should be sending zeroes when not playing,
    so the clicks are likely to be the actual samples in the files being offset? Have...
  44. Replies
    17
    Views
    361

    The solution may be to get a decent microphone as...

    The solution may be to get a decent microphone as well as decent amp in that case :)
  45. Slightly more advanced you can add a bleed...

    Slightly more advanced you can add a bleed resistor and RF filtering:
    22883

    The 100pF caps would be ceramic and as close to the input socket/connector as possible - if you have severe
    problems...
  46. It vital to prevent out-of-range voltages hitting...

    It vital to prevent out-of-range voltages hitting any pin - this can instantly destroy the chip, or if lucky just that pin.

    And for an ac signal you must level-shift it to midrail to see the whole...
  47. Replies
    4
    Views
    236

    Clicks normally indicate the idle-mode output...

    Clicks normally indicate the idle-mode output sample is not zero. But as you haven't followed the forum rule, who knows?
  48. Replies
    2
    Views
    357

    Is there a master contactor or emergency stop...

    Is there a master contactor or emergency stop switch?
  49. Replies
    8
    Views
    358

    Need to see all the changes, not just the...

    Need to see all the changes, not just the highlights. Is there a git branch for this? The declaration of
    the variable ph64 is crucial to understanding this code.

    BTW you should move the switch...
  50. Replies
    17
    Views
    361

    The MAX4466 is _incredibly_ noisy(*) at 80nV/√Hz,...

    The MAX4466 is _incredibly_ noisy(*) at 80nV/√Hz, completely not a microphone preamp, but sold as such.
    This is the problem with using a micro-power device, the other specifications are usually...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4