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
    10
    Views
    171

    Can it be that some of the binary linked in...

    Can it be that some of the binary linked in standard libraries were compiled without -fno-exceptions?
  2. Thread: Teensy Organ

    by luni
    Replies
    4
    Views
    201

    Thanks, I'll tell her. Regarding the stops: We...

    Thanks, I'll tell her.
    Regarding the stops: We started with fixed length tubes but tuning the pipes with the lathe was a nightmare :-) Now with the stops tuning works nicely.
  3. Thread: Teensy Organ

    by luni
    Replies
    4
    Views
    201

    Teensy Organ

    For a semester project in stage design my daughter constructed and built (with a little help :rolleyes:) a funny little barrel organ.

    A T3.6 reads and parses midi files stored on an SD card and...
  4. Replies
    19
    Views
    852

    If you can live with standard makefiles and gnu...

    If you can live with standard makefiles and gnu make instead of Cmake you can have a look at VisualTeensy. It automatically generates makefiles for your Teensy configuration (board, settings,...
  5. Thread: TeensyTimerTool

    by luni
    Replies
    188
    Views
    7,211

    IIRC you are using the FTM timers. Forgot to add...

    IIRC you are using the FTM timers. Forgot to add them in v0.1.11, just pushed v0.1.12 which should work for the FTMs as well
  6. Thread: TeensyTimerTool

    by luni
    Replies
    188
    Views
    7,211

    I just added the missing start/stop functionality...

    I just added the missing start/stop functionality for the TCK, TMR(QUAD), GPT and PIT timers to the TeensyTimerTool v0.1.11. See here for details and download...
  7. Looks like. Here a link to an article from Jan....

    Looks like. Here a link to an article from Jan. 2020 https://developers.google.com/web/fundamentals/native-hardware/build-for-webusb
  8. Replies
    14
    Views
    546

    Interesting indeed! But I don't see how that...

    Interesting indeed! But I don't see how that would work if more than one user would like to add functions to yield?
  9. Ups, you are absolutely right. I'm so used to...

    Ups, you are absolutely right. I'm so used to this carrier board (which uses VDD only for the mode_n jumpers) that I falsely assumed the driver actually needs it. So, forget #13. Sorry for the noise.
  10. Weird. One addition, I powered the DRV8825 from...

    Weird. One addition, I powered the DRV8825 from the 5V from the Teensy not from 3.3V. Don't now which one you used.
  11. Replies
    14
    Views
    546

    I meanwhile tested this hook to yield method and...

    I meanwhile tested this hook to yield method and found that it is actually quite efficient. I put some explanations, example code and an easy to use attach function in the user wiki...
  12. Just for fun I did a quick test with a T4.0 and...

    Just for fun I did a quick test with a T4.0 and the code from #7. Used a DRV8825 and this carrier: https://github.com/luni64/DRV8825x3. 12V supply for the motors, Teensy is powered from USB. Runs as...
  13. I am interested as well...

    I am interested as well...
  14. Very true of course

    Very true of course
  15. This obviously depends on your requirements. If I...

    This obviously depends on your requirements. If I assume that you need something in the 0.2Nm range and you want a NEMA17 sized motor I'd have a look at something like

    17HS13-1334S 1.3A 22Ncm,...
  16. Without seeing your actual setup it is quite...

    Without seeing your actual setup it is quite difficult to give advice. Here some general remarks.


    There is no need to connect motor ground and logical ground (don't do it, you'll catch a lot...
  17. Ah, that probably means that TMR4 is correct and...

    Ah, that probably means that TMR4 is correct and TMR1-TMR3 do the wrong thing. I.e. preloading the counter with 24000 instead of the probably intended 0.
  18. Just a guess: Teensyduino uses TMR1 - TMR3 for...

    Just a guess: Teensyduino uses TMR1 - TMR3 for PWM generation. AFAIK It doesn't touch TMR4. So, it might be that TMR1-TMR3 get some settings during startup which you don't do for TMR4. Again, just a...
  19. Just in case someone is interested in the sketch...

    Just in case someone is interested in the sketch producing this data for the various boards, here a link to the corresponding user wiki page:...
  20. Replies
    6
    Views
    225

    I assume you are talking about VB.net right? If...

    I assume you are talking about VB.net right? If so, can you post your PC program? Ideally a minimal version showing the effect.
  21. Thread: TeensyTimerTool

    by luni
    Replies
    188
    Views
    7,211

    Yes that works, but your code is a bit...

    Yes that works, but your code is a bit complicated. You probably noticed that passing a nullptr as function argument compiles but doesn't work since the library catches this as error. So, instead of...
  22. Thread: TeensyTimerTool

    by luni
    Replies
    188
    Views
    7,211

    Valid guess, but actually this currently is only...

    Valid guess, but actually this currently is only implemented for the TCK timers. The others silently ignore it. I'm currently working on filling in some missing functionality... As a workaround you...
  23. Thread: TeensyTimerTool

    by luni
    Replies
    188
    Views
    7,211

    Fixed by using the EventResponder to tick the...

    Fixed by using the EventResponder to tick the software timers in YIELD_STANDARD mode. This is slightly less efficient than the old version but there always is YIELD_OPTIMIZED mode if you need high...
  24. Replies
    14
    Views
    546

    Thanks Kurt, tried your suggestion but it didn't...

    Thanks Kurt, tried your suggestion but it didn't work.



    #include "EventResponder.h"

    EventResponder er;

    void testfunc(EventResponderRef r)
    {
  25. Replies
    14
    Views
    546

    Yes, currently I'm replacing it with my code but...

    Yes, currently I'm replacing it with my code but in libraries this is quite rude since users might need SerialEvents or the EventResponder.... Also copied the yield content from the core to my yield...
  26. Replies
    14
    Views
    546

    Somehow I still don't understand if / how it is...

    Somehow I still don't understand if / how it is possible to hook into yield without replacing it. I tried to use the event responder but this stuff is hard to understand without any documentation. ...
  27. Replies
    48
    Views
    2,356

    I tested std::string, some containers (std::map,...

    I tested std::string, some containers (std::map, std::vector) and std::function on T4.0 and T4.1. Everything works out of the box now.



    #include <map>
    #include <vector>
    #include...
  28. Replies
    48
    Views
    2,356

    Actually it is quite simple to add libraries to...

    Actually it is quite simple to add libraries to the library manager: https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ#how-can-i-add-my-library-to-library-manager
    I have TeensyStep and the...
  29. Thread: TeensyTimerTool

    by luni
    Replies
    188
    Views
    7,211

    This pattern only works if you can make sure that...

    This pattern only works if you can make sure that all translation units have the define before including the header. The TeensyTimerTool supports project scope config files instead. See here...
  30. Thread: TeensyTimerTool

    by luni
    Replies
    188
    Views
    7,211

    This is due to the new yield code in the beta....

    This is due to the new yield code in the beta. I'll fix that the next days. If you need an urgent solution and if you do not need SerialEvents or the EventResponder you can set the yield type to...
  31. This simple test code prints out a running number...

    This simple test code prints out a running number and toggles the LED afterwards. If the print would block without the PC reading data the blinking should stop if you disconnect the SerMon.


    ...
  32. Replies
    48
    Views
    2,356

    Great, I'll give it a try this evening

    Great, I'll give it a try this evening
  33. Replies
    48
    Views
    2,356

    Any chance to get the STL stuff fixed in this...

    Any chance to get the STL stuff fixed in this version?

    T3.x -> boards.txt
    T4.x -> linker script

    https://forum.pjrc.com/threads/59767-Starting-1-52-Beta-Soon?p=230936&viewfull=1#post230936
  34. Replies
    9
    Views
    174

    Not that I'm aware of but usually the USB bus (+...

    Not that I'm aware of but usually the USB bus (+ PC software) is the limiting factor not the Teensy. With a T4 you can easily transmit > 15MB / sec.
  35. Replies
    9
    Views
    174

    Transmitting strings has a lot of overhead. If...

    Transmitting strings has a lot of overhead. If you transmit binary values you'll be much faster (Serial.write)
  36. Replies
    28
    Views
    2,004

    The T4 linker skript misses the requred...

    The T4 linker skript misses the requred definitions for __exidx_start and __exidx_end. The skripts for T3.X have this definition. Here some more info: ...
  37. Replies
    8
    Views
    225

    BTW: Unless you just want to practice "ifs" you ...

    BTW: Unless you just want to practice "ifs" you can simply write



    digitalWrite(11,!digitalRead(8));


    instead. This sets pin 11 to the inverse of the input at pin 8
  38. Replies
    3
    Views
    113

    This is certainly possible see e.g. TeensySharp...

    This is certainly possible see e.g. TeensySharp https://github.com/luni64/TeensySharp which is a c# library you can use to find all connected Teensies. It returns Board, Serialnumber and COM port of...
  39. Replies
    3
    Views
    142

    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...
  40. 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())
    {
  41. Replies
    26
    Views
    14,520

    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...
  42. 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.
  43. Replies
    26
    Views
    14,520

    Any chance to export as step or iges?

    Any chance to export as step or iges?
  44. Replies
    797
    Views
    34,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
  45. 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:

    ...
  46. 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...
  47. 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...
  48. Replies
    797
    Views
    34,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...
  49. 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...
  50. Replies
    28
    Views
    1,088

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4