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

Search:

Type: Posts; User: luni

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    350

    Maybe this ...

    Maybe this https://github.com/TeensyUser/doc/wiki can make you happy. It has a chapter about alternative toolchains and uploaders.
  2. Replies
    208
    Views
    16,682

    Should be empty now...

    Should be empty now...
  3. Replies
    6
    Views
    417

    attachYieldFunc

    Here yet another additon to my TeensyHelpers repository:

    Sometimes your have code that needs to be called by the user as often as possible. Prominent examples are AccelStepper where you are...
  4. Replies
    208
    Views
    16,682

    Sure, you will be able to choose share/copy for...

    Sure, you will be able to choose share/copy for each library. Similar to the 'copy the core files' to the project setting.

    BTW: I'm also thinking of doing a library development mode which makes...
  5. Replies
    208
    Views
    16,682

    The c_cpp_properties.json should be autogenerated...

    The c_cpp_properties.json should be autogenerated if, after you adjust vsTeensy.json, you reopen the project in VisualTeensy and save it again.

    The "dummy" project is there to be able (in a later...
  6. Replies
    208
    Views
    16,682

    This is still on my todo list. :-( However,...

    This is still on my todo list. :-( However, VisualTeensy only shares libraries from the 'shared library repository'. Libraries from the other repositories are copied to the project by default. So,...
  7. Replies
    3
    Views
    201

    Any chance I can talk you into testing my encoder...

    Any chance I can talk you into testing my encoder library https://github.com/luni64/EncoderTool/wiki?


    It uses dedicated state machines for encoders with mechanical detents (at 2 or 4...
  8. Replies
    6
    Views
    417

    I added an option to the IntervalTimerEx.h header...

    I added an option to the IntervalTimerEx.h header for those who prefer good old void(*)(void* state) callbacks to pass state to callbacks.

    Instead of the std::function<> way :


    class...
  9. Replies
    21
    Views
    6,567

    What's wrong with delayNanoseconds() ? ...

    What's wrong with delayNanoseconds() ? https://github.com/PaulStoffregen/cores/blob/b1ba3875803219a13df7ebfd641b3ddfd9689240/teensy4/core_pins.h#L1804
    If you need it for T3.x it should be...
  10. Replies
    21
    Views
    6,567

    The toolchain generates *.lst files per default....

    The toolchain generates *.lst files per default. They are copied to the build folder. Here https://github.com/TeensyUser/doc/wiki/GCC#analyzing-compiler-output a link to the user WIKI with some...
  11. Thread: TeensyTimerTool

    by luni
    Replies
    217
    Views
    9,749

    Very good :-)

    Very good :-)
  12. Thread: TeensyTimerTool

    by luni
    Replies
    217
    Views
    9,749

    Nothing I'm aware of. If you can post some...

    Nothing I'm aware of. If you can post some minimal example showing the effect I can have a look.
  13. You can also use a ready to go, multi channel...

    You can also use a ready to go, multi channel servo driver like this one https://www.adafruit.com/product/815. Besides not having to care about pin protection, voltage translation etc you can...
  14. I never used the TFT library and can be...

    I never used the TFT library and can be completely wrong but doesn't the API suggests to call waitUpdateAsyncComplete(void) before you do a new update? ...
  15. Replies
    12
    Views
    278

    Perfect, sounds like a simple solution ...

    Perfect, sounds like a simple solution ...
  16. Replies
    12
    Views
    278

    Right Wrong :-) while in Halfkay mode...

    Right



    Wrong :-)

    while in Halfkay mode the board accepts a reset command which does not load new firmware but just resets the board. Technically, in halfKay mode the board acts as HID...
  17. Replies
    12
    Views
    278

    Couldn't you simply use tyCommander...

    Couldn't you simply use tyCommander? It has a reset button. If your board hangs so badly that it doesn't respond to the reset button you can always press the reboot button on the board prior to...
  18. Does this work? You might need to finetune it to...

    Does this work? You might need to finetune it to your needs...



    void setup()
    {
    while(!Serial);

    for (int value = -1200; value <= 1200; value++)
    {
  19. Doesn't answer your question about the Quad...

    Doesn't answer your question about the Quad timers but if you just need to generate quadrature signals you can have a look here https://github.com/luni64/EncSim for a corresponding library. It works...
  20. Replies
    6
    Views
    417

    Oh, that sounds complicated :-) Yes,...

    Oh, that sounds complicated :-)



    Yes, definitely. The second example in #1 shows how to attach a non static member function to the IntervalTimerEx.

    (BTW, all hard- and software timers of...
  21. Replies
    6
    Views
    417

    attachInterruptEx

    I also added an attachInterruptEx function to the repo. Same as with IntervalTimerEx from above it does exactly the same as the standard function but accepts anything callable (functions, lambdas,...
  22. Replies
    6
    Views
    417

    IntervalTimerEx - Callbacks with state

    I often need to pass state to callbacks attached to an IntervalTimer. Since the IntervalTimer only accepts void(*)() callbacks, it is a bit tedious to work around. I therefore did a shallow wrapper...
  23. Would a RS232 Half duplex driver work?...

    Would a RS232 Half duplex driver work? https://www.analog.com/media/en/technical-documentation/data-sheets/2801234fe.pdf? On page 12, fig15 you find an application which should do what you want. You...
  24. Actually, to expand the 4067 based solution to 32...

    Actually, to expand the 4067 based solution to 32 encoders you only need an additional inverter (or transistor) to get a 5th address line (S4). you can directly connect the outputs of the 4067...
  25. Added support for encoder buttons in v2.1.0. They...

    Added support for encoder buttons in v2.1.0. They are debounced by the Bounce2 library. Unfortunately the Bounce2 library included in Teensyduino is a bit outdated. You need to install the latest...
  26. Replies
    2
    Views
    176

    Without any additional header you can also do: ...

    Without any additional header you can also do:



    for(int pin : {1,2,17})
    {
    pinMode(pin, OUTPUT);
    // or of course any other function requiring the pins...
    }
  27. Replies
    2
    Views
    176

    pinMode & initializer lists

    Here a (IMHO) nice supplement for the pinMode function utilizing 'modern' c++ features

    file: pinModeEx.h (attached)


    #include <initializer_list>
    #include "core_pins.h"

    inline void...
  28. Congratulations, looks cool indeed. Here a few...

    Congratulations, looks cool indeed. Here a few remarks:



    The T3.2 is 5V tolerant by design. So, the voltage divider to get the 5V input down to 2.6V is not really needed. (But won't hurt of...
  29. I once did it for a T3.5 which worked good: Here...

    I once did it for a T3.5 which worked good: Here some info, a video of a debugging session and links to the required hardware changes https://github.com/luni64/VisualTeensy/releases/tag/v0.9.7.0....
  30. While it is of course possible to change the...

    While it is of course possible to change the period of an Intervaltimer on the fly it might be more direct to use one shot timers instead. In case you are interested, here a version using 4 of the 16...
  31. Replies
    26
    Views
    1,546

    I had a look at the grblHAL repositiory. It...

    I had a look at the grblHAL repositiory. It indeed has much improved lathe support. Looks like I have a nice winter project :-)
  32. Replies
    26
    Views
    1,546

    Your board looks good by the way. I used GRBL...

    Your board looks good by the way. I used GRBL (the AVR version) some years ago to automate my lathe but it didn't support lathes very well then. E.g. no possibility to cut threads. Did this change by...
  33. Replies
    26
    Views
    1,546

    Cool, now the chinese are even cloning chinese...

    Cool, now the chinese are even cloning chinese (Leadshine) products :-) Anyway, I use an original Leadshine DM556 and can confirm that this is a really good driver.
  34. Replies
    208
    Views
    16,682

    Regarding the comma + space, this seems to be...

    Regarding the comma + space, this seems to be just a comma separated list of folder and filename. If you start the loader from Arduino you see the same.
  35. Replies
    208
    Views
    16,682

    That is absolutely strange, I was able to...

    That is absolutely strange, I was able to reproduce your issue, then I switched back to an Arduino installation without spaces in the path and it worked. Switching back to the installation with the...
  36. Replies
    208
    Views
    16,682

    Thanks, I can reproduce this with your settings....

    Thanks, I can reproduce this with your settings. Strange thing, I'll have a look now.



    Unfortunately 'make' gets absolutely confused if it works on a path with spaces. On the other hand the...
  37. Replies
    208
    Views
    16,682

    I just gave it a quick try. Works without issue...

    I just gave it a quick try. Works without issue here.

    Can you please also remove the @ from the upload command in the makefile to see what it actually spits out:

    21587


    I get a perfectly...
  38. Replies
    208
    Views
    16,682

    That's interesting. I don't use the loader much...

    That's interesting. I don't use the loader much (I prefer TyCommander). So, it might well be that a bug sneaked into the last release. If you post the generated makefile I can have a look.


    ...
  39. Good, don't forget to set the count mode to...

    Good, don't forget to set the count mode to 'CountMode::full ' if you have encoders with no detents. Default is 'quarter'. Will be interesting to see it working with 16 encoders and the 74165. ...
  40. OMG, never thought that library.properties is...

    OMG, never thought that library.properties is actually parsed during build... why? Anyway, looks like some line breaks sneaked into it which broke it. I'll fix that tomorrow.
  41. Replies
    6
    Views
    211

    Here a simple method to extend the cycle counter...

    Here a simple method to extend the cycle counter to 64bit https://github.com/TeensyUser/doc/wiki/Using-the-cycle-counter
  42. You did see the schematic and boards I used here:...

    You did see the schematic and boards I used here: https://github.com/luni64/EncoderTool/tree/master/extras ?



    Since the T3.2 is 5V tolerant you can directly connect the '165s to the Teensy and...
  43. Sorry for the late answer, didn't see your post. ...

    Sorry for the late answer, didn't see your post.


    Actually this lib is not maintained anymore. I did a much better one a couple of month ago, but since I was distracted byCOVID I never finished...
  44. This is why I thought it might make a good...

    This is why I thought it might make a good example for the library on GitHub :-))


    Good, I was wondering why you placed the integration time such that it is barely overlapping the trigger pulse....
  45. I'd not use #defines at all. You can always do ...

    I'd not use #defines at all. You can always do



    constexpr Stream& SenselSerialA = Serial3;
    constexpr Stream& SenselSerialB = Serial2;
    constexpr Stream& SenselDebugSerial = Serial;


    to...
  46. I released version 0.2.1...

    I released version 0.2.1 of the TeensyTimerTool on gitHub and added the example DoubleExposure
    https://github.com/luni64/TeensyTimerTool/tree/master/examples/DoubleExposure. Documentation will be...
  47. Actually I already worked out something which is...

    Actually I already worked out something which is working nice (submicrosecond jitter on all timings). Since it turned out to be a nice application of the TeensyTimerTool I'd like to publish it as an...
  48. The interval timers are definitely 32bit. But as...

    The interval timers are definitely 32bit. But as you mentioned, you only have 4 of them.
  49. The tick timers do exactly that.

    The tick timers do exactly that.
  50. Interesting way to do this. I'd pack that into 3...

    Interesting way to do this. I'd pack that into 3 simple state machines. One for each laser and one for the camera. Anyway should work with the tick timers as well.

    Following remarks:

    The tick...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4