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.

  1. Replies
    1
    Views
    77

    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.
  2. Add SPI.begin() in your setup() function.

    Add SPI.begin() in your setup() function.
  3. Replies
    5
    Views
    129

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

    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...
  5. Replies
    3
    Views
    107

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

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

    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...
  9. 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?
  10. 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.
  11. 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.
  12. 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...
  13. Sorry, programming by TTL level serial is not...

    Sorry, programming by TTL level serial is not supported. USB is the only supported way.
  14. 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...
  15. Replies
    32
    Views
    516

    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...
  16. 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...
  17. 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
  18. Replies
    8
    Views
    276

    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.
  19. 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...
  20. Replies
    5
    Views
    282

    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...
  21. 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...
  22. Replies
    8
    Views
    276

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

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

    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...
  25. 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...
  26. 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.
  27. 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...
  28. 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...
  29. 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...
  30. I'm not even sure I know what "this" really is. ...

    I'm not even sure I know what "this" really is. Any chance you can show us the code you're trying and give some more specific detail about these pulses (maybe a oscilloscope screenshot)?
  31. Try adding delay(50); after Serial3.begin(), so...

    Try adding delay(50); after Serial3.begin(), so the transmit pin is idle for a while before you send anything.

    Or try connecting a 10K resistor between TX3 and 3.3V, so the transmit pin is at the...
  32. snprintf() works, perhaps awkwardly if you like...

    snprintf() works, perhaps awkwardly if you like C++, but it's highly reliable ;)



    void setup() {
    while (!Serial);
    double x = 1.000000123L;
    char buf[24];
    snprintf(buf, 24, "%.9lf",...
  33. Please run "udevadm info --attribute-walk...

    Please run "udevadm info --attribute-walk /dev/hidraw3" and copy the lengthy output here, so we can see what's really going on.
  34. Replies
    23
    Views
    895

    Can Discourse import our existing vBulletin data?

    Can Discourse import our existing vBulletin data?
  35. Arduino String and Serial.println only support 32...

    Arduino String and Serial.println only support 32 bit floats.

    To print 64 bit double, use Serial.printf(). To convert to a string, use snprintf().



    void setup() {
    Serial.begin(9600);
    }
  36. Yes, looks like the C library is defining y0(),...

    Yes, looks like the C library is defining y0(), y1(), yn(), j0() and other functions with global scope.

    https://www.gnu.org/software/libc/manual/html_node/Special-Functions.html

    These names can...
  37. Replies
    8
    Views
    177

    Many people have reported both of these parts to...

    Many people have reported both of these parts to work.
  38. Maybe first re-heat the 8 solder connections? ...

    Maybe first re-heat the 8 solder connections? Apply liquid flux, if you have any. Don't be shy about leaving your soldering iron in contact for several seconds, since you can't make the chip any...
  39. That's the purpose of volatile. It forces code...

    That's the purpose of volatile. It forces code to actually read the variable, so you *can* change it in the ISR and have your program detect the change.

    Without volatile the compiler makes a lot...
  40. Cortex-M7 has a 32K data cache. To properly test...

    Cortex-M7 has a 32K data cache. To properly test the PSRAM, you need to flush and delete the cached data with arm_dcache_flush_delete(address, size). See the memory test program for an example.
    ...
  41. Microsoft loves their Windows Registry, so much...

    Microsoft loves their Windows Registry, so much that they cache USB device detection into and pull it from the registry and use that cached info, even when it's just been freshly read from the USB...
  42. Replies
    4
    Views
    243

    The test fixtures we use for testing each Teensy...

    The test fixtures we use for testing each Teensy do this by driving all (or almost all) the pins with a shift register. Resistors are used between the shift register outputs and Teensy pins. Some...
  43. Agreed, you need to solder the connections to the...

    Agreed, you need to solder the connections to the switches.

    I still recommend running File > Examples > Teensy > USB_Keyboard > Buttons simply to test the hardware using known-good software.
    ...
  44. Yes, absolutely, we see this sort of thing all...

    Yes, absolutely, we see this sort of thing all the time. It can be very difficult to know whether a problem is caused by hardware or software when you're creating both.

    One way to troubleshoot...
  45. Replies
    22
    Views
    435

    Any chance you could explain how to run this...

    Any chance you could explain how to run this test?

    What are those plots? Are they from a logic analyzer or USB oscilloscope? Is that the voltage on pin 13? Or are you collecting data somehow...
  46. If that hardware is still connected, remove...

    If that hardware is still connected, remove everything from the Teensy 3.6 except the USB cable.

    If it's still not responding, try measuring the voltage at VIN (which should be approx 5V if USB...
  47. This library is using the FTM1 timer. For...

    This library is using the FTM1 timer. For documentation on FTM1 on Teensy 3.2, you need the MK20DX256 manual. Get it here:

    https://www.pjrc.com/teensy/datasheets.html

    The 2 registers which...
  48. Replies
    4
    Views
    418

    Yes, I will admit, my concern about bottom side...

    Yes, I will admit, my concern about bottom side pads & signal integrity was overly conservative. Several other decisions that went into Teensy 4.0 could probably also, in hindsight, be considered on...
  49. Usually these sorts of strange noise problems are...

    Usually these sorts of strange noise problems are a "ground loop". Usually there is another connection, like to an amplifier, where some of the power supply current unintentionally flows through...
  50. Replies
    4
    Views
    167

    Maybe the wires aren't connected properly? Or...

    Maybe the wires aren't connected properly? Or maybe there's a mistake somewhere in your program? All it would take is one "Serial4" not changed to "Serial7", sort of like how your message has...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4