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

  1. If using Teensy 4.x and you want the math done...

    If using Teensy 4.x and you want the math done entire with fast 32 bit float, then:

    exp10f(((float)dB - 6.0f) / 20.0f)

    If you're not careful, it's easy to accidentally promote to 64 bit double...
  2. Normally, where 0 dB -> 1.0 exp10(dB / 20) ...

    Normally, where 0 dB -> 1.0

    exp10(dB / 20)


    For 6dB -> 1.0

    exp10((dB - 6) / 20)
  3. One final comment... this control algorithm for...

    One final comment... this control algorithm for the proportional term isn't ideal, because IntervalTimer update() effect isn't felt on the next error calculation, but on the timer's following cycle. ...
  4. Here's a little program to automatically adjust...

    Here's a little program to automatically adjust the IntervalTimer period.




    IntervalTimer mytimer;
    volatile uint32_t cyclesRisingEdge;
    volatile uint32_t cyclesPulse;
    volatile bool...
  5. Having run this test for a while now... I'm ready...

    Having run this test for a while now... I'm ready to conclude this isn't a bug, just the normal error of the crystal.

    With the Teensy 4.1 on my desk right now, "mytimer.begin(pulse, 1000000.0 -...
  6. Ok, I tried it here, and indeed I'm seeing the...

    Ok, I tried it here, and indeed I'm seeing the problem with this simple program. Maybe we have a bug in IntervalTimer?



    IntervalTimer mytimer;

    void setup() {
    pinMode(2, INPUT);
    ...
  7. To answer your 2 questions... No. This...

    To answer your 2 questions...




    No. This much drift is not normal. Timing is based on the 24 MHz crystal, which should error less than 30ppm.
  8. Replies
    4
    Views
    149

    I know nothing of these plugins, or even which...

    I know nothing of these plugins, or even which software they are for. Can you give a link or more background material?
  9. Replies
    16
    Views
    252

    When I suggested you connect only resistors and...

    When I suggested you connect only resistors and adapt the OctoWS2811 code, you said:




    Then when Mark asks about your requirements:
  10. Replies
    103
    Views
    2,851

    I wonder what portion is license fees to ARM?

    I wonder what portion is license fees to ARM?
  11. Replies
    7
    Views
    100

    My guess is the SPI signals. Maybe add resistors...

    My guess is the SPI signals. Maybe add resistors between Teensy and the wires going to that display.
  12. This sort of error usually means poor quality USB...

    This sort of error usually means poor quality USB signals. Circuitry connected to Teensy which draws too much power can also cause trouble.

    Try a different USB cable / hub / port / computer. If...
  13. Replies
    103
    Views
    2,851

    Wow, I knew it was expensive, but I didn't...

    Wow, I knew it was expensive, but I didn't imagine it was *that* expensive!
  14. Replies
    103
    Views
    2,851

    Personally, I don't tend to think of the...

    Personally, I don't tend to think of the microcontroller market and dev boards as a war or conflict.

    And yeah, since the beginning with Teensy 1.0 in 2008, the situation has always been that you...
  15. You can't use a function that takes inputs with...

    You can't use a function that takes inputs with IntervalTimer.




    Well, yes, you can if you use that approach to rewrite IntervalTimer. It is indeed possible to create something like...
  16. Replies
    103
    Views
    2,851

    Oh, opps....

    Oh, opps....
  17. Replies
    106
    Views
    12,870

    Except for the harmless case of trying to access...

    Except for the harmless case of trying to access the IMXRT chip too early and just retrying moments later, every problem has been a case of the bootloader was relying on the many things the Teensy...
  18. Replies
    103
    Views
    2,851

    Digikey has them in stock, at least for the...

    Digikey has them in stock, at least for the moment.

    https://www.digikey.com/en/products/detail/raspberry-pi/SC0915/13624793
  19. Replies
    16
    Views
    252

    In theory, you could connect resistors in a R-2R...

    In theory, you could connect resistors in a R-2R ladder or just binary weighted to several pins and write 8 bit numbers to a native port. You'd probably set up a timer to trigger a DMA channel to...
  20. Replies
    8
    Views
    183

    After uploading, the bootloader chip uses the...

    After uploading, the bootloader chip uses the hardware reset signal to fully reset the main processor. The serial port hardware is supposed to be fully reset.

    Let me answer now with another...
  21. Replies
    106
    Views
    12,870

    Fixed 1 more very minor issue. Sometimes after...

    Fixed 1 more very minor issue. Sometimes after loading a very small program, the bootloader would attempt to talk to the IMXRT chip before it was really ready. This is really a non-issue, since it...
  22. Replies
    106
    Views
    12,870

    Yup. These are all the boards I've tested in one...

    Yup. These are all the boards I've tested in one way or another over the last several days. All are in working condition for reuse in projects, but once the fuses are altered, they're no longer a...
  23. Replies
    106
    Views
    12,870

    Starting another round of (hopefully final) late...

    Starting another round of (hopefully final) late night testing.

    For a visual idea of how it's going... here's an untested virgin Teensy 4.1 with its MKL02 chip removed and a freshly programmed...
  24. Replies
    106
    Views
    12,870

    Still yet another update... For the last...

    Still yet another update...

    For the last couple days I've been searching for the cause of a strange startup bug, going over everything in the bootloader. But it turned out to not be a booloader...
  25. Replies
    6
    Views
    99

    Looks like it's working but you're printing the...

    Looks like it's working but you're printing the wrong thing in loop().

    Run this...



    #include <DMAChannel.h>

    #define SAMPLES 128
    __attribute__((aligned(32))) static uint32_t...
  26. Replies
    6
    Views
    99

    It should work. Is the DMA transfer ending...

    It should work.

    Is the DMA transfer ending with error status? Or does it complete but without any observable effect?
  27. Replies
    16
    Views
    223

    Arduino's website has 3 downloads for Windows. ...

    Arduino's website has 3 downloads for Windows. Only 2 of them work with Teensyduino.

    23417

    Any chance you actually have this "Windows app" version?
  28. According to the data sheet on page 14, this is a...

    According to the data sheet on page 14, this is a 20ns access time part. A slower (presumably cheaper) version exists with 30ns access time, which is probably a sign whatever you're trying to...
  29. It will only install into a complete copy of the...

    It will only install into a complete copy of the Arduino IDE.
  30. It is indeed headless, but only if you run it...

    It is indeed headless, but only if you run it with the "--dir=" option as documented on the web page under "Command Line Install". If you omit that command line arg, it will run with the GUI.
    ...
  31. Maybe this should be a new thread, but I'll just...

    Maybe this should be a new thread, but I'll just briefly mention my hope for WebHID to become officially supported by Chrome and hopefully other browsers.

    https://web.dev/hid/

    Then it will...
  32. Wow, that's quite a statement to make! The...

    Wow, that's quite a statement to make!

    The Teensyduino installer provides that "headless" non-GUI install option specifically so you can automate adding Teensy's files to a copy of the Arduino...
  33. Check out the "Command Line Install" info on the...

    Check out the "Command Line Install" info on the Teensyduino download page (scroll down... it's after the GUI installer screenshots)

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

    We currently do...
  34. Replies
    5
    Views
    145

    Officially, no. The 2nd USB port is only...

    Officially, no. The 2nd USB port is only supported in USB host mode.

    Unofficially, I believe WMXZ published a library with the normal device mode code converted to use the 2nd USB port. As I...
  35. Replies
    8
    Views
    183

    Can you give me a small self-contained program...

    Can you give me a small self-contained program (using only libs Teensyduino installs) which I can copy into Arduino (not PlatformIO) to reproduce the problem?

    To specifically answer your question:...
  36. Windows doesn't allow programs to write to the...

    Windows doesn't allow programs to write to the folders where the APP software are stored, even if run with admin privilege.

    As Defragster explained, Teensyduino needs to install patches to the...
  37. Replies
    4
    Views
    113

    Yes, but you need to use these longer pins and...

    Yes, but you need to use these longer pins and these sockets (2 of each):

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

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

    These allow the longer...
  38. Replies
    16
    Views
    223

    Usually this error happens on Linux when...

    Usually this error happens on Linux when attempting to install into a distro-provided copy of Arduino.

    Only the original Arduino IDE from Arduino.cc website is supported. The many modified copies...
  39. Replies
    103
    Views
    2,851

    Looks like this should be fairly straightforward....

    Looks like this should be fairly straightforward.

    I've learned the hard way (many more times than I'd like to admit) about putting too much work into supporting a new platform or new tech before...
  40. Replies
    103
    Views
    2,851

    Is CircuitPython supporting use of both M0...

    Is CircuitPython supporting use of both M0 processors? How is (or will) concurrency and synchronization managed?
  41. Did you create a "portable" Arduino IDE and try...

    Did you create a "portable" Arduino IDE and try installing Teensyduino into that copy? That ought to be the simplest way to get Teensy working.

    To fix this problem affecting all Arduino copies...
  42. Replies
    2
    Views
    101

    Linux on Teensy would be somewhere between "not...

    Linux on Teensy would be somewhere between "not worth the incredible effort" to "pretty much impossible".

    There is no MMU, so you're immediately resigned to not-so-useful ucLinux. The best case...
  43. Replies
    106
    Views
    12,870

    Yet another update - programmed 3 chips today and...

    Yet another update - programmed 3 chips today and soldered them to virgin boards. The bootloader comes up and works with Teensy Loader, but still some issues remain with booting up in certain cases....
  44. Replies
    4
    Views
    113

    How many LEDs is this? Is this a huge project...

    How many LEDs is this? Is this a huge project with 400 long LED strips? Or just 400 LEDs total?
  45. Replies
    103
    Views
    2,851

    Teensy 4.0 better be better, since our retail...

    Teensy 4.0 better be better, since our retail price is 5 times as much!
  46. Follow these instructions: ...

    Follow these instructions:

    https://www.arduino.cc/en/Guide/PortableIDE

    The very first step says "a compressed version of the Arduino IDE according to your OS", which for Windows means you...
  47. Replies
    103
    Views
    2,851

    I believe the real lesson was learned by that guy...

    I believe the real lesson was learned by that guy who tried to launch the $9 "C.H.I.P." board.
  48. Click Tools > Boards. Whatever it shows, select...

    Click Tools > Boards. Whatever it shows, select a non-Teensy board like Arduino Uno. Wait just a moment while Arduino updates itself. Then click the menu again and select Teensy 3.6.

    Arduino...
  49. On the serial device raw mode, the Linux native...

    On the serial device raw mode, the Linux native functions are tcgetattr() to fetch the serial port parameters, cfmakeraw() to change the setting in the "struct termios" data, and tcsetattr() to write...
  50. Replies
    103
    Views
    2,851

    To check a digital signature, you need the public...

    To check a digital signature, you need the public key associated with the private key which was used to generate the signature. The public key isn't secret. You can put a copy of it into the...
Results 1 to 50 of 499
Page 1 of 10 1 2 3 4