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
    3
    Views
    92

    You can also use the TeensyTimerTool for such...

    You can also use the TeensyTimerTool for such things. I'd define a oneShotTimer for each solenoid. Whenever you switch a solenoid on it triggers the timer with the required solenoid 'on time'. In...
  2. In your reprex.h you have this else { ...

    In your reprex.h you have this



    else
    {
    //~~~~~ While bytes are sent from slave ~~~~~
    if (Wire.available())
    {
  3. Replies
    26
    Views
    14,113

    Thanks for checking. I meanwhile found a...

    Thanks for checking.
    I meanwhile found a suitable model from Karim Korish on GrabCad https://grabcad.com/library/teensy-4-1-development-board-1 and added a link to the user WIKI...
  4. I ordered at Electrodragon (see #1). Takes the...

    I ordered at Electrodragon (see #1). Takes the usual 2-3 weeks to Germany. Other than this, everything worked without problems.
  5. Replies
    26
    Views
    14,113

    Any chance to export as step or iges?

    Any chance to export as step or iges?
  6. Replies
    785
    Views
    28,365

    Feel free to add it to the Teensy user WIKI...

    Feel free to add it to the Teensy user WIKI https://github.com/TeensyUser/doc/wiki
  7. Sorry if I confused you. Since you where talking...

    Sorry if I confused you. Since you where talking about 2dim arrays and direct port manipulation I deduced that you are very familiar with this stuff :-). Anyway, let me answer your questions:

    ...
  8. First, you most probably do not need to do...

    First, you most probably do not need to do complicated stuff like direct port manipulation and combining actions to happen at the same time etc. Those Teensy boards are so much faster than the...
  9. That page seem to be related to the AVR Teensies....

    That page seem to be related to the AVR Teensies. The T3x - T4x use processors with an ARM core which is a completely different thing.
    -------

    If I understood correctly you want to achieve the...
  10. Replies
    785
    Views
    28,365

    Usually Exptech and Watterot sell them for about...

    Usually Exptech and Watterot sell them for about the same price as you get them from PJRC (and without the Customs hassle). I assume that there is a current rush on the T4.1 so they increased the...
  11. No problem at all. The workaround with...

    No problem at all. The workaround with platform.local.txt (see above) does the trick for now. Would be great to have that in the teensyduino platform.txt some time but copying that...
  12. Replies
    24
    Views
    796

    It would be better to not zip the files. Users...

    It would be better to not zip the files. Users can then just clone your library to their libraries folder and simply pull any changes you make later. I know, GIT is a bit weird at a first glance but...
  13. Found some documentation about the @filename...

    Found some documentation about the @filename parameter and gave it a try (didn't do the copying stuff for the test). Interesting method indeed, didn't know of the @parameter so far.

    All in all it...
  14. What is the @ doing, never saw that as a...

    What is the @ doing, never saw that as a parameter to the command line?
  15. There is no magic in it, it just adds the sketch...

    There is no magic in it, it just adds the sketch folder to the include search path so that you can use the _has_include feature to read any optional user header file from within libraries. Works...
  16. To follow this up: Since Arduino didn't answer...

    To follow this up: Since Arduino didn't answer for two weeks now, I think they won't.
    Anyway, I meanwhile added a platform.local.txt to the TeensyTimerTool which fixes the issue for those who...
  17. Replies
    6
    Views
    201

    The STL works nicely on T4.0. Unfortunately,...

    The STL works nicely on T4.0. Unfortunately, there is a setting missing in the T4 linker script (T3 is OK).
    You find some information here:...
  18. Replies
    24
    Views
    796

    Thanks, added a link to the zip file from p#18. A...

    Thanks, added a link to the zip file from p#18. A GitHub repo would be better since you could do later improvements without changing the link.
  19. Replies
    24
    Views
    796

    Great, if you don't mind, I'd like to add your...

    Great, if you don't mind, I'd like to add your library to the ECAD page of the TeensyUser WIKI. https://github.com/TeensyUser/doc/wiki/ECAD. Does it live at a GitHub repo or similar so that I can...
  20. Replies
    17
    Views
    362

    Measuring the angle at the joints and calculate...

    Measuring the angle at the joints and calculate the distance?
  21. Replies
    2
    Views
    113

    It currently doesn't and unfortunately I don't...

    It currently doesn't and unfortunately I don't have time to port it at the moment. Might not be ported before summer. Looks like scaraman did a quick port, see here...
  22. Replies
    14
    Views
    141

    Without testing and guarantee I'd say something...

    Without testing and guarantee I'd say something like that should work? D1 ~3V, choose R1 small enough that sufficient current flows to keep the diode in brake down mode (read datasheet). R2 can be...
  23. Replies
    14
    Views
    141

    Good old zener diode? ...

    Good old zener diode?

    https://www.digikey.com/en/maker/blogs/zener-diode-basic-operation-and-applications (see fig.3)
  24. Replies
    785
    Views
    28,365

    Maybe I misunderstand something but why do you...

    Maybe I misunderstand something but why do you want PROGMEM in the parameter declaration? A pointer to a short is a pointer, it shouldn't play a role where it points to?

    This


    short...
  25. Thread: TeensyTimerTool

    by luni
    Replies
    171
    Views
    5,993

    Perfect, merged into master (v0.1.9)...

    Perfect, merged into master (v0.1.9) and documented in the WIKI

    Thanks for the input
  26. Thread: TeensyTimerTool

    by luni
    Replies
    171
    Views
    5,993

    I implemented the possibility to choose the...

    I implemented the possibility to choose the prescaler for each FTM timer in the config file

    Here the updated config section with some prescaler settings:


    ......
  27. Replies
    6
    Views
    291

    While Frank is right of course (and I also used...

    While Frank is right of course (and I also used the commandline version and the TyTools code to find out how it is done), it is quite low level and might be difficult to transfer if one is used to...
  28. Thread: TeensyTimerTool

    by luni
    Replies
    171
    Views
    5,993

    I'll have a look later today. The second one is a...

    I'll have a look later today. The second one is a bit tricky but should be possible with some changes in the lib.
  29. Replies
    3
    Views
    153

    So, you finally call it ready :-)...

    So, you finally call it ready :-) Congratulations, this is really amazing work. I love the precision and the speed of the winding. Let the forum know when your orchestra streams a concert next time...
  30. Replies
    785
    Views
    28,365

    Don't let yourself get frustrated, at the end of...

    Don't let yourself get frustrated, at the end of the day this is all just fun. :-)

    Anyway, where can I read about your 'def.h' thing?
  31. Replies
    785
    Views
    28,365

    I think this could be another nice application...

    I think this could be another nice application for adding "-I{build.path}/sketch" to plattform.txt (see here ...
  32. Replies
    8
    Views
    166

    I also asked to fix this in 1.52...

    I also asked to fix this in 1.52 https://forum.pjrc.com/threads/59767-Starting-1-52-Beta-Soon?p=230936&highlight=exidx#post230936 but looks like it didn't make it.
  33. Replies
    40
    Views
    4,806

    Here https://github.com/TeensyUser/doc/wiki in...

    Here https://github.com/TeensyUser/doc/wiki in the section 'Compiling and Uploading' you find FrankB's and other options with links
  34. Got it thanks.

    Got it thanks.
  35. I wouldn't say its blocking it, the builder...

    I wouldn't say its blocking it, the builder simply doesn't search in the sketch folder for header files. Therefore, if your library is compiled it doesn't see any user config header located in the...
  36. Thought so. I'll leave it in for the time...

    Thought so.

    I'll leave it in for the time being and see if something strange happens during normal work.
  37. Yay... adding "-I{build.path}/sketch" before...

    Yay... adding "-I{build.path}/sketch" before {includes} in platform.txt works.



    ## Compile c++ files
    recipe.cpp.o.pattern="{compiler.path}{build.toolchain}{build.command.g++}" -c...
  38. Just did a quick prove of principle experiment by...

    Just did a quick prove of principle experiment by adding the path to the build folder

    -IC:\\Users\\lutz\\AppData\\Local\\Temp\\arduino_build_422957\\sketch
    to build.flags.common in boards.txt...
  39. Lets see what happens:...

    Lets see what happens: https://github.com/arduino/arduino-builder/issues/354
  40. I know that doesn't help but: the pattern works...

    I know that doesn't help but: the pattern works perfectly with PlatformIO and of course with VisualTeensy. I try to log an issue to ArduinoBuilder maybe they fix that (doubt it...)
  41. The errors you get are strange, did you remove...

    The errors you get are strange, did you remove the defaultConfig.h? If so, the idea is to copy it, not to move it. (BTW: still need to adjust some defines for the T4.1)

    However, you are right, the...
  42. In the TeensyTimerTool ...

    In the TeensyTimerTool I'm using this config.h

    config.h:


    #pragma once

    #if __has_include("userConfig.h")
    #include "userConfig.h"
    #else
  43. Thread: TeensyTimerTool

    by luni
    Replies
    171
    Views
    5,993

    That's a nice pattern indeed. Let us know if it...

    That's a nice pattern indeed. Let us know if it works. @defragster: might be something for the WIKI :-)

    Edit: Here some info from ARM how to use it to implement a simple lock...
  44. Thread: TeensyTimerTool

    by luni
    Replies
    171
    Views
    5,993

    You can always check by disabling interrupts when...

    You can always check by disabling interrupts when you access the structure. If this doesn't remove the problem it probably is related to something else.

    Thanks for the link, I'll give that a try.
  45. Thread: TeensyTimerTool

    by luni
    Replies
    171
    Views
    5,993

    Disabling interrupts when accessing the data...

    Disabling interrupts when accessing the data structure will certainly work. Maybe the Tick Timers are an option for you? They use the cycle counter for timing and their callbacks don't run in an...
  46. Replies
    785
    Views
    28,365

    Just ordered 10 at Electrodragon for 0.80 EUR...

    Just ordered 10 at Electrodragon for 0.80 EUR /pc MOQ is 2pcs

    https://www.electrodragon.com/product/2pcs-ipus-ips6404-iot-ram/ Usually they deliver quite fast.
  47. Thread: Pointers... again

    by luni
    Replies
    35
    Views
    570

    What you want to achieve is a bit tricky. First...

    What you want to achieve is a bit tricky. First the usual solution using the given void(callback*)(void*) interface of the OneButton library. You simply pass it the address of your external callback...
  48. Thread: Pointers... again

    by luni
    Replies
    35
    Views
    570

    Yes, but this version doesn't have the capture...

    Yes, but this version doesn't have the capture issue and it compiles for an UNO as well. The callback extensions of gfvalvos code are in #30
  49. Thread: TeensyTimerTool

    by luni
    Replies
    171
    Views
    5,993

    Glad you like it. Let me know if something is not...

    Glad you like it. Let me know if something is not working as expected. The code base is relatively new, so there still might be some bugs...
  50. Thread: Pointers... again

    by luni
    Replies
    35
    Views
    570

    Since you are interested in options, here another...

    Since you are interested in options, here another one:


    No need to subclass OneButton
    No need for any changes to OneButton
    Works with all the attachXXX functions out of the box
    Clean...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4