🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    UIFlow + StepMotor Driver M039

    Scheduled Pinned Locked Moved Bug Report
    4 Posts 3 Posters 5.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      starcrouz
      last edited by starcrouz

      Hi,
      I'm using a M5 Core1 with UIFlow 1.9.0, installed with M5 burner on MacOsX 12.

      I use the StepMotor Driver module M039 with UIFlow.

      0_1642371381204_Image 036.jpg

      The fonctions provided by UIFlow are :
      0_1642371443010_Image 038.jpg

      2 bugs here I think :

      • fonction "Set step motor pulse freq" could not be set to 0 (which is sadly the default value provided). If you set freq to 0, next blocks are not executed and with no error which makes it very difficult to debug.
        0_1642372198894_Image 039.jpg
      • fonction "Set single motor state" could be set to X, Y or Z to control each motor individualy (I hope). But it doesn't. The motors are all working together. It is exactly as if you used "set all motor state".
        0_1642371776165_Image 040.jpg

      To control each motor individualy, I need to use the pwm functions but I cannot control the Z motor like this because there is on 2 timers (0 & 3) available.
      0_1642371986496_Image 041.jpg

      Could you please correct the "Set single motor state" function ?

      Thank you

      1 Reply Last reply Reply Quote 0
      • S Offline
        starcrouz
        last edited by

        A little update : UIFlow has been updated. The state and direction are not usable the same way :
        0_1649091005329_Capture d’écran 2022-04-04 à 18.47.44.png. That change broke our program (it's a pitty). Now you can use variables, you need to make 'ifs' because direction is now forward/reverse et state is now pause/resume.

        At the same time, bugs are still there : you cannot command a single motor, even if you use "set single motor X state resume", it will start the 3 motors at the same time. You must use the workaround I talked about in my previous post : pwm.

        1 Reply Last reply Reply Quote 0
        • G Offline
          gab696
          last edited by

          I had a headache for 2 days because of this module.
          I can't adjust the microsteps. It doesn't work...
          Do you manage to give the manage to run the motor for a given number of steps and stop itself without endstops?
          Thanks!
          Gab

          1 Reply Last reply Reply Quote 0
          • P Offline
            pandian.nano
            last edited by pandian.nano

            Hi, Are you using step motor driver v1 or v1.1? Microsteps function supports v1 and does not support v1.1
            0_1692080976549_58079694-f05e-44e4-aab7-ea4f39cdf1a2-image.png

            0_1692080997039_a0b32398-98a0-4838-8ea7-a0f068c7d017-image.png

            0_1692081228886_69b78769-83b5-4b8d-8680-198bc76f1734-image.png

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post