7 Replies Latest reply on Mar 18, 2018 3:20 AM by JoMe_264151

    control bipolar stepper motor by Psoc 5LP

      Hello, iv`e just started to work with Psoc 5LP, i want to control a bipolar Stepper motor ( Haydon Kerk http://www.haydonkerkpittman.com/products/linearactuators/canstackstepper/37mm37000 )  and with external driver ( https://learn.adafruit.com/adafruit-tb6612-h-bridge-dc-stepper-motor-driver-breakout/overview )  did someone used those components or something similar ?.. did someone wrote a code or a block diagram in the Psoc Creator that related to this issue ? thank you very much.

        • 1. Re: control bipolar stepper motor by Psoc 5LP

          Stepper motors convert electrical energy into discrete mechanical rotation. They are ideally suited for many measurement and control applications where positional accuracy is important. Stepping motors have the following advantages:

          • Full torque when rotation is stopped. This is in contrast to brushed and brushless DC motors, which cannot provide full torque continuously when the rotor is stopped. This aids in maintaining the current position.
          • Precise open-loop positioning and repetition. Stepper motors move in discrete steps as long as the motor stays under the maximum torque and current limits. This allows the rotor position to be determined by the control sequence without additional tracking or feedback. High quality stepping motors have three to five percent precision within a single step. Affordable assignment writing
          • Quick starts, stop, and reverse capability.
          • High reliability because there is no brush or physical contact required for commutation. The life span of a stepping motor is dependent on the performance of the bearings.
          • Microstepping mode can be used allowing direct connection to a load without intermediate gearing.
          • A wide speed range can be controlled by varying the drive signal timing.
          • 2. Re: control bipolar stepper motor by Psoc 5LP

            Did you try Google? There are quite a number of libraries and tutorials out there on how to drive a stepper motor - and you can easily adapt them to the PSoC. Actually, the Adafruit page for your driver even has a tutorial on it...

            • 3. Re: control bipolar stepper motor by Psoc 5LP

              Basically you need

              • PWM which must be programmed for the stepper frequency
              • Counter to stop the motor when the required number of steps is reached
              • Interrupt at end of a programmed number of steps done
              • some glue logic and clock syncs
              • provision for safe enable during power-up
              • logic to start a programmed number of steps


              You will need a PSoC5 LP or a PSoC442xx to use some UDBs for the glue logic



              • 4. Re: control bipolar stepper motor by Psoc 5LP

                HI, we tried finding some relent codes on google but did not find any thing that fits the psoc 5. do you know where we should look, or have an example to  a working code.

                thanks a lot

                • 5. Re: control bipolar stepper motor by Psoc 5LP

                  No. This forum is not a generic code repository. It should help when you have a _specific_ problem with PSoC. Please look at the PSoC101 videos, read some introductory material, try to blink some LEDs. Then it should be fairly easy to get the motor running, given Bobs hints from above and e.g. this Instructable. (which I just found on the first page of a Google search) It just needs you to be able to control some pins from software, but you can use a PSoC LUT to do it in hardware.

                  • 6. Re: control bipolar stepper motor by Psoc 5LP

                    Hi, I am currently working with the Psoc 5lp and with a stepper motor. To get more direct steps I learned that I need to use Microsteps. Can you please explain what that means, and how do I do so.

                    Thanks very much

                    • 7. Re: control bipolar stepper motor by Psoc 5LP

                      It is not a good habit to re-open old posts for new questions.

                      Same for posting the same question in several(!!) different threads.

                      Very bad habit is to do both.