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.02 seconds.

  1. The SPI pins are only used for the SD card (and...

    The SPI pins are only used for the SD card (and memory chip, if present) so you can use the SD card while running audio. (The audio board is controlled using the I2C pins 18 and 19)

    The T3.2 only...
  2. Wire the RFM69 module like this: 7 (MOSI), 12...

    Wire the RFM69 module like this: 7 (MOSI), 12 (MISO), 14 (SCK) and then use a different pin for SS (CS) - try pin 4. When pin 10 is asserted, the audio board's SD card will use pins 7, 12 14. When...
  3. Replies
    2
    Views
    120

    SPI pins on a Teensy LC: LC pin 11 (MOSI0):...

    SPI pins on a Teensy LC:

    LC pin 11 (MOSI0): DAT -> Arduino Pin 11 // SPI Data pin

    LC Pin 13 (SCK0): CLK -> Arduino Pin 13 // SPI Clock pin
    - yes, this is also the LED pin.

    LC pin 10...
  4. Three observations after a brief perusal of the...

    Three observations after a brief perusal of the code.
    In the OnNoteOn function you have:

    if (mapStatus>0) { //Executes if button is pressed...
  5. I meddled with the FRACMUL_SHL inline function in...

    I meddled with the FRACMUL_SHL inline function in dspinst.h and changed smull to umull and removed the extraneous instructions and parameter list.
    I think this is correct.

    static inline int32_t...
  6. Replies
    18
    Views
    509

    @soky157 Can you try again to send photos of your...

    @soky157 Can you try again to send photos of your T4.1 and audio board? Easiest thing is to use JPG format and make sure they're under the size limit.

    What I usually do is use long-pin female...
  7. Replies
    18
    Views
    509

    If you don't want to desolder the sockets on the...

    If you don't want to desolder the sockets on the audio board (I would hate to have to do that!), I think I would put the T4.1 on the breadboard and wire the audio board to the breadboard. You would...
  8. Two problems. The connections from the jack to...

    Two problems. The connections from the jack to the line-in pins seem to be just touching rather than being soldered. They will not be making good electrical contact.
    Many of the solder joints on the...
  9. Replies
    5
    Views
    397

    This is a quick and dirty way to write the text...

    This is a quick and dirty way to write the text to the screen. It would need to be modified if the text file contains more lines than will fit on the screen, or if the lines are too long.


    //>>>...
  10. In my view, the problem lies within the library...

    In my view, the problem lies within the library itself. The only reason that the example code doesn't compile is because the private receiveResponse function requires a "size_t length" argument which...
  11. AudioMemory(x) just allocates a block of x...

    AudioMemory(x) just allocates a block of x buffers to the audio system and then initializes them. It is just a macro which is defined like this (in AudioStream.h):

    #define AudioMemory(num) ({ \...
  12. When you initialize audio in setup(); ...

    When you initialize audio in setup();

    sgtl5000_1.enable();
    sgtl5000_1.volume(volume / 1023.);
    // I want output on the line out too
    sgtl5000_1.unmuteLineout();

    Pete
  13. I tried the code in #3 on a T3.6. It works (LED...

    I tried the code in #3 on a T3.6. It works (LED flashes) with the analogReadAveraging commented and uncommented.

    Pete
  14. Replies
    4
    Views
    565

    You are missing at least two things. You need to...

    You are missing at least two things. You need to define an output object for I2S, otherwise processing audio packets doesn't occur. Add this at the end of the audio connections:

    AudioOutputI2S ...
  15. Replies
    2
    Views
    221

    I concur with Paul - but I tried it on a T4.1....

    I concur with Paul - but I tried it on a T4.1.
    Is pin 14 (A0) on your T4.0 grounded?

    Pete
  16. What does this have to do with Teensy? Pete

    What does this have to do with Teensy?

    Pete
  17. In your original code, both sketches were only...

    In your original code, both sketches were only writing to their respective Serial Monitor.
    In your latest code, both sketches are writing only to the other Teensy. In the serial_slave, the last...
  18. Replies
    18
    Views
    673

    Whatever circuit you're using to drive the LEDs...

    Whatever circuit you're using to drive the LEDs works with the 5V output from an UNO. But a Teensy 3.2 outputs 3.3V which is probably insufficient. As @PaulS asks, post a circuit diagram and the...
  19. I'm just trying my version of the code with a...

    I'm just trying my version of the code with a timer interrupting at 200 or 400/sec and I see the same behaviour that you do.
    I suspect that it is something to do with USB buffering between the...
  20. If a variable is used both within an ISR and...

    If a variable is used both within an ISR and outside it, it must be declared volatile.
    Try this code, which incorporates @KrisKasprzak suggestions and a couple of my own.

    volatile uint32_t i = 0;...
  21. I don't think so, but I haven't used the ADCs...

    I don't think so, but I haven't used the ADCs much.

    Pete
  22. Change X to the number of the ADC you are using....

    Change X to the number of the ADC you are using. E.g.

    adc.adc0->setSamplingSpeed(ADC_SAMPLING_SPEED::LOW_SPEED); // change the sampling speed

    Pete
  23. If you have something else to do when a buffer is...

    If you have something else to do when a buffer is not available, you can call available() which will return false until a buffer is available during which time you can accomplish something else. Then...
  24. It does free blocks, but you immediately consume...

    It does free blocks, but you immediately consume them again and put them back in the buffer queue. The delay of 2-3ms once it reaches 32 buffers is because at 44100Hz it takes 2.9ms to play the...
  25. You must have an old version. TD 1.56 beta2 has ...

    You must have an old version. TD 1.56 beta2 has

    audio_block_t *block = receiveWritable();

    Pete
    P.S. It was found and fixed last year https://forum.pjrc.com/threads/64761
  26. Replies
    37
    Views
    1,633

    Please post your code as text in code tags. Copy...

    Please post your code as text in code tags. Copy the code as text, hit the # icon and then paste the text. The # icon generates the code tags for you.
    A screen capture of code is impossible to work...
  27. Replies
    24
    Views
    890

    We'll need a copy of FilenameFunctions.h to...

    We'll need a copy of FilenameFunctions.h to compile this code.

    Pete
  28. Replies
    24
    Views
    890

    The latest Arduino version is 1.8.16 You...

    The latest Arduino version is 1.8.16



    You have two versions of GifDecoder.h in separate Arduino/libraries - /GifDecoder and /AnimatedGIFs_SD-master
    The IDE is using /GifDecoder - is that the...
  29. Replies
    37
    Views
    1,633

    Oooops. In msg #17 I should have said Pin 1...

    Oooops. In msg #17 I should have said Pin 1 (Serial1 Tx) - not pin 2.

    Pete
  30. I tested your setupADC code. Before the...

    I tested your setupADC code. Before the resolution is set to 16, it will be 10. After that it is always 16.
    Are you sure that you call setupADC() before calling setupWAVHeader() ?

    Pete
  31. Replies
    37
    Views
    1,633

    Don't change the code. The code you showed in #8...

    Don't change the code. The code you showed in #8 is correct. It uses Serial1 for MIDI and the library will set the baud rate.
    All you have to do is change the connections as described by Paul in...
  32. The bit resolution (bits per sample) in the WAV...

    The bit resolution (bits per sample) in the WAV file is 10. This isn't valid for a WAV file. It must be 8,16, etc.
    This is why I asked what bit resolution you were using. In the code which...
  33. What ADC resolution are you using? Pete

    What ADC resolution are you using?

    Pete
  34. You would have to zip the file and attach that. ...

    You would have to zip the file and attach that.

    Pete
  35. Replies
    37
    Views
    1,633

    As @Paul says in #12, you have the pins wired the...

    As @Paul says in #12, you have the pins wired the wrong way round. The circuit I used when I tested your code has Teensy pin 2 (Serial1 Tx) connected through a series resistor to pin 5 of the MIDI...
  36. Replies
    37
    Views
    1,633

    There's nothing wrong with the code. It works, as...

    There's nothing wrong with the code. It works, as is, when connected to a SY77 keyboard using Serial1.
    There must be something wrong with the hardware connections.

    Pete
  37. Replies
    58
    Views
    5,222

    Thanks to all for info about the ExChar16_t...

    Thanks to all for info about the ExChar16_t problem in SD. I installed a fresh Arduino 1.8.16 and put TD 1.56.b2 on top and the example now compiles, as do a couple of my sketches which failed.
    ...
  38. When the file is closed in the example, it is...

    When the file is closed in the example, it is still 40MB long. You can reduce the file's length to whatever has been written so far by using the truncate() function.
    Changing this:

    ...
  39. Replies
    58
    Views
    5,222

    I installed b2 over b1 and have run into a...

    I installed b2 over b1 and have run into a problem. The example/SD/SdFat_Usage does not compile (but it does compile with 1.55).

    In file included from...
  40. Replies
    18
    Views
    1,127

    I've checked the two uSD cards, and their...

    I've checked the two uSD cards, and their contents are identical to the original Scenes directory.
    I'll try your newer version on just the T3.6 with the builtin uSD this time.

    Pete
  41. Replies
    18
    Views
    1,127

    Yes. Pete

    Yes.

    Pete
  42. Replies
    18
    Views
    1,127

    I have been running the original version of the...

    I have been running the original version of the code (with slight mods) on a Teensy 3.6 and a Teensy 3.2. I have a T3.5 but unfortunately it's busy right now.
    The T3.6 has been running non-stop for...
  43. digitalWrite(pin_number,pin_state); E.g. ...

    digitalWrite(pin_number,pin_state);

    E.g.

    digitalWrite(10,HIGH);

    They can be grouped in ports and accessed directly but unless you really need simultaneous access, it is easier to just...
  44. Replies
    14
    Views
    932

    It also fails for T3.2 with 1.8.16 and 1.56 beta...

    It also fails for T3.2 with 1.8.16 and 1.56 beta 1

    Pete
  45. The code below should use the queues to just pass...

    The code below should use the queues to just pass input from line-in to the output.
    You can then modify the loop which does the copying to implement the AGC. I may have a shot at it myself :)
    ...
  46. Excellent. Pete

    Excellent.

    Pete
  47. Replies
    4
    Views
    470

    The FFT will execute 43 times per second or once...

    The FFT will execute 43 times per second or once every 23 milliseconds. Which should be fast enough.
    However, you are redrawing every one of the 900 pixels each time. I haven't used led strips so I...
  48. digitalWrite(ADDR[6], ((j & 0x60) ? HIGH : LOW));...

    digitalWrite(ADDR[6], ((j & 0x60) ? HIGH : LOW));
    digitalWrite(ADDR[7], ((j & 0x40) ? HIGH : LOW));
    Presumably should be:

    digitalWrite(ADDR[6], ((j & 0x40) ? HIGH : LOW));
    ...
  49. I don't think Teensyduino 1.55 will work with...

    I don't think Teensyduino 1.55 will work with Arduino 1.8.13 (which is rather old anyway).
    Do a clean install of the latest version of Arduino 1.8.16 and then install Teensyduino 1.55 over that.
    ...
  50. I did get note repeats working but only after I...

    I did get note repeats working but only after I had modified the code quite a bit to use millis() as a "fudged" sort of clock source. My SY77 apparently will send a MIDI Clock signal but I haven't...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4