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.13 seconds; generated 44 minute(s) ago.

  1. Replies
    6
    Views
    74

    Yes. Look on the product page. ...

    Yes. Look on the product page.

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

    Scroll down to "Software" and look for "Command Line with Makefile".

    Similar info is also on the Teensyduino download...
  2. Replies
    6
    Views
    74

    I can't see your screen and I know know precisely...

    I can't see your screen and I know know precisely what you're clicking and typing, but my best guess is you may have installed Teensyduino into a copy of Arduino you downloaded from Arduino.cc (the...
  3. While far from elegant, you could just change the...

    While far from elegant, you could just change the delay to be the length of your WAV file.


    void loop() {
    playSdWav1.play("SDTEST2.WAV");
    delay(93200); // wait for SDTEST2.WAV to...
  4. AGND on Teensy 3.2, 3.5, 3.6 is meant to help...

    AGND on Teensy 3.2, 3.5, 3.6 is meant to help with the analog input pins. It's unrelated to the audio shield (which is all digital audio signals as far as Teensy is concerned), except for the...
  5. I would not recommend connecting the two 3.3V...

    I would not recommend connecting the two 3.3V outputs together. Especially if the DC-DC converter is a modern design with a synchronous rectifier, that would end up with a pretty unsafe situation.
    ...
  6. The other thing you can do is drive the coil with...

    The other thing you can do is drive the coil with much higher voltage while it's changing current, so the relay switch much faster. There are at least 3 established way to do this.

    1: The simple...
  7. I can't say whether it will solve all the...

    I can't say whether it will solve all the problems you're seeing. But generally speaking, yes, if you want the relay coil to switch off at approximately the same speed as it turns on, you do need to...
  8. Replies
    3
    Views
    55

    Arduino is using a non-Teensy copy of the SD...

    Arduino is using a non-Teensy copy of the SD library.

    First, check that Teensy is selected in Tools > Boards.

    Next, scroll up from the error message and look for info about duplicate libraries....
  9. Teensy Loader 1.54-beta7 was also updated to use...

    Teensy Loader 1.54-beta7 was also updated to use GTK3. Previously we linked to GTK2.

    Ubuntu 20.04.2 has a broken GTK2 system (but oddly, 20.04.1 and original 20.04 work fine) which cause a 25-30...
  10. Might be worth mentioning the udev rules were...

    Might be worth mentioning the udev rules were updated (for upcoming 1.54) to address multiple issues seen on newer Linux distros.

    This is the latest. The number in the filename also changed from...
  11. Replies
    361
    Views
    41,218

    In the 10 months since Teensy 4.1 was released,...

    In the 10 months since Teensy 4.1 was released, we've printed 3 different versions of its pinout documentation card. The first 2 had basically a blank back side. While less than ideal, leaving the...
  12. Thread: Pwm

    by PaulStoffregen
    Replies
    6
    Views
    183

    The prescaler already is at 1 (fastest possible)...

    The prescaler already is at 1 (fastest possible) with the settings mentioned.

    FlexPWM and QTimer run from the peripheral clock (called "IPG" clock in the manual), not from the CPU clock. The...
  13. Replies
    2
    Views
    73

    Maybe give Arduino 1.8.13 with Teensyduino...

    Maybe give Arduino 1.8.13 with Teensyduino 1.54-beta7 a try. Even though the Arduino IDE's editor is pretty painful, at least having it set up can give you a way to compare results to your...
  14. Replies
    4
    Views
    119

    Yes, this should be possible. You'll need...

    Yes, this should be possible. You'll need another Teensy with USB host. Teensy 3.6 and 4.1 have USB host on an easy-to-use 5 pins where you can solder pins which mate with this cable.
    ...
  15. Thread: Pwm

    by PaulStoffregen
    Replies
    6
    Views
    183

    Yes, but not by a whole bit. The software will...

    Yes, but not by a whole bit. The software will linearly map your desired 4096 steps onto the 3750 steps the hardware can provide. So if we think of stepping up in PWM duty cycle 1 number at a time,...
  16. Ah, the NMI pin strikes again. This is...

    Ah, the NMI pin strikes again.

    This is actually mentioned in the Troubleshooting section on the MKL02 page.
  17. Is there any chance these chips might have been...

    Is there any chance these chips might have been pre-programmed with someone else's firmware?

    Even if they're not blank, even if security is locked, the bootloader should still manage to erase and...
  18. Replies
    11
    Views
    221

    The sad reality is many more minor errors are...

    The sad reality is many more minor errors are lurking in those 3437 pages. Some of them confused me for many hours too!
  19. Replies
    11
    Views
    221

    Yup, it's an error in NXP's documentation.

    Yup, it's an error in NXP's documentation.
  20. That's even more mysterious! A virgin MK20 chip...

    That's even more mysterious! A virgin MK20 chip is supposed to be pulsing its reset line low, as it will be repeatedly watchdog rebooting. Normally a DC voltmeter will read about 0.2 to 0.3 volts,...
  21. Well, that's quite a mystery. Every Teensy 3.2...

    Well, that's quite a mystery. Every Teensy 3.2 is built with a virgin MK20 chip and works fine.

    Is there any chance this might have been just a soldering issue with 1 chip? Do you have more than...
  22. That file exists because I've been planning to...

    That file exists because I've been planning to add this to Teensy's core library for a very long time. But the FS.h in 1.53's teensy3 folder isn't functional. It's more of a placeholder or...
  23. The good news is chips like PCM1502A are really...

    The good news is chips like PCM1502A are really simple. To interface with Teensy, you just connect the I2S data and 3 clock signals. Some chips use different names so you need to figure out which...
  24. You need AudioMemory() in setup(). See any of...

    You need AudioMemory() in setup(). See any of the examples in File > Examples > Audio.

    To get a ADSR or AD style control signal, you would feed the DC output through an envelope effect. For only...
  25. Just to confirm, which version of Teensyduino do...

    Just to confirm, which version of Teensyduino do you have installed? In Arduino, click Help > About to check.

    Serial1.addMemoryForRead() is relatively new for Teensy 3.x.
  26. Replies
    10
    Views
    367

    About your 2 questions... To answer...

    About your 2 questions...




    To answer directly, yes, you probably would see some improvement, but it's unlikely to be enough. This approach is simply not a good way to read a switch.
  27. Replies
    10
    Views
    367

    A quick search turned up this schematic. 23910...

    A quick search turned up this schematic.

    23910

    Is this the switch you're using?
  28. I've updated the Teensy 3.2 page...

    I've updated the Teensy 3.2 page, under Power > VIN Pin, with a link to this thread. Hopefully if anyone else cuts the trace and needs to repair, it will help them find this info.
  29. It found a chip with address 0x1F. From within...

    It found a chip with address 0x1F. From within the library:



    #define FXOS8700_I2C_ADDR0 0x1E // SA1 = Gnd, SA0 = Gnd
    #define FXOS8700_I2C_ADDR1 0x1D // SA1 = Gnd, SA0 =...
  30. Yes. Or just run the Arduino installer again. ...

    Yes. Or just run the Arduino installer again. It will automatically uninstall before installing the new copy.
  31. After downloading, you do need to actually run...

    After downloading, you do need to actually run the installer. Quit Arduino before you run it.

    If using Windows with Arduino installed the default way (the EXE installer, not the Windows store...
  32. Get 1.54-beta7 here:...

    Get 1.54-beta7 here:
    https://forum.pjrc.com/threads/66357-Teensyduino-1-54-Beta-7
  33. First run File > Examples > Wire > Scanner to...

    First run File > Examples > Wire > Scanner to check which I2C devices are really connected and what addresses they are actually using.
  34. First, upgrade to 1.54-beta7, if you haven't...

    First, upgrade to 1.54-beta7, if you haven't already. The old slow SD lib is gone, now just a wrapper for fast SdFat.

    You may need to use IntervalTimer to run your code that collects incoming...
  35. Replies
    2
    Views
    80

    It depends. A typical modern PC might have 14...

    It depends.

    A typical modern PC might have 14 USB ports (including internal ones on motherboard headers), but only 3 USB controllers. Generally speaking, all the physical ports from the same...
  36. Replies
    9
    Views
    181

    I don't know. I haven't tested these ancient...

    I don't know. I haven't tested these ancient LCDs in quite some time.

    I wrote LiquidCrystalFast over 10 years ago, when we only had slow 8 bit boards. It was designed to get the best performance...
  37. Kurt is right. The Teensy 4.x hardware simply...

    Kurt is right. The Teensy 4.x hardware simply does not support enough endpoints to add a 4th CDC serial.

    But it could be done on Teensy 3.x. Each CDC serial needs 2 endpoints (1 bidirectional...
  38. Replies
    9
    Views
    181

    First a word of caution. These displays usually...

    First a word of caution. These displays usually run with 5V power. Of the 32 bit Teensy models, only 3.2 and 3.5 are 5V tolerant.

    The 6 signal mode is safe, because all 6 signals are always in...
  39. Replies
    2
    Views
    100

    Not all of the chip's pins can come to the...

    Not all of the chip's pins can come to the outside pins on Teensy. Some are connected to the ethernet and flash chips on the PCB. Some aren't connected to anything at all, only because it's not...
  40. This probably won't help much, but here's a page...

    This probably won't help much, but here's a page written 10 years ago when I tested Oleg's original hardware (long before any Chinese clones existed) with Teensy 2.0 and Teensy++ 2.0, which were the...
  41. Please show complete programs. Even if the rest...

    Please show complete programs. Even if the rest of the code is trivial, it is much easier to answer if we can copy the code into Arduino and run on a Teensy without the work of adding (guessing) the...
  42. The connector is a "magjack", which means is more...

    The connector is a "magjack", which means is more than just a plain RJ45. It has the ethernet magnetic coupling parts built in.

    The kit does more or less just break out the pins, but to a...
  43. USB can do 2 meters. It's the way needing the...

    USB can do 2 meters. It's the way needing the least amount of extra hardware, just a good quality 2 meter cable. USB provides power, but for 2 meters make sure the cable has #24 or larger wires for...
  44. Good point. The documentation on the USB serial...

    Good point. The documentation on the USB serial page says: "Initialize the Serial object. The baud rate is ignored and communication always occurs at full USB speed."

    I've updated that page with...
  45. You can generally expect Teensy 4.0 & 4.1 to give...

    You can generally expect Teensy 4.0 & 4.1 to give about 25% better DSP performance than STM32H7.

    They have exactly the same Cortex-M7 processor, but Teensy's runs at 600 MHz compared to only 480...
  46. Replies
    361
    Views
    41,218

    Well, this is also a discussion of pinout & form...

    Well, this is also a discussion of pinout & form factor for the next Teensy.
  47. Replies
    17
    Views
    1,313

    Like most details of the audio library, it's...

    Like most details of the audio library, it's documented in the design tool.

    23887

    If you click any of these 3 outputs in the left column, their documentation appears in the right side column. ...
  48. Replies
    41
    Views
    1,312

    I've updated the Serial.rts() documentation on...

    I've updated the Serial.rts() documentation on the website to mention this Windows bug, with a link to this thread.

    https://www.pjrc.com/teensy/td_serial.html
  49. Replies
    107
    Views
    5,034

    Quick followup to this old thread, 1.47-beta7...

    Quick followup to this old thread, 1.47-beta7 adds more detailed printing of memory usage. It does most but not all of the things discussed here.

    This is the source code:...
  50. Replies
    8
    Views
    548

    I unblocked this IP.

    I unblocked this IP.
Results 1 to 50 of 499
Page 1 of 10 1 2 3 4