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

    stepper motor

    Modules
    5
    9
    9.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.
    • Z
      zoabihamada
      last edited by

      Hi all
      I am new to m5stack
      I am working on a project where I need to use 12 stepper motor, so what I need to know is, can I add four step motor modules(Stepmotor Module with MEGA328P (DRV8825)) to the m5stack core and control each motor individually

      ajb2k3A 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3 @zoabihamada
        last edited by

        @zoabihamada you can but you need to reprogram them to change the i2c address.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        Z 1 Reply Last reply Reply Quote 0
        • Z
          zoabihamada @ajb2k3
          last edited by

          @ajb2k3 can i reprogram them using UIFlow?

          ajb2k3A 1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3 @zoabihamada
            last edited by

            @zoabihamada no, you need to use the arduino ide to reprogram them

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            Z 1 Reply Last reply Reply Quote 0
            • Z
              zoabihamada @ajb2k3
              last edited by

              @ajb2k3 can you please explain what should I do?.

              And after reprogram them in Arduino ide can I then use UIFlow to program the robot

              1 Reply Last reply Reply Quote 0
              • lukasmaximusL
                lukasmaximus
                last edited by

                You need to change the i2c address in this file and then flash this firmware to the stepper module using an avr-isp programmer or arduino. If you do that then technically you could program multiple stepper modules in UiFlow as it allows you to set the i2c address in the blocks. I cannot say for sure though as I don't have any stepper modules on me to test with

                https://github.com/m5stack/stepmotor_module/blob/master/Firmware for stepmotor module/GRBL-Arduino-Library/grblmain.cpp

                1 Reply Last reply Reply Quote 0
                • S
                  Sledge
                  last edited by

                  Hi,

                  is any manual available how to flash those hex files to the stepmotor module? Can´t the Firmware be flashed over serial?

                  1 Reply Last reply Reply Quote 0
                  • C
                    crami25
                    last edited by

                    @Sledge https://www.youtube.com/watch?v=4ei1vsmkOK4

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sledge
                      last edited by

                      That did the trick. Thank you

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post