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. 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? ...
  2. Replies
    12
    Views
    235

    Perfect, sounds like a simple solution ...

    Perfect, sounds like a simple solution ...
  3. Replies
    12
    Views
    235

    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...
  4. Replies
    12
    Views
    235

    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...
  5. 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++)
    {
  6. 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...
  7. Replies
    3
    Views
    219

    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...
  8. Replies
    3
    Views
    219

    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,...
  9. Replies
    3
    Views
    219

    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...
  10. 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...
  11. 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...
  12. 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...
  13. Replies
    2
    Views
    171

    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...
    }
  14. Replies
    2
    Views
    171

    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...
  15. 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...
  16. 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....
  17. 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...
  18. Replies
    26
    Views
    1,317

    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 :-)
  19. Replies
    26
    Views
    1,317

    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...
  20. Replies
    26
    Views
    1,317

    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.
  21. Replies
    200
    Views
    16,336

    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.
  22. Replies
    200
    Views
    16,336

    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...
  23. Replies
    200
    Views
    16,336

    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...
  24. Replies
    200
    Views
    16,336

    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...
  25. Replies
    200
    Views
    16,336

    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.


    ...
  26. 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. ...
  27. 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.
  28. Replies
    6
    Views
    188

    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
  29. 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...
  30. 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...
  31. 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....
  32. 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...
  33. 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...
  34. 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...
  35. The interval timers are definitely 32bit. But as...

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

    The tick timers do exactly that.
  37. 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...
  38. Thread: Encoder Tester

    by luni
    Replies
    12
    Views
    1,646

    EncSim v2.2.0.0

    I could reproduce you issues and fixed them

    Explanation:
    To be able to generate non 90 quadrature signals I used chained one shot timers. However, triggering those timers takes some time so...
  39. Thread: Encoder Tester

    by luni
    Replies
    12
    Views
    1,646

    Interesting, I'll have a look but will need some...

    Interesting, I'll have a look but will need some time
  40. Replies
    131
    Views
    23,121

    If you want it permanently highlighted you can...

    If you want it permanently highlighted you can search for it. Easiest is:


    Double click on the word to select it.
    CTRL+F opens the find dialog with the selection already filled in


    Now...
  41. Actually there is not much magic needed. One...

    Actually there is not much magic needed. One simply has to specialize the templates for Arduino strings. Here my try. To test it, copy the code after the EEPromClass in EEPROM.h.




    //...
  42. Replies
    131
    Views
    23,121

    vsCode is doing this per default. You don't even...

    vsCode is doing this per default. You don't even have to search, just selecting a word will highlight all others.
  43. Thread: Encoder Tester

    by luni
    Replies
    12
    Views
    1,646

    I updated the GitHub repository with the index...

    I updated the GitHub repository with the index pulse generation feature: (v2.1.0.0) https://github.com/luni64/EncSim/releases Let me know if it works for you.
  44. Thread: Encoder Tester

    by luni
    Replies
    12
    Views
    1,646

    The start of the Z pulse obviously depends on the...

    The start of the Z pulse obviously depends on the period ('ppr') you select. E.g., if you set the period to an odd number, the starting edge for the Z pulse will change each time, if you use a...
  45. Thread: Encoder Tester

    by luni
    Replies
    12
    Views
    1,646

    Glad you like it. By 'trigger' you mean a...

    Glad you like it.


    By 'trigger' you mean a reference/zero pulse issued at a settable number of counts, right? I.e., the same as you usually get from rotary encoders once per revolution. That...
  46. Replies
    13
    Views
    210

    I just had a look at the traffic on the wiki. It...

    I just had a look at the traffic on the wiki. It has some 250 views per week. So it seems to be actually used. However, there was not much new content over the last months...
  47. Replies
    13
    Views
    210

    The problem is the resetting of the interrupt...

    The problem is the resetting of the interrupt flag. The peripherals like timers etc and the ARM core run on different busses. Due to synchronization and caching it can take quite long until the...
  48. Sticky: You find some additional info in the user WIKI ...

    You find some additional info in the user WIKI . I just added a small chapter about multiple serial with some example code here https://github.com/TeensyUser/doc/wiki/Serial#multiple-serial-ports.
  49. I think you are actually connecting to Seremu not...

    I think you are actually connecting to Seremu not the raw hid interface. AFAIK the seremu interface is there for all non Serial USB modes. This is the reason why you can simply use Serial.print....
  50. It just sends the 64 bytes. It doesn't care or...

    It just sends the 64 bytes. It doesn't care or understand what those bytes are. So it is up to you to send eol if you want or need it.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4