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. Edit: Crosspost... Here a link showing how to...

    Edit: Crosspost...

    Here a link showing how to get higher frequencies with the IntervalTimer...
  2. Replies
    15
    Views
    457

    Fix boards.txt and linker files to support STL

    Maybe it is by purpose but to me it looks like there is a small glitch in boards.txt for the T3.X boards.


    ...
  3. Replies
    3
    Views
    97

    In case you are running Win10 you can give...

    In case you are running Win10 you can give VisualTeensy a try. This will give you full control over the build process https://github.com/luni64/VisualTeensy
  4. Replies
    7
    Views
    137

    Sorry, my answer was a bit short... It is there...

    Sorry, my answer was a bit short...
    It is there but in the wrong place, move it to the end of the next line, then it should work.



    teensy31.build.flags.S=-x assembler-with-cpp...
  5. Replies
    7
    Views
    137

    Did you add "-lstdc++" to the linked libraries?

    Did you add "-lstdc++" to the linked libraries?
  6. Replies
    7
    Views
    137

    This compiles and runs on a T3.2 #include...

    This compiles and runs on a T3.2



    #include <map>

    std::map<int, std::string> myMap;

    void setup()
    {
  7. Problem was that you set the define for Serial...

    Problem was that you set the define for Serial instead of 2xSerial
  8. Thanks, there was a small bug, this one works: ...

    Thanks, there was a small bug, this one works:


    teensy31.menu.usb.2xserial=2xSerial
    teensy31.menu.usb.2xserial.build.usbtype=USB_DUAL_SERIAL
    teensy31.menu.usb.3xserial=3xSerial...
  9. Exactly. I take what I get, and comports are...

    Exactly.

    I take what I get, and comports are for free :-) and they also allow for easy logging from the teensy directly in pc app if you use the normal serial for command/data transmission.
  10. Very cool indeed! Off Topic: Since you are...

    Very cool indeed!

    Off Topic:
    Since you are working on boards.txt anyway, can I talk you into adding a (completely unrelated :)) option for the new double and triple serial setting...
  11. Replies
    33
    Views
    573

    Yay.......

    Yay.......
  12. Replies
    33
    Views
    573

    Probably a bug? Difficult to remote debug this....

    Probably a bug? Difficult to remote debug this. Are the other working as expected? I.e. following the input after the sweep?
  13. Replies
    33
    Views
    573

    I don't find your starting of the rotation...

    I don't find your starting of the rotation controllers anymore. See #19 where you still have it. Be sure to move it after the sweep code.
  14. Sounds good, glad it works now.

    Sounds good, glad it works now.
  15. Replies
    33
    Views
    573

    Glad you found it. Please use the DevTimer...

    Glad you found it. Please use the DevTimer branch. Having the controller locally would require a major restructuring of your code which is not worth it. I'll merge this branch into master asap anyway.
  16. I'm using the technique for the TeensyTimerTool....

    I'm using the technique for the TeensyTimerTool. Here the code:https://github.com/luni64/TeensyTimerTool/blob/master/src/config.h and here how to use it...
  17. Sorry, overlooked that. Just one additional...

    Sorry, overlooked that.

    Just one additional remark: Looks like you are using some global resources (e.g. msgTxt, Can0 ...) in your background functions. If you use the same resources in your...
  18. Replies
    33
    Views
    573

    Sorry, forgot to mention that the possibility to...

    Sorry, forgot to mention that the possibility to define more than 4 controllers is not yet in the master branch (should really merge that...). Can you please try the branch DevTimer instead. This...
  19. Ups, just saw that you have 8 bit and 16bit...

    Ups, just saw that you have 8 bit and 16bit arguments. I recommend to store both as 16bit and use the first 8bit only in the 8bit functions. Otherwise you need to define two different function...
  20. I added another array which carries the arguments...

    I added another array which carries the arguments to the functions. Now you can combine functions and arguments as you wish. The dummy functions just print out the function name, the current time...
  21. Ok, I think I got it. So, you want to call...

    Ok, I think I got it.

    So, you want to call different functions with different arguments automatically in the background. Until now the function pointer array only contains information about the...
  22. That's good, but I don't understand how you want...

    That's good, but I don't understand how you want to call this. Is canSend_01 always getting INTAKE_MANIFOLD_ABSOLUTE_PRESSURE as argument? And canSend_02 gets the next one from the enum? always or is...
  23. Replies
    20
    Views
    3,209

    Just had a look at the manual. I think this ...

    Just had a look at the manual. I think this

    19108

    is what I want. If I understand correctly it re starts measurement when it gets the next trigger right?
  24. Replies
    20
    Views
    3,209

    Thanks, software and spec look nice I'll give the...

    Thanks, software and spec look nice I'll give the basic version a try.
  25. Replies
    33
    Views
    573

    Sorry, missed that post. Yes, you can use a...

    Sorry, missed that post.
    Yes, you can use a step controller and a rotate controller. Just make sure that only one of the controllers moves the motor at one time.
  26. Replies
    20
    Views
    3,209

    Just heard in the radio that Real was sold to the...

    Just heard in the radio that Real was sold to the Russians today, so hurry up :-)

    Anyway, does it have something like a 'oscilloscope mode'? The LAs I used so far (Salae clones) always need a...
  27. Can you post the declaration of one of your...

    Can you post the declaration of one of your functions?
  28. Sorry, I'm usually not using the Arduino builder...

    Sorry, I'm usually not using the Arduino builder and thought it doesn't need the forward declarations

    So, either forward declare the functions


    void func0();
    void func1();
    void func2();
    ...
  29. And here a quick "function pointer solution"...

    And here a quick "function pointer solution" which works if you only need a constant interval between functions


    using func_t = void (*)(); // c++...
  30. One method is to call the functions from one shot...

    One method is to call the functions from one shot timers. You'd start timer1 which will call func1 after some delay time. At the end of func1 you trigger timer2 which will call function 2 and so on. ...
  31. Sure, don't like this ancient thing but here you...

    Sure, don't like this ancient thing but here you are



    using System.IO.Ports;
    using System.Windows.Forms;

    namespace WinFormTest
    {
    public partial class Form1 : Form
  32. Tried this c# to send Data to the teensy (tested...

    Tried this c# to send Data to the teensy (tested and works fine. I linked the PC with the Teensy via a cheap usb serial converter)

    (c# console application)


    using System;
    using...
  33. Does the code work if you connect the Teensy...

    Does the code work if you connect the Teensy directly without the bluetooth?
    Looks like you never close the port and try to reopen whenever you hit the button? The usual way to do it is to store...
  34. Replies
    33
    Views
    573

    If I understand correctly your code is now able...

    If I understand correctly your code is now able to make the stepper following some input, right? So, to get the sweep at startup you could simply fake the input say 1s 0 then 1s max which should...
  35. Great, did you try the follow up lib in...

    Great, did you try the follow up lib in https://github.com/luni64/EncPlex ? This has a few more features like callbacks. The problem you observe with the start values is most probably due to a wrong...
  36. I meanwhile found time to do some experiments...

    I meanwhile found time to do some experiments with the multiplexed encoders. The setup is a bit messy (need to wait for the boards from china) but works nicely. Schematic, BOM, Gerbers etc here...
  37. I don't know the sources of that program but...

    I don't know the sources of that program but usually you'd look for a device with the correct VID/PID, then you know what interfaces it has and just use them? Here...
  38. No, there is no Windows confusion. Raw Hid...

    No, there is no Windows confusion. Raw Hid implements two interfaces and the device manager shows those two as it is supposed to do. One is the RAW HID interface and the other is the SerEmu...
  39. To visualize what defragster has just written...

    To visualize what defragster has just written here a simple example:



    void setup()
    {
    constexpr double x = 15.4;

    if(x > 15)
    {
  40. The COM numbers are assigned by windows. While in...

    The COM numbers are assigned by windows. While in principle it is possible to change that by software, I doubt that platform.io is doing this. The monitor_setting setting probably only defines the...
  41. You are probably looking for...

    You are probably looking for attachInterruptVector(IRQ_NUMBER_t irq, void (*function)(void))? The IRQ_Numbers IRQ_XXX are defined in imxrt.h starting at line 8

    Edit ... and here an example how to...
  42. Replies
    8
    Views
    149

    Glad it works, have fun with the TeensyTimerTool...

    Glad it works, have fun with the TeensyTimerTool :-)
  43. Replies
    164
    Views
    12,107

    Thanks As soon as there is some decent c#...

    Thanks


    As soon as there is some decent c# cross platform GUI...

    Meanwhile: I tried to separate the business logic from the GUI, so if you want to port it to macOS it shouldn't be too hard.
  44. Alternatively, you can give VisualTeensy a try....

    Alternatively, you can give VisualTeensy a try. https://github.com/luni64/VisualTeensy/releases

    VisualTeensy is a lightweight, free, open source tool to generate all project files and settings to...
  45. Yes, looks a bit different :-) I'm using Eagle...

    Yes, looks a bit different :-) I'm using Eagle for about 35 years now, good thing is that despite the GUI, the underling workflow, the key shortcuts etc didn't really change and is still very...
  46. Since I wanted to try multiplexed encoders for...

    Since I wanted to try multiplexed encoders for quite some time and I wanted to test the new Eagle version anyway, I did a quick 74HC165 based test board. (Eagle files and Gerbers on github...
  47. Thread: Teensy Qt

    by luni
    Replies
    437
    Views
    130,846

    Just unzip to a convenient place and start the exe

    Just unzip to a convenient place and start the exe
  48. Glad you like it. It is a common misunderstanding...

    Glad you like it. It is a common misunderstanding that you need to use interrupts to catch all of the bouncing signals. In fact the underlying gray code (aka quadrature signal) is totally insensitive...
  49. You defined diffRatio as unsigned. Change to...

    You defined diffRatio as unsigned. Change to float and you get the right result.



    constexpr unsigned teeth = 17;
    constexpr float diffRatio = 3.42;
    constexpr float WheelCirc = 2126; ...
  50. I assume you are talking about the usual...

    I assume you are talking about the usual mechanical encoders for human input, not high speed encoders for motor applications? If so, I'd use a simple polled algorithm instead of the usual interrupt...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4