Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: jpk

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. On my machine I do the following: #include...

    On my machine I do the following:


    #include "TeensyStep.h"

    Stepper motor(48, 47);
    StepControl controller(5, 1000);

    int motor_steps_per_rev = 200;
    int motor_microstepping = 4;
  2. I will try to give some examples... Here my...

    I will try to give some examples... Here my observations. The following works in master branch but not in dev-timer:
    #include "TeensyStep.h"

    Stepper motor(48, 47);
    RotateControl controller(5,...
  3. I Did some more tests and found that estop (in...

    I Did some more tests and found that estop (in master branch) works only in one direction:


    #include "TeensyStep.h"

    Stepper motor(22, 41);
    RotateControl RotCtrl(5, 1000);
    StepControl...
  4. Thanks a lot!! I think it's a good solution. I...

    Thanks a lot!! I think it's a good solution. I did some tests on my machine, everything works fine. Also the e-stop I can now execute faster without the delay!

    EDIT: just noticed that slow...
  5. Thanks for fixing! And sorry for so many...

    Thanks for fixing! And sorry for so many requests...Yes, I think it's good to have. Some of my winding processes move really slow, for example when threading in the wires. With thin wires I could end...
  6. At the moment I am using 2 rotate and 2 step...

    At the moment I am using 2 rotate and 2 step controllers for my 5 motors and get along with them if used carefully - but if I add a new motor (say for a future grinding device) I will get in...
  7. Replies
    4
    Views
    311

    If you figured out a reliable solution: would you...

    If you figured out a reliable solution: would you mind to post a code example and the values of the voltage devider?
  8. Many thanks for your example! I played with it...

    Many thanks for your example! I played with it but couldn't do the following:
    #include "TeensyStep.h"

    Stepper a(22, 41);

    void setup() {
    RotateControl *rctrl_heap_1 = new RotateControl();
    ...
  9. Replies
    4
    Views
    311

    I would be interested in this as well!

    I would be interested in this as well!
  10. Thanks for clarifying! I see! Does this...

    Thanks for clarifying!



    I see! Does this mean I also could delete a controller manually and define a new one within the scope, re-using the resources?
  11. A new observation: moveAsync works only if...

    A new observation: moveAsync works only if stp.controller is defined in global space:


    #include "TeensyStep.h"

    Stepper motor1(22, 41);
    Stepper motor2(43, 42);

    void setup() {
    StepControl...
  12. I can confirm: it works. Thanks again for the...

    I can confirm: it works. Thanks again for the great support!!!!
  13. Thansk for fixing! But with the new version it...

    Thansk for fixing! But with the new version it seems I can't get callbacks working:


    #include "TeensyStep.h"

    Stepper motor(22, 41);
    StepControl controller;

    bool flag = 0;
  14. Yes. I checked the master branch and it did only...

    Yes. I checked the master branch and it did only happen with the develop branch...



    I just tried: it's fixed! Many thanks!! It helps a lot in my multi layer winding applications when spooling...
  15. I want to share another observation: if I issue a...

    I want to share another observation: if I issue a stop command during deceleration the motor would speed up and begin a new deceleration ramp:


    #include "TeensyStep.h"

    Stepper motor(22, 41);...
  16. You are almost there :) Perfect, I added 2...

    You are almost there :)



    Perfect, I added 2 minor details...
  17. That could be the case any time sooner or later...

    That could be the case any time sooner or later :cool: Thanks for letting me know!



    Please feel free to ad it!
  18. I managed to prepare a small video, see here:...

    I managed to prepare a small video, see here: https://www.youtube.com/watch?v=SYRmfHMnmTE
  19. I saw a difference with extremely slow speeds /...

    I saw a difference with extremely slow speeds / acceleration rates, and you also mentioned the "ugly asymmetry". I thought that was gone with my suggestion...?



    Thanks a lot, this is a very...
  20. At fast winding speeds with thin wires (for...

    At fast winding speeds with thin wires (for example 0.12mm wires @ 3000~7000rpm) I get very slow acceleration rates for pitch changes. So what about this:


    if (targetPitch > oldPitch) {
    ...
  21. At least it needs to be changed for the next...

    At least it needs to be changed for the next spindle speed change, so we could theoretically update it only before the spindle speed factor changes and keep all pitch changes with the old...
  22. Wow, thank you, very convenient! I will play with...

    Wow, thank you, very convenient! I will play with this class and study it. One thing I noticed is that you call feeder.overrideAcceleration() now before feeder.overrideSpeed(): I am wondering if it...
  23. Sorry to bother again with a code example, but I...

    Sorry to bother again with a code example, but I read so many times your explanations and still don't understand everything, so I put together another code example. What puzzles me is the difference...
  24. I think you understood much better than me :cool:...

    I think you understood much better than me :cool:

    (BTW in the library src the overrides are listed under "Blocking movements"...?)

    Requirement #4 sounds good, but I am not sure because in any...
  25. I see! I was trying to follow earlier advice...

    I see! I was trying to follow earlier advice which I understood as to do all calculations in the cockpit and let the lower teensy execute only commands coming in over serial. So at the moment all...
  26. OK, I hope I got it right... Since I use 2...

    OK, I hope I got it right... Since I use 2 teensies (one to control the motors, the other one for the rest, and the values are transferred over serial), here my 2 pseudo-code blocks, first for the...
  27. Sorry, I forgot to use an async stop command,...

    Sorry, I forgot to use an async stop command, wanted to stop them together...



    Yes, I tried to implement them in my existing code and stumbled over the problem during acceleration. I will test...
  28. I tested the new version: estop during...

    I tested the new version: estop during acceleration is fixed! But the following code does not work any more (in the older version this was not a problem):


    #include "TeensyStep.h"

    Stepper...
  29. OK here an example with bounce2: #include...

    [/QUOTE]

    OK here an example with bounce2:


    #include "TeensyStep.h"
    #include <Bounce2.h>

    Stepper motor(22, 41);
    RotateControl controller;
  30. See this diagram: my limit switches are marked...

    See this diagram: my limit switches are marked red. I have to manually shunt the slide in this area with quite a lot of small movements (marked green) to arrange the winding wires or to thread in...
  31. Just a small update: I noticed that the low speed...

    Just a small update: I noticed that the low speed bug is fixed. I implemented speed override and now can change the speed during winding which is really useful for me. Thanks a lot! :cool:
    ...
  32. Thanks for clarification! This is very...

    Thanks for clarification!



    This is very promising, I can't wait to test it...



    Yes exactly, and I use these motors, so I am not too worried about step losses.
  33. Many thanks for the explanation and the code!!! I...

    Many thanks for the explanation and the code!!! I tried to play with your code and managed to run it, but observed some details I don't fully understand...

    Here is a version of your code with just...
  34. Yes, KiCad. I wanted to be able to replace it in...

    Yes, KiCad. I wanted to be able to replace it in case I again burn it so I used some boards I already had in hand which have socketed teensys. Also it seemed easier to not have to worry about the...
  35. Thanks for the links, great project!!! I will try...

    Thanks for the links, great project!!! I will try to learn from these examples. I have to say: a big big thank to luni for his help and his library!!! He saves my project.



    Nice!!!! Yes,...
  36. Hi again Luni! Fantastic, I am happy to be able...

    Hi again Luni! Fantastic, I am happy to be able to change one's motor speed on the fly, but where can I download the new library? The link you provided does not seem to still work... In the mean time...
  37. Replies
    1
    Views
    299

    To update this topic: I have a bunch of sensors,...

    To update this topic: I have a bunch of sensors, PSUs, drives, buttons, encoders, displays, LEDs etc. connected to the Teensies and could not totally solve the problem by working with the GND...
  38. Replies
    1
    Views
    299

    digitalRead oszillates: GND-problem?

    Hi!

    Some pins of my Teensy3.5 give random output even with internal pullups enabled. Here is a diagram of my project:

    13986

    There are 2 metal enclosures (relatively big), one of them...
  39. Looking forward to then! Again many thanks for...

    Looking forward to then! Again many thanks for all the help!!! - Jun
  40. Many thanks again for your help. I run the code...

    Many thanks again for your help. I run the code on my machine and it worked fine even if the motors have to carry out different numbers of steps per layer!

    I also tried to change speed on the fly:...
  41. Many thanks for your code! I just run it on my...

    Many thanks for your code! I just run it on my machine. I guess I did not describe the problem well enough... Let me try again. Here is a graph of what the motors do:

    13956

    linMotor carries out...
  42. EDIT (well, no edit since I can't edit my above...

    EDIT (well, no edit since I can't edit my above post anymore...):

    I just saw that there is a feature reguest which probably would cover my situation when a "toggle dir pin after every x steps" is...
  43. Exactly! But because the filaments I wind are...

    Exactly! But because the filaments I wind are extremely thin and soft I don't want to decelerate the rotation motor at the end of each layer as this increases danger of filament breaks. Also the...
  44. Yes, this: and this: ...would be...

    Yes, this:



    and this:



    ...would be very interesting also for me.
  45. I wired like shown in my diagram: "load" is the...

    I wired like shown in my diagram: "load" is the input of the drive with + and - .

    As for the enable pin: you can just issue digitalWrite commands and connect the pin also to a channel of the...
  46. Check out lunis library TeensyStep:...

    Check out lunis library TeensyStep: https://github.com/luni64/TeensyStep

    And here is a diagram how to connect 5V stepper drivers to the Teensy 3.6 via SN74HCT125:...
  47. I use lunis library and like it really and also...

    I use lunis library and like it really and also use the HCT125 for buffering. Here is a diagram (done with lunis advice):13906
  48. Replies
    3
    Views
    346

    Many thanks for the solution!

    Many thanks for the solution!
  49. Replies
    3
    Views
    346

    udev rules for multiple teensies

    Hi!

    I am using multiple Teensies connected to one PC (running Debian) and get confused with uploads from Arduino IDE / Teensduino, because the device names are not persistent. I successfully tried...
  50. ...see also...

    ...see also https://github.com/bogde/HX711/issues/75
Results 1 to 50 of 62
Page 1 of 2 1 2