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. 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...
  2. Replies
    33
    Views
    534

    Yay.......

    Yay.......
  3. Replies
    33
    Views
    534

    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?
  4. Replies
    33
    Views
    534

    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.
  5. Sounds good, glad it works now.

    Sounds good, glad it works now.
  6. Replies
    33
    Views
    534

    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.
  7. 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...
  8. 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...
  9. Replies
    33
    Views
    534

    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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. Replies
    20
    Views
    3,178

    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?
  15. Replies
    20
    Views
    3,178

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

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

    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.
  17. Replies
    20
    Views
    3,178

    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...
  18. Can you post the declaration of one of your...

    Can you post the declaration of one of your functions?
  19. 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();
    ...
  20. 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++...
  21. 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. ...
  22. 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
  23. 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...
  24. 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...
  25. Replies
    33
    Views
    534

    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...
  26. 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...
  27. 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...
  28. 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...
  29. 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...
  30. 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)
    {
  31. 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...
  32. 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...
  33. Replies
    8
    Views
    136

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

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

    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.
  35. 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...
  36. 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...
  37. 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...
  38. Thread: Teensy Qt

    by luni
    Replies
    437
    Views
    130,758

    Just unzip to a convenient place and start the exe

    Just unzip to a convenient place and start the exe
  39. 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...
  40. 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; ...
  41. 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...
  42. Regarding the rolling average: I like this if I...

    Regarding the rolling average: I like this if I only want to smooth. Experiment with the alpha value to see the effect.



    float measure ()
    {
    constexpr float alpha = 0.01f; // alpha=1 -> no...
  43. Replies
    33
    Views
    534

    Sorry, I was probably not clear in my last...

    Sorry, I was probably not clear in my last answer. Nothing needs to be changed on the hardware.

    I don't have time to test your code right now, but you can try the following:

    1) In line 13 of...
  44. Replies
    33
    Views
    534

    Why not? Just change the StepControl to...

    Why not? Just change the StepControl to RotateControl. If you need to move the motors to an absolute position (like you do in setup()) use a step controller. You are not limited to one controller....
  45. Replies
    33
    Views
    534

    For overrideSpeed you need a rotate controller...

    For overrideSpeed you need a rotate controller...
  46. Replies
    8
    Views
    136

    Choose 3.7Ás for the first delay and 8.0 Ás for...

    Choose 3.7Ás for the first delay and 8.0 Ás for the second. (You need to hand optimize the numbers a bit for those short times) This will give

    18968

    Teensy 4.0 of course
  47. Replies
    8
    Views
    136

    Fastest I could get with TeensyTimerTool ...

    Fastest I could get with TeensyTimerTool was some 850ns delay after triggering. I used a TMR (QUAD) based timer in OneShot mode to get the short first delay and then retriggered in the ISR to get the...
  48. Replies
    8
    Views
    136

    Can you provide some more information? ...

    Can you provide some more information?


    What is your data clock frequency?
    I assume that you want the first call of trpClk at T/2. After that it should be called repeatedly with the data...
  49. Replies
    22
    Views
    337

    Interesting, do you have some code generating the...

    Interesting, do you have some code generating the data stream for testing?
  50. Replies
    53
    Views
    2,232

    Oh my..., pretty much every thread there ends in...

    Oh my..., pretty much every thread there ends in a big bashing of somebody / something :-) Nowadays, I can only read it when I need to get rid of too much good mood :-) The only useful information I...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4