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. What does this have to do with Teensy? Pete

    What does this have to do with Teensy?

    Pete
  2. 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...
  3. Replies
    16
    Views
    223

    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...
  4. 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...
  5. 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;...
  6. 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
  7. 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
  8. 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...
  9. 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...
  10. 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
  11. Replies
    37
    Views
    818

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

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

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

    Pete
  13. Replies
    23
    Views
    339

    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...
  14. Replies
    37
    Views
    818

    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
  15. 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
  16. Replies
    37
    Views
    818

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

    What ADC resolution are you using?

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

    You would have to zip the file and attach that.

    Pete
  20. Replies
    37
    Views
    818

    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...
  21. Replies
    37
    Views
    818

    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
  22. Replies
    31
    Views
    1,882

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

    ...
  24. Replies
    31
    Views
    1,882

    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...
  25. Replies
    18
    Views
    718

    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
  26. Replies
    18
    Views
    718

    Yes. Pete

    Yes.

    Pete
  27. Replies
    18
    Views
    718

    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...
  28. 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...
  29. Replies
    14
    Views
    606

    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
  30. 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 :)
    ...
  31. Excellent. Pete

    Excellent.

    Pete
  32. Replies
    4
    Views
    338

    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...
  33. 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));
    ...
  34. 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.
    ...
  35. 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...
  36. 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...
  37. Replies
    4
    Views
    299

    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
  38. Replies
    4
    Views
    299

    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
  39. Replies
    7
    Views
    580

    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...
  40. Replies
    11
    Views
    570

    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);
    ...
  41. Replies
    8
    Views
    452

    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...
  42. Replies
    8
    Views
    452

    How did you do it? Pete

    How did you do it?

    Pete
  43. Replies
    8
    Views
    452

    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
  44. Replies
    11
    Views
    1,796

    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
  45. Replies
    6
    Views
    402

    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...
  46. I was grasping at straws to start with. None left...

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

    Pete
  47. 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...
  48. 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
  49. Post your code (in code tags please). Pete

    Post your code (in code tags please).

    Pete
  50. 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.
    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4