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

    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...
  2. 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));
    ...
  3. 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.
    ...
  4. 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...
  5. 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...
  6. Replies
    4
    Views
    146

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

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

    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...
  9. Replies
    11
    Views
    345

    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);
    ...
  10. Replies
    8
    Views
    289

    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...
  11. Replies
    8
    Views
    289

    How did you do it? Pete

    How did you do it?

    Pete
  12. Replies
    8
    Views
    289

    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
  13. 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
  14. Replies
    6
    Views
    250

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

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

    Pete
  16. 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...
  17. 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
  18. Post your code (in code tags please). Pete

    Post your code (in code tags please).

    Pete
  19. 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.
    ...
  20. Replies
    10
    Views
    346

    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...
  21. Replies
    10
    Views
    346

    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...
  22. Replies
    15
    Views
    384

    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:
  23. Replies
    15
    Views
    384

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

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

    Pete
  24. 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...
  25. 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...
  26. 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
  27. 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...
  28. 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
  29. 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...
  30. 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...
  31. Can you describe exactly what you mean by "it...

    Can you describe exactly what you mean by "it crashes". Is it possible that the Teensy is still running but the device it is talking to has stopped responding?
    Would it be possible to add a piece of...
  32. I modified your new code to toggle the LED on...

    I modified your new code to toggle the LED on every 100 times through the loop function so that I can see that it is still running. It does not crash. Which version of TeensyDuino and Arduino are you...
  33. What does your condensed version of the code do?...

    What does your condensed version of the code do?
    In the loop function it only ever does updateSlider on sliderNumber 1.
    In the updateSliders function, case 2 in the switch statement sends a pitch...
  34. Replies
    6
    Views
    391

    You can use the "Go Advanced" button to attach an...

    You can use the "Go Advanced" button to attach an image to your message. It will allow bmp gif jpe jpeg jpg pdf png

    Pete
  35. Replies
    6
    Views
    391

    I haven't found any obvious problems in a casual...

    I haven't found any obvious problems in a casual look through the code but this code strikes me as odd:

    for (int a = teta_min_r; a <= teta_max_r; a++) {
    int x = sin(radians(a)) *...
  36. To expand a bit on what @defragster wrote: When...

    To expand a bit on what @defragster wrote: When that code is run, the USB port on the Teensy will appear as a COM port on the PC. You don't have to have the serial monitor on that COM port. A...
  37. I think the wiring is correct so the only thing I...

    I think the wiring is correct so the only thing I can suggest is to post a photo of the wiring between Teensy and display.

    Pete
  38. Sorry, I can't help with that. I've done...

    Sorry, I can't help with that. I've done practically nothing with Teensy related to interacting with a web page.

    Pete
  39. Ahhh, rats. Somehow I missed the declaration of...

    Ahhh, rats. Somehow I missed the declaration of begin() in SSD13XX.h where it defaults to false anyway.

    Pete
  40. It may be that it is not initializing SPI for...

    It may be that it is not initializing SPI for you. Try this:

    tft.begin(false);
    The begin method requires a boolean value telling it whether to call SPI.begin() for you. When you don't specify a...
  41. I've added some code which allows the CC number...

    I've added some code which allows the CC number to be changed by using the serial monitor to enter the index of the CC to be changed and the CC number - e.g. 0 17
    It's not exactly a web UI but it...
  42. I think the display's DIN should be on Teensy pin...

    I think the display's DIN should be on Teensy pin 11. The display only has input, so its DIN corresponds to what SPI usually calls MOSI (Master Out, Slave In, in this case Teensy is the Master).
    DIN...
  43. Replies
    11
    Views
    687

    There is no way to know. You haven't posted any...

    There is no way to know. You haven't posted any code and you haven't even said what it is supposed to do, nor what "stops working" actually means.
    You should reduce your code to the smallest amount...
  44. Replies
    6
    Views
    463

    It has the same directory path on Windows. Pete

    It has the same directory path on Windows.

    Pete
  45. Replies
    3
    Views
    293

    Sorry. I am not familiar with flight sim...

    Sorry. I am not familiar with flight sim software.

    Pete
  46. Replies
    3
    Views
    293

    If you're asking about the DCS-Bios for Arduino...

    If you're asking about the DCS-Bios for Arduino, I've downloaded and had a look at it. Some of the code in DcsBios.h refers directly to Arduino hardware registers which is why it won't compile for a...
  47. Replies
    1
    Views
    319

    This would be a quick and dirty start which will...

    This would be a quick and dirty start which will average every 8 samples up to sample 6360:

    for(int i = 10; i < 795*8; i += 8) // draw from 10 to 795 px - but I have 8192 (nFFT/2) values
    {
    ...
  48. Replies
    10
    Views
    695

    I tried it with: file.open(fileName,...

    I tried it with:

    file.open(fileName, FILE_WRITE);
    and that works. It also has the correct timestamp on the file - using a T3.6.

    Pete
  49. Replies
    46
    Views
    2,216

    FYI: I created a pull request on github for the...

    FYI: I created a pull request on github for the error that I found in the _Q_coeff array (see #33). The PR was accepted about an hour ago.

    Pete
  50. Replies
    46
    Views
    2,216

    Wikipedia...

    Wikipedia explains oversampling better than I can. Basically, it reduces the noise and increases the resolution but at the cost of having to collect more samples. This is why the 4096 OSR conversion...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4