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. Your problem isn't related to mine. You appear to...

    Your problem isn't related to mine. You appear to be using an older version of the cardinfo example. The latest version has root.openRoot and root.ls commented out.
    As Paul has suggested, try...
  2. I ran into a similar problem except that my code...

    I ran into a similar problem except that my code couldn't find a file that I knew to be on the SD card - because Windows Explorer showed that it was there.
    I used the listfiles example SD sketch to...
  3. Replies
    7
    Views
    291

    The sketch identifies the part: Part Nummber:...

    The sketch identifies the part:

    Part Nummber: W25Q256FV
    but I think you need W25Q256JV for it to work.

    Pete
  4. digitalRead(cols[i] == HIGH) The value of HIGH...

    digitalRead(cols[i] == HIGH)
    The value of HIGH is probably 1 and cols[i] is never 1 so the result is FALSE which is zero. The result will be that it will try to read pin 0. In a test on a T4.1 the...
  5. if(digitalRead(rows[j]) == HIGH &&...

    if(digitalRead(rows[j]) == HIGH && digitalRead(cols[i] == HIGH))// if the current key is pressed

    There's a parenthesis in the wrong place. It should be:

    if(digitalRead(rows[j]) == HIGH &&...
  6. @Paul: I've created a PR for this Pete

    @Paul: I've created a PR for this

    Pete
  7. There's a bug in effectRectifier.cpp. In its...

    There's a bug in effectRectifier.cpp. In its update function, it gets an audio block like this:

    audio_block_t *block = receiveReadOnly();
    but it overwrites the block!
    Change it to this:
    ...
  8. Replies
    18
    Views
    222

    Post photos of the wiring. Pete

    Post photos of the wiring.

    Pete
  9. Replies
    18
    Views
    222

    You should have radio details on both screens...

    You should have radio details on both screens unless the RF24 library for the Mega is different than the T4.1.
    If it really does work for a few lines, i.e. the sender sometimes looks like this:

    ...
  10. Replies
    18
    Views
    222

    I'm using this code on both Teensys with slight...

    I'm using this code on both Teensys with slight modifications for the transmitter and receiver.

    I set both of them to start up as a receiver (role = 0) and then type T in one of them to get things...
  11. Replies
    18
    Views
    222

    Another problem is that Tx and Rx don't set the...

    Another problem is that Tx and Rx don't set the payload size. The default payload size is 32 bytes but the code is only sending 4 bytes.
    After the radio.begin() statement, add this line to both Tx...
  12. Replies
    18
    Views
    222

    I'm pretty sure the problem is that the Tx and Rx...

    I'm pretty sure the problem is that the Tx and Rx aren't using the same addresses.
    In both the Rx and Tx use this for the addresses:

    const uint64_t pipes[2] = { 0xF0F0F0F0E1LL, 0xF0F0F0F0D2LL };...
  13. Replies
    18
    Views
    222

    Post the code you're using. Pete

    Post the code you're using.

    Pete
  14. Replies
    2
    Views
    58

    Post your code which tries to "attach it to a...

    Post your code which tries to "attach it to a mixer out" and explain how it fails.

    Pete
  15. Now it doesn't compile for me either. OK, let's...

    Now it doesn't compile for me either. OK, let's tackle this a different way. Unfortunately it requires editing several system files.
    Each of the serial devices for Teensy 4 (I presume that's what...
  16. That looks like a problem with the default...

    That looks like a problem with the default receive buffer size of 64 bytes (Tx default is 40). You can add extra receive and transmit buffer space to each Serial device.
    Declare these globally:
    ...
  17. Replies
    7
    Views
    130

    What is involved in resetting the heater? If you...

    What is involved in resetting the heater? If you just power it off and back on again, perhaps the Teensy could do that for you too. One of this sort of thing might work. I've never used one but looks...
  18. Replies
    2
    Views
    119

    I think it may be luck that your code works. ...

    I think it may be luck that your code works.

    This statement stores the address of ptr1, which is somewhere on the stack.

    ptrActive = &ptr1;

    I've changed the pointers a bit and this at least...
  19. Three shots from the hip: 1. The PPS (SQW) from...

    Three shots from the hip:
    1. The PPS (SQW) from the RTC doesn't appear to have a pullup resistor. It is required. You could specify the pinMode as INPUT_PULLUP to avoid having to add an external...
  20. Replies
    7
    Views
    222

    There is a possibility of array-overrun. ...

    There is a possibility of array-overrun.

    // Send PM data over radio
    float PM_10=(float)data.pm10_standard;
    sprintf(SendPM_10, "zc%04.02f&", PM_10);
    The problem is that specifying...
  21. Replies
    7
    Views
    222

    I've chopped your code down to just some of the...

    I've chopped your code down to just some of the stuff which writes to the SD files. I ran it on a T4.1 but that shouldn't make any difference to the result.
    It produces normal text without any...
  22. Replies
    7
    Views
    222

    The way to make sense of the data is to read the...

    The way to make sense of the data is to read the code and figure out why it isn't writing the ASCII text that you are expecting.

    Pete
  23. Replies
    7
    Views
    222

    Can you attach an example text file with the...

    Can you attach an example text file with the garbled data?

    I see that you have output to the Serial monitor. It would help to see that too.

    Pete
  24. The T4.0 is not 5V tolerant so you must have the...

    The T4.0 is not 5V tolerant so you must have the AS5047 board configured for 3V3 operation which involves feeding it the 3V3 supply from the T4.0 and setting the jumper at JP1 correctly.

    Pete
  25. Replies
    12
    Views
    237

    I think this is what you want but haven't tested...

    I think this is what you want but haven't tested it:

    AudioPlaySdWav arr_SdWav[6] = {
    &playSdWav1, &playSdWav2, &playSdWav3,
    &playSdWav4, &playSdWav5, &playSdWav6
    };
    .
    ....
  26. Replies
    12
    Views
    237

    When the [i] is inside a quoted string it has no...

    When the [i] is inside a quoted string it has no effect as an array.
    If the wav files are numbered 0.wav, ..., 5.wav you could do something like this:

    char *wavname[6] = {"0.wav","1.wav", ......
  27. Perhaps the fixes for 4.1 could be made with ...

    Perhaps the fixes for 4.1 could be made with

    #ifdef __MK66FX1M0__
    // T3.6 code
    #else
    // T4.1 code
    #endif

    Pete
  28. Hi John, This...

    Hi John,
    This was the transformer I'm using.

    Pete
  29. Here's two versions of my WWVB mod of the @DD4WH...

    Here's two versions of my WWVB mod of the @DD4WH DCF77 code.

    This version uses the microphone input which has an antenna connected to it, tuned for 60kHz reception.
    22368
    I used one of these...
  30. @jwestmoreland: I'm tidying up the code and...

    @jwestmoreland: I'm tidying up the code and should have it posted tomorrow. I've also cleaned out my PM inbox :o
    I have two versions of the code. The input for one is the same as the original DD4WH...
  31. The Wire library restricts the type of the...

    The Wire library restricts the type of the quantity in a requestFrom to be uint8_t which therefore has a maximum of 255. BUT the library further restricts this quantity to be no larger than the size...
  32. What's the file name? It has to be in 8.3 format....

    What's the file name? It has to be in 8.3 format.


    Serial.println(rawFile.available());
    I think this will crash the Teensy if there's no file because rawFile will be NULL.

    Pete
  33. Replies
    9
    Views
    213

    I don't see how there can be any effect. The two...

    I don't see how there can be any effect. The two formulae are identical (other than the variable name on the LHS) and, in either case, the result of the calculation isn't used anywhere so the...
  34. Replies
    2
    Views
    106

    Teensythreads contains a fair bit of assembler...

    Teensythreads contains a fair bit of assembler code which is specific to the ARM architecture whereas the Teensy++2 is an AVR.
    From the readme.md:


    Pete
    P.S. Defragster beat me to it :)
  35. Oooops. Thanks Kurt. I had been playing with a T4...

    Oooops. Thanks Kurt. I had been playing with a T4 and forgot to change the target board.

    Pete
  36. The default transmit buffer size for Serial4 is...

    The default transmit buffer size for Serial4 is 40 characters. When your code receives a message, it blasts out over 200 characters to Serial4. The code will hang until most of those characters have...
  37. Replace this: for (byte i = 0; i < 3; i++){...

    Replace this:

    for (byte i = 0; i < 3; i++){
    if (addr[i] > 15){ //RELEVANT SECTION
    addr[i] = 10 + i; //RELEVANT SECTION
    }
    }

    with...
  38. If you are writing to WAV files, it won't help...

    If you are writing to WAV files, it won't help writing 512 bytes at a time because what is getting in your way is the 44 byte WAV header which offsets everything you write.
    I have found a way around...
  39. 1) I think the memory requirement will be...

    1) I think the memory requirement will be determined primarily by how long the delays need to be and how much memory you allocate to the granular effects. That in turn will determine whether you need...
  40. Replies
    20
    Views
    547

    I've been playing with the filter and produced...

    I've been playing with the filter and produced this sketch which you might find useful.
    It generates a tonesweeep from 100-10000Hz over 5 seconds. The output of the sweep is fed to the queue so that...
  41. If mixer3 and mixer4 will only have one input in...

    If mixer3 and mixer4 will only have one input in the final design, they can be removed and the diagram simplifies to this:

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>...
  42. Your diagram is essentially mono. To handle...

    Your diagram is essentially mono. To handle stereo you would need to have a separate path for each channel. Import this into the audio design tool:

    #include <Audio.h>
    #include <Wire.h>
    #include...
  43. Replies
    20
    Views
    547

    Fixing the m_buffer[-1] problem and changing...

    Fixing the m_buffer[-1] problem and changing floating point to fixed-point arithmetic won't make significant changes to the audio.
    There is something else that is having a more profound effect.
    One...
  44. Replies
    20
    Views
    547

    Try this: m_file.write((const char *)m_out,...

    Try this:

    m_file.write((const char *)m_out, AUDIO_BLOCK_SAMPLES * 2 * 2);

    And, you can also copy and paste error messages as text too.

    Pete
  45. Replies
    20
    Views
    547

    I missed (at least) one thing. The m_out array...

    I missed (at least) one thing. The m_out array also needs to be int16_t;

    int16_t m_out[AUDIO_BLOCK_SAMPLES * 2];

    Which Teensy are you using? (T3.2 ?)

    Pete
  46. Replies
    20
    Views
    547

    P.S. You can also speed up things by changing the...

    P.S. You can also speed up things by changing the floating point computations to use int16_t instead. We'll also handle that once the basic code works.

    Pete
  47. Replies
    20
    Views
    547

    uint8_t m_buffer[512]; That is...

    uint8_t m_buffer[512];
    That is your biggest problem. Samples are int16_t. When you calculate this:

    m_smooth = 0.985f * (m_smooth + m_buffer[k] - m_buffer[k - 1]) ;
    it is done...
  48. Replies
    20
    Views
    547

    Posting code as an image makes it extremely...

    Posting code as an image makes it extremely difficult to help you.
    Cut and paste it as text into your message, preferably within code tags (use the # icon).

    Have you tried the unmodified...
  49. Replies
    12
    Views
    399

    When using MIDI-OX, have you selected Teensy MIDI...

    When using MIDI-OX, have you selected Teensy MIDI in Options|MIDI devices. If you don't click on it to highlight it, MIDI-OX will ignore it.

    Pete
  50. Replies
    12
    Views
    399

    I made these changes #define btn0 2 #define...

    I made these changes

    #define btn0 2
    #define led0 LED_BUILTIN
    and your code works on a Teensy2 - I see the MIDI messages with Midi-Ox on my windows PC and also the messages to the Serial monitor....
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4