control bipolar stepper motor by Psoc 5LP

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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.

0 Likes
1 Solution

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

Bob

View solution in original post

0 Likes
8 Replies
Anonymous
Not applicable

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.
0 Likes

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

Bob

0 Likes
Anonymous
Not applicable

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

0 Likes

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.

Bob

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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...

0 Likes
Anonymous
Not applicable

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

0 Likes

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.

0 Likes
Talgat
Level 1
Level 1
5 sign-ins First reply posted First question asked

Dear my friends 

sorry for bothering you..did you sorted out??or who can help on this please

i dont have any idea and terms of i got just psoc059 kit and stepper mottor nema 34..i want to run with psoc 059 any chance to help me as biginneer please your help greatly appreciated!!!

i watched some video but no luck to understand please can you help on this?

 

Thanks and regards

Talgat

0 Likes