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

Search:

Type: Posts; User: el_supremo

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Yes, frequency is in Hz. Pete

    Yes, frequency is in Hz.

    Pete
  2. This works for me on T4B2. It's a newer version...

    This works for me on T4B2. It's a newer version from Frank B.

    Pete
    P.S. I've only used it for 12000Hz but it should be good for other rates.



    #include <Audio.h>
    #include...
  3. Replies
    158
    Views
    7,632

    Install the new Teensyduino release 1.47...

    Install the new Teensyduino release 1.47 https://forum.pjrc.com/threads/57216

    Pete
  4. Replies
    2
    Views
    73

    From the 1.47 release notice, Paul wrote: ...

    From the 1.47 release notice, Paul wrote:


    Pete
  5. while (recQueue.available() >= 2) { ...

    while (recQueue.available() >= 2) {
    file.write((byte*)recQueue.readBuffer(), 256);
    recQueue.freeBuffer();
    }
    This will leave one record buffer in the queue. Wouldn't it be better to use...
  6. Replies
    4,115
    Views
    418,008

    Yes, it needs verbose to be selected. Pete

    Yes, it needs verbose to be selected.

    Pete
  7. Replies
    4,115
    Views
    418,008

    I compiled and installed your code. Works here. ...

    I compiled and installed your code. Works here.

    Pete
  8. Replies
    4,115
    Views
    418,008

    @mjs513: Post your imxrt-size.c and I'll give it...

    @mjs513: Post your imxrt-size.c and I'll give it a try.

    Pete
    P.S. I've just realized that it doesn't appear to have done anything since I updated to b7. I'll look at it.
    P.P.S. I had forgotten...
  9. Replies
    158
    Views
    7,632

    Yep, CR2032. Pete

    Yep, CR2032.

    Pete
  10. Replies
    158
    Views
    7,632

    In this message...

    In this message Paul said that "Teensy Loader and the new bootloader also now automatically initialize the RTC to your PC's time."
    I wrote a sketch to synchronize the T4B2 RTC to a GPS. When I...
  11. Replies
    10
    Views
    92

    Are you using the Windows installer version of...

    Are you using the Windows installer version of the IDE? If so, try using the ZIP file instead.
    - Download the Windows ZIP IDE
    - Unzip it into C:\ (Not Program Files)
    - install Teensyduino on top...
  12. At line 45 you have: for (int y = 0; y...

    At line 45 you have:

    for (int y = 0; y < rows; y++)
    {
    for (int x = 0; x < cols; x++)
    {
    if (duty_cycle[x*cols + y] <...
  13. Replies
    27
    Views
    905

    I've just got your code partially working on a...

    I've just got your code partially working on a Teensy 3.2
    That noise is definitely caused by the lfo table. I'll have a closer look at it tomorrow.

    Pete
  14. Replies
    27
    Views
    905

    Try declaring this lot as volatile: volatile...

    Try declaring this lot as volatile:

    volatile int16_t in_ADC0, in_ADC1, out_DAC0, out_DAC1; //variables for 2 ADCs values (ADC0, ADC1)
    volatile int16_t POT0, POT1, POT2; //variables for 3 pots...
  15. Thread: Teensy GPS

    by el_supremo
    Replies
    7
    Views
    92

    Just copy and paste the text into your message...

    Just copy and paste the text into your message (between code tags). So much easier to read.

    Pete
  16. Thread: Teensy GPS

    by el_supremo
    Replies
    7
    Views
    92

    The default baud rate for the Adafruit Ultimate...

    The default baud rate for the Adafruit Ultimate GPS is 9600 baud. The TinyGPS++ code works for me with the Adafruit GPS (at 9600) even with the software serial.

    Pete
  17. Replies
    158
    Views
    7,632

    @MichaelMeissner: In msg #17 you referred to...

    @MichaelMeissner: In msg #17 you referred to "DAT" - do you mean DAC?

    Pete
  18. Replies
    4,115
    Views
    418,008

    It reports a wild number for DTCM. ITCM : ...

    It reports a wild number for DTCM.


    ITCM : 63616 B (48.54% of 128 KB)
    DTCM : 451264 B (344.29% of 128 KB) <<< 344% ?
    OCRAM: 33792 B (12.89% of 256 KB)
    Flash: 499616 B (31.76% of 1536...
  19. Replies
    4,115
    Views
    418,008

    @Frank B: I tried imxrt-size.exe today (with TD...

    @Frank B: I tried imxrt-size.exe today (with TD beta5) and it didn't output anything. It turns out that _teensy_model_identifier is 0x24 instead of 0x23. imxrt-size only prints info if the model is...
  20. Replies
    4,115
    Views
    418,008

    I have made a quick workaround to the problem....

    I have made a quick workaround to the problem. There is an #if statement in beta4 Audio/output_i2s.cpp which was removed in beta5 but the matching #elif and #endif are still there.
    I have just added...
  21. Replies
    4,115
    Views
    418,008

    Just a heads up. I installed beta 5 over top of...

    Just a heads up.
    I installed beta 5 over top of beta 4 and then compiled a test of an audio microphone test sketch which I had successfully compiled 5 minutes previously with beta 4 for the T4B2....
  22. Replies
    10
    Views
    139

    uint16_t resultCode = (results.value & 0xFFFF); ...

    uint16_t resultCode = (results.value & 0xFFFF);
    if (resultCode == 0xFFFF)
    .
    .
    switch (resultCode)
    {

    case BUTTON_volup:

    The problem is that the result value from...
  23. Replies
    10
    Views
    139

    BTW. The compiler gives a warning for each of...

    BTW. The compiler gives a warning for each of these:

    const uint16_t BUTTON_volup = 0xFFA857; //ir remote codes
    const uint16_t BUTTON_voldown = 0xFFE01F;
    const uint16_t BUTTON_back = 0xFF22DD;...
  24. Replies
    10
    Views
    139

    The problem is that both the IRremote library (in...

    The problem is that both the IRremote library (in IRremoteInt.h) and the Audio library (in synth_wavetable.h) use the name STATE_IDLE. Either or both of them should use a more specific name, e.g....
  25. Replies
    10
    Views
    139

    I played with the order of the includes. It...

    I played with the order of the includes. It appears to be an interaction between Audio.h and IRremote.h.
    This works:

    #include <Encoder.h>
    #include <Bounce.h>
    #include <EEPROM.h>

    #include...
  26. Replies
    10
    Views
    139

    I don't know why this works, but move all of...

    I don't know why this works, but move all of these #includes:

    #include <IRremote.h>
    #include <Encoder.h>
    #include <Bounce.h>
    #include <EEPROM.h>

    to just before this:

    #define SDCARD_CS_PIN...
  27. Replies
    4
    Views
    91

    You also need to unmute the lineout first. ...

    You also need to unmute the lineout first.

    sgtl5000_1.unmuteLineout();
    // According to info in libraries\Audio\control_sgtl5000.cpp
    // 31 is LOWEST output of 1.16V and 13 is HIGHEST output...
  28. Replies
    5
    Views
    2,438

    @Robin. The link to the homepage requires a login...

    @Robin. The link to the homepage requires a login name and password.

    Pete
  29. Replies
    68
    Views
    1,104

    Yes, the one I posted in #19. It uses pins 0, 1...

    Yes, the one I posted in #19. It uses pins 0, 1 and 2 and each one causes a MIDI note to be sent.

    Pete
  30. Replies
    68
    Views
    1,104

    No. All you do is comment the one statement in...

    No. All you do is comment the one statement in the loop statement that I showed.

    // getAnalogData();
    Here's the whole thing:

    /* Use arrays to manage lists of knobs/pots and pushbuttons.

    By...
  31. Replies
    68
    Views
    1,104

    Let's get the digital pins working first. Modify...

    Let's get the digital pins working first. Modify the code in the loop function and just comment out the analog part:

    // getAnalogData();
    That will stop it flooding the receiving end with...
  32. Replies
    68
    Views
    1,104

    I haven't a clue what you have tried with that...

    I haven't a clue what you have tried with that sketch but obviously everything you've done is wrong.
    Post a version of the sketch, explain what it is doing wrong and perhaps we can figure it out so...
  33. Replies
    68
    Views
    1,104

    Have you modified the Many_Buttons_Knobs code to...

    Have you modified the Many_Buttons_Knobs code to use your specific analog and digital pins. If so, which ones are you using? Post the code.

    Pete
  34. Replies
    68
    Views
    1,104

    That's because it configures each digital pin...

    That's because it configures each digital pin with an internal pullup resistor:

    pinMode(DIGITAL_PINS[i], INPUT_PULLUP);
    which means you don't need to add external resistors.

    Which Teensy...
  35. Replies
    4,115
    Views
    418,008

    @mjs513: I used the minray code which is at...

    @mjs513: I used the minray code which is at various places on the internet. I've attached a zip of the code and an image.

    Pete
  36. Replies
    10
    Views
    176

    The code is set up to read a button on pin 2....

    The code is set up to read a button on pin 2. Even if you just have a piece of wire connected to pin 2, the sound should be played whenever you touch the wire to ground and then release it again.
    ...
  37. Replies
    10
    Views
    176

    The first problem is that you've got two...

    The first problem is that you've got two definitions of setup()

    void setup() {
    // put your setup code here, to run once:

    //six more lines from magazine
    void setup() {
    You've also got two...
  38. Replies
    10
    Views
    176

    #include “AudioSampleKick.h” Those are the wrong...

    #include “AudioSampleKick.h”
    Those are the wrong kind of quotes. Use this:

    #include "AudioSampleKick.h"

    Pete
  39. Replies
    11
    Views
    173

    Your code is incomplete and incorrect. Try this...

    Your code is incomplete and incorrect. Try this code - it compiles for a Teensy 2 but I can't test it.

    Pete


    #include <Bounce.h>
    Bounce button3 = Bounce(3,5);
    Bounce button4 = Bounce(4,5);...
  40. Try increasing the AudioMemory. Maybe...

    Try increasing the AudioMemory. Maybe AudioMemory(160);

    Pete
  41. Replies
    4,115
    Views
    418,008

    In order to compare Teensy processor speeds I...

    In order to compare Teensy processor speeds I ported a couple of CPU-intensive programs to T4b2.
    The first is a ray-tracing program which does a *lot* of single precision floating point calculations...
  42. Thread: Bad Board?

    by el_supremo
    Replies
    16
    Views
    217

    Specifically which vendor did you get the T3.5...

    Specifically which vendor did you get the T3.5 from? It may not be a genuine PJRC board, in which case there's no guarantee that it'll work at all.

    Your image attachment didn't work.

    Pete
  43. Replies
    4,115
    Views
    418,008

    @Frank B: I tricked play_sd_wav.cpp into playing...

    @Frank B:
    I tricked play_sd_wav.cpp into playing 8kHz and 12kHz. However, on closer listening to the audio, the 12kHz signal is noisy on playback. I'm still trying to figure out what's going on.
    ...
  44. Replies
    4,115
    Views
    418,008

    @Frank B: I have a test WAV file that is sampled...

    @Frank B:
    I have a test WAV file that is sampled at 12kHz. I've modified the example WavFilePlayer to add setI2SFreq and then play the wav files like this:

    setI2SFreq(12000);
    ...
  45. Replies
    4,115
    Views
    418,008

    Thanks Frank. That works with the demo...

    Thanks Frank. That works with the demo wavfileplayer but not with my code so I have some digging to do.

    Pete
  46. Replies
    4,115
    Views
    418,008

    @Frank B I just received the T4 beta today so...

    @Frank B
    I just received the T4 beta today so I'm playing catch up.
    Is there a new version of your setI2SFreq function - I can't find any mention of it in this thread? I need to set the audio...
  47. Replies
    1
    Views
    112

    cmd+=SerialRead(); You are calling the...

    cmd+=SerialRead();
    You are calling the SerialRead function from within itself. That's called recursion and is totally inappropriate here because it will fill up the stack and crash the processor,...
  48. Replies
    36
    Views
    1,008

    I've been trying to get FastCrc to handle the...

    I've been trying to get FastCrc to handle the 14-bit FT4 CRC with no luck so far. I've added this to FastCRChw.cpp:

    uint16_t FastCRC14::ft4(const uint8_t *data,const uint16_t datalen)
    {
    return...
  49. Replies
    36
    Views
    1,008

    I'm in Canada and about 650 miles from the...

    I'm in Canada and about 650 miles from the nearest coastline.

    Pete
  50. Replies
    36
    Views
    1,008

    Hold off for now, I haven't been able to get ft4...

    Hold off for now, I haven't been able to get ft4 to work with FastCRC (yet).

    Pete
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4