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. Replies
    23
    Views
    228

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

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

    Pete
  2. Replies
    23
    Views
    228

    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...
  3. Replies
    24
    Views
    397

    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
  4. 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
  5. Replies
    24
    Views
    397

    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...
  6. 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...
  7. What ADC resolution are you using? Pete

    What ADC resolution are you using?

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

    You would have to zip the file and attach that.

    Pete
  9. Replies
    24
    Views
    397

    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...
  10. Replies
    24
    Views
    397

    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
  11. Replies
    25
    Views
    1,245

    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.
    ...
  12. 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:

    ...
  13. Replies
    25
    Views
    1,245

    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...
  14. Replies
    18
    Views
    633

    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
  15. Replies
    18
    Views
    633

    Yes. Pete

    Yes.

    Pete
  16. Replies
    18
    Views
    633

    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...
  17. 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...
  18. Replies
    14
    Views
    528

    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
  19. 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 :)
    ...
  20. Excellent. Pete

    Excellent.

    Pete
  21. Replies
    4
    Views
    301

    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...
  22. 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));
    ...
  23. 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.
    ...
  24. 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...
  25. Try initializing dm_channel_select to 1 (or...

    Try initializing dm_channel_select to 1 (or whatever channel your keyboard uses). If your MIDI device sends Active Sense, for example, dm_channel_received will be set to zero while the code is still...
  26. Replies
    4
    Views
    276

    Yes, soldering is essential. The pins aren't...

    Yes, soldering is essential. The pins aren't making a proper electrical contact.

    You will also need to solder the pins on the Teensy too.

    Pete
  27. Replies
    4
    Views
    276

    Are the Teensy pins soldered to the audio board?...

    Are the Teensy pins soldered to the audio board?
    Can you show a photo of the bottom of the audio board?

    Pete
  28. Replies
    7
    Views
    536

    Does Pin 1 (PIN_Button_Start) work reliably? It...

    Does Pin 1 (PIN_Button_Start) work reliably? It seems to me that you need a pulldown resistor on pin 1 to hold the pin LOW until the button is pushed.
    The easy fix is to change the pinMode from...
  29. Replies
    11
    Views
    513

    Use this for the setup function: void setup()...

    Use this for the setup function:

    void setup()
    {
    AudioMemory(12);

    // Enable the audio shield and set the output volume.
    sgtl5000_1.enable();
    sgtl5000_1.volume(0.5);
    ...
  30. Replies
    8
    Views
    419

    I've been playing around with the repeated start...

    I've been playing around with the repeated start feature of I2C. Although you can't read a large amount of data (e.g. 512 bytes) in one call to requestFrom, you can use the repeated start (if the...
  31. Replies
    8
    Views
    419

    How did you do it? Pete

    How did you do it?

    Pete
  32. Replies
    8
    Views
    419

    You may also need to increase the size of...

    You may also need to increase the size of TWI_BUFFER_LENGTH in Wire/utility/twi.h

    Pete
  33. Replies
    11
    Views
    1,471

    I think the implementation of the rtc_get_ms...

    I think the implementation of the rtc_get_ms function may be incorrect.
    EDIT: Nope, my reading of that code was incorrect. Sorry.

    Pete
  34. Replies
    6
    Views
    359

    I'd just read the string up to the CRLF on the...

    I'd just read the string up to the CRLF on the end. First, check that the string is the correct length, otherwise ignore. Then make sure the string starts with 38, otherwise ignore. Read the particle...
  35. I was grasping at straws to start with. None left...

    I was grasping at straws to start with. None left now :)

    Pete
  36. In the photo, you have two separate ground wires...

    In the photo, you have two separate ground wires from the Teensy to the audio board. It looks like the red and green wires go to the Gnd and 3.3V pins on the audio board. But I can't figure out where...
  37. There doesn't seem to be anything wrong with the...

    There doesn't seem to be anything wrong with the code - no pin conflicts etc.
    Can you post a photo which clearly shows the connections to the Teesy2? Especially pins A0,A1,A2.

    Pete
  38. Post your code (in code tags please). Pete

    Post your code (in code tags please).

    Pete
  39. Post a photo of the connections to the Teensy2....

    Post a photo of the connections to the Teensy2.
    What is Midi learn?


    What is "It"? Where does this show? If you are referring to pin numbers then A0 is pin 21, A1 is pin 20 and A2 is pin 19.
    ...
  40. Replies
    10
    Views
    478

    And another observation nextMove = NULL; ...

    And another observation

    nextMove = NULL;

    if(nextMove)
    Serial.print("\n nextMove = ");Serial.print((*nextMove).x);
    Even if this if statement is parenthesized, this will never...
  41. Replies
    10
    Views
    478

    if(nextMove) Serial.print("\n nextMove =...

    if(nextMove)
    Serial.print("\n nextMove = ");Serial.print((*nextMove).x);
    Just an observation. You haven't parenthesized the scope of the if statement and therefore only the first .print is...
  42. Replies
    15
    Views
    522

    Try changing the beginning of serialEvent3 from...

    Try changing the beginning of serialEvent3 from this:

    if(dfd.length()>9) dfd="";
    if(dfd.endsWith(endChar)) dfd="";
    if(Serial3.available())
    {
    dfd += char(Serial3.read());

    To this:
  43. Replies
    15
    Views
    522

    What serial baud rate are you using to/from the...

    What serial baud rate are you using to/from the Nextion?

    Pete
  44. I tried the original code in your #1 (with a few...

    I tried the original code in your #1 (with a few mods to match what's on my breadboard). I trigger the interrupt with a button and the code does not work well in the presence of contact bounce.
    I...
  45. Point anywhere in the centre of the window (where...

    Point anywhere in the centre of the window (where it says "Press Button ...") and drag it.
    BTW. If you are using an old version of Teensyduino, this won't work. It was fixed in later versions and...
  46. entry.name() returns a pointer to a C-style...

    entry.name() returns a pointer to a C-style string - not to a String. Casting it will fix the problem:

    fileList[i] = (String)entry.name();

    Pete
  47. I figured out why you had 700ms for the longClick...

    I figured out why you had 700ms for the longClick so ignore my comments in message #5.
    I've added code to use the Bounce library and it works well on a T4 here.
    If you use the Bounce library you...
  48. Shouldn't that be > or >= ? That is the problem....

    Shouldn't that be > or >= ?
    That is the problem. The click sequence seems to make sense once that change is made. It might also help to reduce longClick to something like 100 (or even less).

    Pete
  49. void looperUp (int i){ if ((millis() -...

    void looperUp (int i){
    if ((millis() - timers[i]) < longClick) {

    Shouldn't that be > or >= ?
    As it is, it will respond to contact bounce (chatter). As @wootie11 suggests, have a look at the...
  50. I downloaded the Tsynth code, installed it,...

    I downloaded the Tsynth code, installed it, modified the two lines you mentioned, set up the IDE and it compiles.
    You didn't quite have the IDE set up properly. The reason for the complaint about...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4