Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: neurofun

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. LOOP_PHASE_LENGTH doesn't look right, subtracting...

    LOOP_PHASE_LENGTH doesn't look right, subtracting a negative number with unsigned integers doesn't make sense in this case.

    This seems to remove the artefact:
    ((uint32_t)2048 - 1) << (32 - 12),...
  2. Replies
    6
    Views
    148

    Your switch statement is being executed every...

    Your switch statement is being executed every iteration of the loop which means you are constantly un-patching patching the cord.
    The switch statement should only be executed once for every button...
  3. Replies
    246
    Views
    5,279

    Autocenter is now working for the internal font &...

    Autocenter is now working for the internal font & the RA8875 lib supplied fonts. Thanks.
  4. Replies
    246
    Views
    5,279

    void RA8875::setCursor(int16_t x, int16_t y, bool...

    void RA8875::setCursor(int16_t x, int16_t y, bool autocenter)
    autocenter does not work anymore. (tested with the internal font)
    Still works fine with the TD1.49 supplied lib.
  5. @tele_player I think being precise or pedantic...

    @tele_player
    I think being precise or pedantic as you say, is important to avoid confusion or misunderstandings, especially when dealing with technological stuff.
    Thanks for the clarification.
  6. Yes, like this. AudioSynthWaveform* waveform =...

    Yes, like this.
    AudioSynthWaveform* waveform = new AudioSynthWaveform[4];

    See following thread for a complete example: https://forum.pjrc.com/threads/58158-Accessing-Audio-Objects-from-an-Array
  7. Replies
    13
    Views
    210

    You could also use the c_str() StringObject...

    You could also use the c_str() StringObject Function.

    File dataFile = SD.open(filename.c_str(), FILE_WRITE);
  8. Replies
    6
    Views
    148

    Use connect() & disconnect() on existing audio...

    Use connect() & disconnect() on existing audio connection objects by adhering to the following:

    Instantiate all possible AudioConnections needed in the project(in the global scope, as usual)....
  9. Just for the sake of correctness. Your statement...

    Just for the sake of correctness.
    Your statement is only valid for T3.x.
    On the T4.0 the audio lib runs @ 44100Hz.
  10. Replies
    3
    Views
    92

    Not mine and not tested. ...

    Not mine and not tested.

    https://github.com/noisegate/kicadlib

    audio shield symbol in teensy3.lib
    audio shield footprint in teensy.pretty
  11. If you blindly copied the revD schematic without...

    If you blindly copied the revD schematic without checking the SGTL5000 datasheets, pretty sure you've got it wrong.

    Checked your schematic.pdf file.
    The connections of your I2S datalines need to...
  12. Replies
    7
    Views
    1,480

    NRPN & RPN are fully supported by the 3 midi...

    NRPN & RPN are fully supported by the 3 midi libs.
    Have a look at Examples/Teensy/USB_MIDI/TransmitEverything.ino
  13. Replies
    2
    Views
    127

    There's an error in the audioshield revD...

    There's an error in the audioshield revD schematic. You need to swap pin 7 & 8 on the T4 side.

    see: https://forum.pjrc.com/threads/58550-audio-shield-rev-C-and-rev-D-TX-and-RX-pins
  14. Replies
    23
    Views
    590

    Both /RESET and /HOLD need to be connected to...

    Both /RESET and /HOLD need to be connected to 3.3V.
  15. Replies
    22
    Views
    243

    Did you connect the 3 address lines to GND?

    Did you connect the 3 address lines to GND?
  16. tft.setFont(INT);or tft.setFont(INTFONT)...

    tft.setFont(INT);or
    tft.setFont(INTFONT) //sumotoy;depending on which lib you use.
  17. Replies
    45
    Views
    2,927

    @mjs513 beta3 with changes from post #25...

    @mjs513
    beta3 with changes from post #25
    running at the default 22MHz showing 284ms
    changed to 18MHz and now showing 275ms

    unmodified beta3
    @17MHz -> 246ms
    @18MHz -> 248ms
    @19MHz -> 256ms
  18. Replies
    45
    Views
    2,927

    Located the problem in SPI.cpp around line 1281...

    Located the problem in SPI.cpp around line 1281
    changed


    CCM_CBCMR = (CCM_CBCMR & ~(CCM_CBCMR_LPSPI_PODF_MASK | CCM_CBCMR_LPSPI_CLK_SEL_MASK)) |
    CCM_CBCMR_LPSPI_PODF(2) |...
  19. Replies
    45
    Views
    2,927

    It is indeed very strange. The display i'm using...

    It is indeed very strange. The display i'm using is the 4.3" from buydisplay.
    I even wonder if it has anything to do with SPI because in my main application I also use the SPI1 bus to read the...
  20. Replies
    45
    Views
    2,927

    Did some more tests and USB Type does have some...

    Did some more tests and USB Type does have some influence.
    With this new test I get opposite results

    #include <SPI.h>
    #include <RA8875.h>

    //teensy4 SPI0 RA8875
    #define TFT_CS 10...
  21. Replies
    45
    Views
    2,927

    The slowdown is clearly visible on the display....

    The slowdown is clearly visible on the display.
    Changing clockspeed.c does not resolve the slowdown.


    Yes, I'm sure about 2940ms. But that was yesterday.
    Today the times vary around 2300ms,...
  22. Replies
    45
    Views
    2,927

    T4 @ 600MHz With this example beta 3 is about...

    T4 @ 600MHz
    With this example beta 3 is about 10x slower than beta2. 2940ms vs 283ms.

    #include <SPI.h>
    #include <RA8875.h>

    //teensy4 SPI0 RA8875
    #define TFT_CS 10
    #define TFT_RST ...
  23. Replies
    45
    Views
    2,927

    T4 @ 600MHz using this RA8875 lib:...

    T4 @ 600MHz
    using this RA8875 lib: https://github.com/mjs513/RA8875 to draw 2 different types of screens.

    With TD1.49b2
    screen1 takes about 23ms to draw
    screen2 takes about 65ms to draw

    With...
  24. Replies
    20
    Views
    338

    Pcb looks good at first glance. DRC ok. ...

    Pcb looks good at first glance. DRC ok.

    correction: Kicad 5.1.5
  25. Replies
    13
    Views
    320

    That J8 comment is irrelevant in your case...

    That J8 comment is irrelevant in your case because it refers to a different display than the one you have.
  26. Replies
    20
    Views
    338

    @jonr Yes indeed, those points are connected...

    @jonr
    Yes indeed, those points are connected through pin6.

    Now if I move that ground plane via 1mil(0.0254mm) up, it then passes DRC.
    I suspect there might be some difference between Kicad...
  27. Replies
    20
    Views
    338

    There is a "show/hide board ratsnest" button in...

    There is a "show/hide board ratsnest" button in the left toolbar.
    The bottom left statusbar clearly shows "unrouted 1".
    Performing a Design Rule Check will also reveal unconnected items.

    18423...
  28. Replies
    44
    Views
    1,966

    I was slightly confused when the teensy didn't...

    I was slightly confused when the teensy didn't show up as a usb serial device and the Serial.print() still worked.
    It all makes sense now. Thanks for the clarification.
  29. Replies
    20
    Views
    338

    The culprit? 18418 Lower the clearance...

    The culprit?

    18418

    Lower the clearance value in the Copper Zone Properties.
    Nothing that can't be fixed with a piece of wire and some solder fumes.

    Don't know if it is intentional or not...
  30. Replies
    44
    Views
    1,966

    Follow up: USB Type: "MIDI" seems to act like...

    Follow up:
    USB Type: "MIDI" seems to act like "Serial + MIDI" since Serial.print() still shows up in serial monitor.
  31. Replies
    87
    Views
    1,167

    Just put the code for changing the oscillator...

    Just put the code for changing the oscillator waveform in loop(), just as you did for the filter frequency.
  32. Replies
    44
    Views
    1,966

    MacOS 10.13.6 USB Type: "MIDI" Works in both...

    MacOS 10.13.6

    USB Type: "MIDI"
    Works in both directions, IN/OUT.

    USB Type: "Serial + MIDI"
    Does not compile....
  33. Replies
    13
    Views
    265

    You can choose your ADC_REFERENCE to be...

    You can choose your ADC_REFERENCE to be REF_3V3(default), REF_1V2 or REF_EXT.


    Gain formula for inverting opamp is
    Gain = Rfeedback/Rin = Vout/Vin

    Gain Vin = 1.2V(Vout range)/10V(Vin range) =...
  34. Replies
    13
    Views
    265

    As Wibbing mentioned you need to use a rail to...

    As Wibbing mentioned you need to use a rail to rail opamp supplied with 3.3V otherwise you might damage your teensy.
    Since eurorack modules are usually powered by -12V, 12V, all inputs should be...
  35. Replies
    14
    Views
    212

    Are you sure about that? I was under...

    Are you sure about that?
    I was under impression(looking at the code but i might be wrong) that unity gain is handled as a special case in both the mixer and the amp, but that zero gain is only...
  36. Replies
    14
    Views
    212

    @daspuru In order to have an audio object with...

    @daspuru
    In order to have an audio object with an input to stop processing you need to stop the audiostream going to it's input.
    There are 2 ways to achieve this:

    use AudioConnection::disconnect...
  37. Replies
    6
    Views
    187

    Assuming the coolant tmp returned by the CAN bus...

    Assuming the coolant tmp returned by the CAN bus can be < 60deg or > 120deg but you want the stepper only to move between 60deg and 120deg and that the temp reading is linear.

    I took the liberty...
  38. Replies
    3
    Views
    159

    Thanks for the tip. Works like a charm.

    Thanks for the tip. Works like a charm.
  39. Replies
    9
    Views
    305

    I never thought about the need for "a couple of...

    I never thought about the need for "a couple of hundreds" of connections.

    I totally agree!
    Please post your findings, I'll be glad to help testing.
  40. Replies
    9
    Views
    305

    There is no need to modify connect() in...

    There is no need to modify connect() in Audiostream if you do the following:

    Instantiate all possible AudioConnections needed in the project(in the global scope, as usual). Multiple sources to one...
  41. Replies
    8
    Views
    231

    You need to explicitly set the text background...

    You need to explicitly set the text background color. If not, printing text will behave as you described(transparent background).



    tft.setTextColor(ILI9341_WHITE); //white text with transparent...
  42. Pretty sure the Rev D schematic is wrong. Pin 7 &...

    Pretty sure the Rev D schematic is wrong. Pin 7 & 8 should be swapped.
  43. Replies
    4,361
    Views
    498,135

    The SPI pin definitions in effect_delay_ext.cpp...

    The SPI pin definitions in effect_delay_ext.cpp don't matter when using a T4 since it has no alternate pins for SPI. Thus the pin numbers are hard coded as seen in the T4 portion of SPI.cpp.

    ...
  44. I did not try your code but if you want to use...

    I did not try your code but if you want to use the print statement to send floats you need to be aware that by default it will only send 2 digits after the decimal point.
    If you want more decimal...
  45. Replies
    4,361
    Views
    498,135

    Because the SPI0 clock signal (SCK) for the T40...

    Because the SPI0 clock signal (SCK) for the T40 is on pin13 and for the T36 it is on pin14. And that signal is needed to access the external memory chip.
  46. Replies
    26
    Views
    1,070

    @DD4WH, you're welcome. Glad those pictures...

    @DD4WH, you're welcome. Glad those pictures helped you push your limits.
  47. Physical contact does not mean electrical...

    Physical contact does not mean electrical contact. There might be some glue residue from the paper tape at the extremities of the resistor legs.
  48. @rusty113 I could be wrong but looking at your...

    @rusty113
    I could be wrong but looking at your first picture it seems your didn't solder the wires to the resistors. If so, how do you expect it to work?
  49. Replies
    11
    Views
    220

    oops, misunderstood the question. correction:...

    oops, misunderstood the question.

    correction:

    // Button Toggle In Code

    #include <Bounce.h>

    const int channel = 1;
    bool toggleState = false;
  50. Replies
    11
    Views
    220

    What about this? // Button Toggle In Code ...

    What about this?

    // Button Toggle In Code

    #include <Bounce.h>

    const int channel = 1;

    Bounce button0 = Bounce(0, 10);
Results 1 to 50 of 188
Page 1 of 4 1 2 3 4