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

Search:

Type: Posts; User: jcarruthers

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    79
    Views
    8,935

    Thanks @luni — I guess in real terms the library...

    Thanks @luni — I guess in real terms the library doesn’t really need the power of 4.0
  2. Replies
    79
    Views
    8,935

    @luni — just wondering if the library will work...

    @luni — just wondering if the library will work with the new Teensy 4.0
  3. Replies
    7
    Views
    1,448

    My main reasoning here is that the 1V2 internal...

    My main reasoning here is that the 1V2 internal reference is less noisy than the 3V3 — if that's not the case then I'm not so worried.
  4. Replies
    7
    Views
    1,448

    Hmmmm... But I can't use 3V3 for the pots and...

    Hmmmm...

    But I can't use 3V3 for the pots and 1V2 for the other inputs. And more so, cannot use 3V3 for the inputs and 1V2 with the DAC.
  5. Replies
    4
    Views
    1,198

    No way*—*APA102s are wayyyyyyyy faster thann...

    No way*—*APA102s are wayyyyyyyy faster thann WS2812.
  6. Replies
    7
    Views
    1,448

    Internal reference

    All,


    When using the ADC and DAC — I presume the internal reference is pretty much always preferable over the 3V3?

    Along with various inputs and DAC outputs, I have pots on my board that are...
  7. Replies
    2
    Views
    647

    Hi Paul, Sorry, I should have done this in...

    Hi Paul,


    Sorry, I should have done this in the first place.

    I've checked the inputs and outputs manually — and they're working fine.



    #include <Audio.h>
  8. Replies
    2
    Views
    647

    ADCS object and T3.6

    Hi all,


    Does the ADCS object work with 3.6?

    I don't seem to be able to get it to work.


    James
  9. Replies
    7
    Views
    6,035

    Updated the part to correct this a while back —...

    Updated the part to correct this a while back — just found this reply.

    Hopefullly it's right this time but I haven't used the extended version on a board yet.


    James
  10. Replies
    4
    Views
    1,269

    WAV playback — but synth stuff would be useful...

    WAV playback — but synth stuff would be useful too.

    I don't mind slightly lo-fi.


    James
  11. Replies
    4
    Views
    1,269

    Thanks @MickMad That all sounds about right. ...

    Thanks @MickMad

    That all sounds about right.

    Simplicity is reasonably important to me — so being able to do it with a quad opamp would be good.
  12. Replies
    1,558
    Views
    517,363

    Thanks Frank!

    Thanks Frank!
  13. Replies
    4
    Views
    1,269

    Filter for on-board Teensy 3.6 DACs

    Hi all,


    Does anyone have any advice/suggestions on suitable filters for the on-board DAC?

    Butterworth/bessel/sallen-key etc

    I'm drawing up a board to help me play with the Teensy and a...
  14. Replies
    1,558
    Views
    517,363

    Hi Frank — is there a schematic for the audio out...

    Hi Frank — is there a schematic for the audio out filter?
  15. Replies
    1,558
    Views
    517,363

    Doh —*in messing around getting those images to...

    Doh —*in messing around getting those images to show up I deleted the zip file —*sorted now
  16. Replies
    1,558
    Views
    517,363

    Totally — and it makes total sense when it's on a...

    Totally — and it makes total sense when it's on a breadboard — but this is for an Eagle device.

    Assuming the USB host will do midi at some point I already have an idea for something I want to make...
  17. Replies
    1,558
    Views
    517,363

    I've updated the Eagle devices I made in this...

    I've updated the Eagle devices I made in this post: https://forum.pjrc.com/threads/34808-K66-Beta-Test?p=114719&viewfull=1#post114719

    Enjoy!
  18. Replies
    1,558
    Views
    517,363

    I don't see why you wouldn't break that out to...

    I don't see why you wouldn't break that out to socket? Or are the pins not the standard 0.1"?
  19. Replies
    1,558
    Views
    517,363

    Ok — that's cool — make sure you include the...

    Ok — that's cool — make sure you include the disclaimer! I'll PM you when I've made the simplified version.
  20. Replies
    1,558
    Views
    517,363

    Hi all, Here are a couple of Eagle devices...

    Hi all,


    Here are a couple of Eagle devices for 3.5/3.6.

    Let me know if anyone has any thoughts on improvements etc

    I've listed the different pins but only the primary ones —*for instance...
  21. Thanks! I've set it up like this: ...

    Thanks!

    I've set it up like this:



    adc->setReference(ADC_REF_3V3, ADC_0);
    adc->setReference(ADC_REF_3V3, ADC_1);

    adc->setResolution(16, ADC_0);
  22. So I'm being silly here... If I do this... ...

    So I'm being silly here...

    If I do this...



    ADC::Sync_result result = adc->analogSyncRead(A2, A3);
    in = result.result_adc0;
    analogWrite(A14, in);
  23. Replies
    1
    Views
    650

    ADC reading oddity

    Hi all,


    So I have a self-built Teensy "3.1" and am having some issues with analog in. I know that this has worked fine before when I've been using a standard premade Teensy. So I am not sure...
  24. Replies
    25
    Views
    4,176

    Hi Paul, Doesn't seem to make a difference....

    Hi Paul,


    Doesn't seem to make a difference.

    Did you note the adjustments I made to the Audio library above?


    James
  25. Replies
    2
    Views
    1,032

    Great! It was just the CS in the wrong place...

    Great! It was just the CS in the wrong place —*was using 10.

    All sorted — thanks Manitou!
  26. Replies
    25
    Views
    4,176

    Hi Paul, I did install the latest SD library...

    Hi Paul,


    I did install the latest SD library and uncomment that line —*it certainly improved what I was trying to do before.

    I'll double check when I get home.


    James
  27. Replies
    2
    Views
    1,032

    SerialFlash w/ Winbond 25Q80BV

    Reading another thread I presume that this chip works with the library.

    I get this when running the hardware test:



    Raw SerialFlash Hardware Test

    Read Chip Identification:
    JEDEC ID: ...
  28. Replies
    25
    Views
    4,176

    Makes sense. The odd thing is it will often...

    Makes sense.

    The odd thing is it will often work for a bit and then crash.

    And sometimes only on one object.

    So I wonder if there is a way to prod it back to life.
  29. Replies
    25
    Views
    4,176

    I've been playing with my code a bit more and...

    I've been playing with my code a bit more and found that setting a low buffer seems to make the Teensy audio library crash when you hit it with a lot of .play() really quickly. Usually leaving only...
  30. Replies
    25
    Views
    4,176

    Changing AUDIO_BLOCK_SAMPLES to 16 in the core...

    Changing AUDIO_BLOCK_SAMPLES to 16 in the core AudioStream.h file gives me a latency of around 1.5ms

    Changing to 32, 64 etc does as expected and increases it proportionally.

    Is there any way of...
  31. Replies
    25
    Views
    4,176

    If fat is slowed down by addressing etc - how...

    If fat is slowed down by addressing etc - how about copying it from FAT and in to the last few Mb of the SD card using the direct SD read library?
  32. Replies
    25
    Views
    4,176

    Frank - so am I not gaining anything by not...

    Frank - so am I not gaining anything by not opening every time?

    Mxxx - I just commented out the .close()

    Linuxgeek - the sample is very short and finishes before it gets triggered again
  33. Replies
    25
    Views
    4,176

    As seen here: 4547

    As seen here:

    4547
  34. Replies
    25
    Views
    4,176

    So as expected, it now gives me a minimum of 6ms...

    So as expected, it now gives me a minimum of 6ms latency — maximum of 8.5ms or so.

    The latency progressively gets smaller until it gets to 6ms at which point it jumps back to 8.5ms. Presume this...
  35. Replies
    25
    Views
    4,176

    We already have a playing state - so that is...

    We already have a playing state - so that is covered. Don't think there is a need to make a differentiation between stopped and paused.

    I reckon it's best not to make any assumptions of what is...
  36. Replies
    25
    Views
    4,176

    True, best not to break the current model. ...

    True, best not to break the current model.

    Maybe then add an open(filename) and a play() — alter play(filename) to use the open(filename) if there isn't a file already loaded.
  37. Replies
    25
    Views
    4,176

    Cheers. I didn't have time to look at this...

    Cheers. I didn't have time to look at this yesterday.

    The more I think about it the more sense it makes to follow SD card conventions and have open() close()

    Then play() and pause() don't do...
  38. Replies
    25
    Views
    4,176

    I'll start by expanding play(char filename) to...

    I'll start by expanding play(char filename) to also just play() — and add a load(char filename) that doesn't play.
  39. Replies
    25
    Views
    4,176

    Just doing and "rawfile = SD.open("file.raw")...

    Just doing and "rawfile = SD.open("file.raw") takes 3ms.

    So for sure that is adding to the delay.
  40. Replies
    25
    Views
    4,176

    Audio Library Play Latency

    So my quest is to try and reduce the latency of the PlayRAW function whilst playing via A14/DAC.

    It takes 3ms to open a file from the SD card — and my use for this is to play samples repeatedly.
    ...
  41. Replies
    50
    Views
    22,581

    Yes, apologies to Pensive for the thread derail...

    Yes, apologies to Pensive for the thread derail —*that's my fault.

    I've made a new thread here: https://forum.pjrc.com/threads/28974-Audio-Library-Play-Latency?p=76155#post76155
  42. Replies
    50
    Views
    22,581

    Thanks all. I timed the SD.open function and...

    Thanks all.

    I timed the SD.open function and it takes 3ms for the RAW drum sample I am testing this with.

    Reading those threads — it can take as long as 2.9ms to run the audio update? — which...
  43. Replies
    10
    Views
    2,293

    All depends on the use doesn't it? I am not...

    All depends on the use doesn't it?

    I am not making something new —*but playing with existing hardware.
  44. Replies
    50
    Views
    22,581

    Hi Pensive, I am wondering what kind of...

    Hi Pensive,


    I am wondering what kind of latency you are experiencing?

    Playing a RAW file from an SD card triggered by an interrupt, I am getting around 10ms using the onboard DAC. I get a...
  45. Ha! Thanks Frank. What a silly mistake.

    Ha! Thanks Frank.

    What a silly mistake.
  46. Playing two RAW files at once from SD card

    Hi all,


    I am having issues with the code below — it won't trigger the two samples at the same time — it just cuts off the first sample. I'm using the latest SD library with Teensy optimised...
  47. Replies
    10
    Views
    2,293

    Hi Nick, Thanks for that. I did find your...

    Hi Nick,


    Thanks for that.

    I did find your post but then couldn't find a read command. Which I hope means I'm not too silly to use it.

    Do you think that it's feasible to do what I want to...
  48. Replies
    10
    Views
    2,293

    Flash chip would be nice but I'm working with...

    Flash chip would be nice but I'm working with some existing hardware rather than making something new.

    What I really need is to be able to write to the Teensy internal flash :)
  49. Replies
    10
    Views
    2,293

    SD card WAV > uLaw encode > Teensy memory

    I am having issues reading two WAV files at once from SD cards — they are short samples and played repeatedly. I get issues with latency and eventually most of the time the Teensy crashes after a...
  50. Replies
    4
    Views
    1,269

    VIN is Voltage In — it's so you can power the...

    VIN is Voltage In — it's so you can power the Teensy externally.
Results 1 to 50 of 165
Page 1 of 4 1 2 3 4