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

    UIFlow + StepMotor Driver M039

    Bug Report
    3
    4
    4.1k
    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
      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
        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
          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
            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
            • First post
              Last post