Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • luni's Avatar
    Today, 08:55 PM
    Yes, there is already a PR for this
    27 replies | 1933 view(s)
  • luni's Avatar
    09-18-2023, 05:48 AM
    I have had good experiences with this library: https://github.com/dxinteractive/ResponsiveAnalogRead
    6 replies | 163 view(s)
  • luni's Avatar
    09-14-2023, 05:41 AM
    IIRC the GPIO registers are using the same bus as the quad timers. I was interested if the compiler generates unnecessary complicated code for this void setup() { constexpr IMXRT_TMR_t* TMR3 =...
    11 replies | 228 view(s)
  • luni's Avatar
    09-12-2023, 05:18 AM
    There is some activity going on in the current Teensyduino beta where the IntervalTimer already has a std::function like interface. Don't know if Paul plans to add this to attachInterrupt as well. Anyway, you can...
    10 replies | 1780 view(s)
  • luni's Avatar
    09-10-2023, 03:05 PM
    luni replied to a thread Transfer to PC in Project Guidance
    Oh, I did my PhD in stimulated raman scattering some 30 years ago which was a lot of fun :-) Will be a challenge to squeeze out enough sensitivity for Raman spectroscopy from a line sensor. Did you think of using your...
    26 replies | 513 view(s)
  • luni's Avatar
    09-10-2023, 06:03 AM
    luni replied to a thread Transfer to PC in Project Guidance
    Your sensor has a typical readout rate of 500kHz. You will probably transmitt 16bit data which gives a required transfer speed of 1Mbyte per second. This is WAY slower than a T4 can tranmitt to a windows PC without any...
    26 replies | 513 view(s)
  • luni's Avatar
    09-09-2023, 05:32 AM
    I'm afraid this only affects the counter but not the actual motors. One needs to set the dir pins as well. But doing this right before the step is too late. Drivers need a couple of us lead time on the dir signal...
    165 replies | 56205 view(s)
  • luni's Avatar
    09-07-2023, 06:00 PM
    Added that to the current version on gitHub. Let me know if it works for you. Example: #include "Arduino.h" #include "teensystep4.h" using namespace TS4; Stepper s1(0, 1);
    165 replies | 56205 view(s)
  • luni's Avatar
    09-07-2023, 05:48 PM
    Sorry, a dependency on c++17 sneaked into the RTC code. For a quick fix you can either downgrade the TimerTool to v1.3.1 or upgrade TeensyDuino to the current beta version.
    1 replies | 81 view(s)
  • luni's Avatar
    09-06-2023, 07:16 AM
    Yes, I am. The traces were done with one of those cheap logic analyzers e.g.:...
    18 replies | 453 view(s)
  • luni's Avatar
    09-05-2023, 08:49 AM
    Doing this signal generation interrupt based will generate a lot of overhead. So I'd at least not use 2 timers but only one which runs at 2MHz. In its callback you could then decide if you need to set the SH pin or not....
    18 replies | 453 view(s)
  • luni's Avatar
    08-18-2023, 12:09 PM
    This is a known issue. See e.g. here: https://forum.pjrc.com/threads/71420-Undefined-reference-to-_write?p=318867&viewfull=1#post318867 Easiest workaround is to add an empty Serial.println("") statement in setup.
    3 replies | 203 view(s)
  • luni's Avatar
    08-17-2023, 04:02 PM
    @KrisKasprzak: Sorry for the late reply. Your beep() probably clashes with the timers used by TeensyStep. It defaults to the 4 timers of the TMR3 module. It can be changed to the other TMRs if needed: //... void...
    165 replies | 56205 view(s)
  • luni's Avatar
    08-17-2023, 03:52 PM
    Thanks for the fix and the tests. Result looks perfect. Hope to be able to add this to the library over the weekend.
    165 replies | 56205 view(s)
  • luni's Avatar
    08-11-2023, 05:05 AM
    Great! When testing, I had the impression it still had an issue with doing successive overrideSpeed calls. Did you test this as well? If it works now I'll remove the debug prints and merge it into the main branch.
    165 replies | 56205 view(s)
  • luni's Avatar
    08-08-2023, 06:27 PM
    Thanks that will help. I already started debugging and fixed a few things in the overrideSpeed code. But, there is still something wrong. Hope I'll find some time to work on it the next days...
    165 replies | 56205 view(s)
  • luni's Avatar
    08-08-2023, 06:16 PM
    luni replied to a thread TeensyTimerTool in General Discussion
    Sorry, as defragster mentioned I forgot to enable the RTC timer for T4x boards only. Should be fixed in 1.4.1. @Manu: can you try if it compiles now?
    364 replies | 74831 view(s)
  • luni's Avatar
    08-02-2023, 06:44 AM
    If a hex file uploaded with the 1.57 uploader works, but the same hex file uploaded with the 1.58 uploader doesn't work, I'd suspect something in the uploader? Does it work uploading with tyTools...
    10 replies | 410 view(s)
  • luni's Avatar
    08-01-2023, 01:57 PM
    luni replied to a thread Teensy 4.0 HELP! in General Discussion
    Your global declaration of PL_Light light; PL_Radio radio; calls the the constructors of light and radio very early in the startup process, when not all of the hardware is initialized yet. Accessing hardware in...
    6 replies | 523 view(s)
  • luni's Avatar
    07-28-2023, 12:56 PM
    Yes, this replaces the controller moves. You can either do it on the fly as you did or you can predefine the groups you need. The groups are cheap, you can have as many as you like. GetPosition works, GetVelocity...
    165 replies | 56205 view(s)
  • luni's Avatar
    07-26-2023, 05:38 PM
    This lib is still very experimental. But I'll have a look. However it will l take a couple of days I'm afraid.
    165 replies | 56205 view(s)
No More Results
About luni

Basic Information

Age
58
About luni
Location:
Germany

Statistics


Total Posts
Total Posts
2,105
Posts Per Day
0.61
Last Post
Teensyduino 1.59 Beta #3 Today 08:55 PM
General Information
Join Date
04-27-2014