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

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.12 seconds; generated 51 minute(s) ago.

  1. Replies
    5
    Views
    184

    Now that's an awesome idea. Hoping the link can...

    Now that's an awesome idea. Hoping the link can get updated?
  2. Teensy LC (actually Cortex M0+) lacks the cycle...

    Teensy LC (actually Cortex M0+) lacks the cycle counter hardware.

    You could try to get something system from the SysTick timer. But it's currently used for millis(), so reprogramming it with a...
  3. Here's a quick video of how the Teensy 4.0...

    Here's a quick video of how the Teensy 4.0 waveforms look on my oscilloscope.


    https://www.youtube.com/watch?v=l0RSRd_v508
  4. Teensy 4.0 does much better. But even at 600...

    Teensy 4.0 does much better. But even at 600 MHz, the difference in time to toggle the pins is only 30 cycles.



    400.000 and 400.016 Hz Test
    ---------------------------
    400.000 Hz needs...
  5. On Teensy 3.2 the time difference to toggle the...

    On Teensy 3.2 the time difference to toggle the pin is only 5 CPU cycles.



    400.000 and 400.016 Hz Test
    ---------------------------
    400.000 Hz needs 120000 cycles per toggle
    400.016 Hz...
  6. Wow, those are really close. The difference in...

    Wow, those are really close. The difference in waveform period is only 100ns! Using elapsedMicros won't work.

    So I tried an experiment with the cycle counter. Here's the code.



    const...
  7. Yes, every output transmits the same number of...

    Yes, every output transmits the same number of pixels. So if you configure for 100 pixels per pin, the pixels transmitted by the first pin will be index 0 to 99, the pixels sent on the 2nd pin will...
  8. You could use the RTC that's built into Teensy...

    You could use the RTC that's built into Teensy 3.2. All that's needed it adding a 32.768 kHz crystal, and a 3V coin cell if you want it to keep time while main power is off.
  9. The Arduino IDE has an "external editor" option...

    The Arduino IDE has an "external editor" option in File > Preferences. If you turn that on, Arduino's editor is disabled so you can edit the files with vim or vscode or anything else. It...
  10. Replies
    4
    Views
    153

    The J-lead headers like in Sparkfun's kit work...

    The J-lead headers like in Sparkfun's kit work pretty well for the 14 bottom side pads.

    One trick is to solder that J-lead header first, trying to get it lined up as well as possible in the center...
  11. Before diving into timers, I would create a...

    Before diving into timers, I would create a simple-as-possible software prototype using only elapsedMicros and digitalWriteFast. Just have code in your loop() check if enough time as elapsed and...
  12. My guess is nearly all of that PC synth latency...

    My guess is nearly all of that PC synth latency is happening on the PC. You can use usbMIDI.send_now() to eliminate the tiny amount of latency that is under Teensy's control, but that is at most...
  13. Use SPI.beginTransaction() to set up the speed...

    Use SPI.beginTransaction() to set up the speed and other settings, and SPI.endTransaction() when you're done.

    This is standard on all Arduino boards (though it was originally developed on Teensy)....
  14. USB MIDI is incredibly fast compared to regular...

    USB MIDI is incredibly fast compared to regular serial MIDI. But the underlying USB protocol is quite complex, so the overall timing depends on many factors which are challenging to measure.

    With...
  15. The DRAM refresh is all done internally and...

    The DRAM refresh is all done internally and automatically inside the chip.

    Teensy doesn't do any refresh, and couldn't do it even if we wanted, because the PSRAM chip doesn't provide any commands...
  16. Replies
    9
    Views
    199

    Check the Tools > Boards menu. Any chance you...

    Check the Tools > Boards menu. Any chance you have a non-Teensy board selected?

    Arduino changes where it looks for files depending on what platform/board you choose in that menu.
  17. Sounds like progress! 80% working for a little...

    Sounds like progress! 80% working for a little while is a whole lot more than completely dead. ;)

    Maybe order the reference PCB from OSH Park? Worst case it'll just set you back $28... probably...
  18. BNO055 definitely works using Sparkfun's library....

    BNO055 definitely works using Sparkfun's library. It's one of several I2C devices that went into this I2C test board.

    https://twitter.com/PaulStoffregen/status/1218328188952006657

    Here's an...
  19. Glad you got it working. Just curious, what was...

    Glad you got it working. Just curious, what was wrong?

    FWIW, I was going to try this tonight using FastLED's OctoWS2811 driver....
  20. I recently started some work towards automated...

    I recently started some work towards automated regression testing, but it's barely past the planning phase, and I'm not ready to write a lengthy post about it.

    But here's a photo....

    21327
  21. This problem should be fixed now. If anyone...

    This problem should be fixed now. If anyone following this thread is still blocked, please email me directly and I'll look into it.
  22. Replies
    1
    Views
    136

    It's this inductor. 21310 You can just...

    It's this inductor.

    21310

    You can just replace it with a wire to get your Teensy 4.1 running again.
  23. Add SPI.begin() in your setup() function.

    Add SPI.begin() in your setup() function.
  24. Replies
    7
    Views
    299

    Yup, you need to compute the elapsed time. ...

    Yup, you need to compute the elapsed time.

    This is also likely to cause problems if you measure more than 1 ms.



    noInterrupts(); //disable all interrupts to increase speed


    The timing...
  25. Replies
    2
    Views
    162

    Yes. This is the page you want. ...

    Yes. This is the page you want.

    https://www.pjrc.com/store/ic_mkl02.html

    All of the bootloader code is stored in the MKL02 chip, so you buy that chip from PJRC and pair it with a blank...
  26. Replies
    3
    Views
    129

    You need to select Teensy 4.1 in Arduino's Tools...

    You need to select Teensy 4.1 in Arduino's Tools > Boards menu.

    Teensy Loader is supposed to show you this error message when the code is built for the wrong board.

    21300

    I'd really like to...
  27. Replies
    14
    Views
    295

    Maybe try monitoring the 3.3V power. A fast...

    Maybe try monitoring the 3.3V power. A fast responding multimeter is probably fine.

    Perhaps something about your circuitry is drawing too much power at the wrong moment, causing the USB...
  28. Thanks. Looking forward to running it here and...

    Thanks. Looking forward to running it here and trying to reproduce this.

    Please let me know which Raspberry Pi you're using, and if it's the new version 4, whether to plug Teensy into a USB 2 or...
  29. Replies
    14
    Views
    295

    First, unplug Teensy and cold reboot your...

    First, unplug Teensy and cold reboot your computer. Windows 7 has buggy USB drivers. Microsoft fixed long-standing USB bugs in Windows 10, but sadly they never ported those fixes back to any...
  30. Yes, that's what I would have thought. Maybe...

    Yes, that's what I would have thought. Maybe there's already some conflicting use of Serial1 somewhere?
  31. Glad you figured it out. I'm a little surprised...

    Glad you figured it out. I'm a little surprised Serial1 wouldn't work, but Serial2 did.
  32. No Teensy model supports this. USB is the only...

    No Teensy model supports this. USB is the only supported upload method on all Teensy boards.

    Please do not create duplicate threads to re-ask the same question.
  33. I kinda want to see a photo of the build with...

    I kinda want to see a photo of the build with wires and zif sockets, mostly just curiosity. ;)

    But absent the ability to actually see the wiring, another suggestion would be to take the chips out...
  34. Sorry, programming by TTL level serial is not...

    Sorry, programming by TTL level serial is not supported. USB is the only supported way.
  35. Looking at the USB signals is a moot point if the...

    Looking at the USB signals is a moot point if the crystal hasn't started oscillating. And the crystal doesn't start automatically, so if it's not oscillating the problem (probably) isn't the...
  36. Replies
    35
    Views
    670

    Indeed there is a general signal processing...

    Indeed there is a general signal processing theory about oversampling by simple averaging. If the signal has random uncorrelated white noise (and no other sources of error), you gain approximately 1...
  37. You almost certainly have 1 or more wires not...

    You almost certainly have 1 or more wires not connected as they should be.

    Maybe get someone else to meticulously check each wire? This is the sort of thing that really benefits from a fresh pair...
  38. The installer has an undocumented "headless"...

    The installer has an undocumented "headless" feature, which lets you just type the pathname on the command line. Run it like this:



    ./TeensyduinoInstall.linux64 --dir=arduino-1.8.13
  39. Replies
    8
    Views
    294

    Adafruit_SSD1306 works well with those displays. ...

    Adafruit_SSD1306 works well with those displays. Just install it from the Library Manager in Arduino and it will "just work" on Teensy.
  40. The connection to pin 4 on the USB is not needed,...

    The connection to pin 4 on the USB is not needed, so at least you don't need to worry about that as the potential problem.

    Clearly something isn't connected as it should be. Double check the...
  41. Replies
    5
    Views
    299

    Several libraries fit those descriptions. We can...

    Several libraries fit those descriptions. We can help more when you're specific with your questions, like exactly which libraries you're using or want to use. Generally speaking, to give useful...
  42. Calling Serial.println() from this interrupt will...

    Calling Serial.println() from this interrupt will probably work since you're not also using it from the main program. But generally it's a good idea to keep your interrupt code short and avoid...
  43. Replies
    8
    Views
    294

    Connect the center pin of the pot to tothe analog...

    Connect the center pin of the pot to tothe analog input pin on Teensy, and the other 2 pins of the pot to 3.3V and GND.




    Lower resistance pots give more stable results. Below 5K or 10K gives...
  44. Replies
    5
    Views
    204

    Teensy can communicate MIDI in 3 different ways....

    Teensy can communicate MIDI in 3 different ways.

    1: Serial MIDI, which uses 5 pin DIN connectors.

    2: USB device MIDI, where Teensy communicates MIDI with your PC in the manner a USB MIDI...
  45. Replies
    5
    Views
    299

    Most Arduino libraries work. Libraries...

    Most Arduino libraries work.

    Libraries designed to work on any board usually run fine.

    Many of the libraries are for sensors which use I2C or SPI communication. They generally work, because...
  46. Very unusual for either of those 2 parts to get...

    Very unusual for either of those 2 parts to get hot.

    Usually when things go wrong, the PTC fuse (small white part near the USB connector and 3V pin) gets hot. The voltage regulator (6 pin part...
  47. Sadly, even the charge-only cables look like...

    Sadly, even the charge-only cables look like regular USB cables. Some even have the USB logo, infringing the USBIF trademark rules.
  48. I realize you've said your USB cable is good. ...

    I realize you've said your USB cable is good. I'm guessing you're probably not wanting to hear this, but I really do need to say we've heard this sort of problem over and over. It's almost always a...
  49. Just to confirm, is the orange LED blinking each...

    Just to confirm, is the orange LED blinking each time you power up the board? Orange blinking confirms the original program loaded during testing is still present and the Teensy is managing to boot...
  50. This really should work, since that attribute...

    This really should work, since that attribute walk has these lines:



    ATTRS{idVendor}=="16c0"

    ATTRS{idProduct}=="04d0"

    I tested it just now on Ubuntu 18.04. It's definitely...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4