How to drive a step motor using Microstep

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

cross mob
Anonymous
Not applicable

Hi, I started working with the psoc 5lp and I trying to drive a step motor. The motor is Hydon Kerk 37mm bipolar. I just learned that in order to get more precise steps I need to use micro-steps. I still dont fully understand what that means and what I need to do. can someone help me, and explain how I need to proceed. I cant find any relevant code example that uses micro-steps.

I would appreciate any help.

Thanks.

0 Likes
1 Solution

For PSoC4, only the first link (folder SCB_Spi_0)   Stepper.vi is for someone who uses LabVIEW (not PSoC)

The microstep in the DRV8825 is already implemented on the hardware level.

The L298N does not have such features, so I use the   more functional DRV8825.

More materials:

Using a L298N Chip to drive stepper motor with Psoc 5LP

and my old project for BA13002F (Unipolar Step / haltStep)    STEPPER.zip

View solution in original post

0 Likes
5 Replies
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

It seems the best option is to use a ready-made microstep driver.

I'm using DRV8825. For the first time you can use my project for PSoC4.  SCB_Spi_Stepper.zip
psoc_step.png
Features:

- microstep is specified by a fixed code on contacts M0 M1 M2

- SPI is used to control the number of steps

- there is an acceleration / deceleration option to increase the dynamics.

- Additionally there is a test program on LabVIEW for the bridge CY7C65211.

Anonymous
Not applicable

Hi, first thanks a lot for the response. I cant open the project you sent

me vi the psoc creator. Do you know why, maybe you didnt sent the entire

workspace. and another question, I am using L298N for a driver. Does it

matter? as i understand it the design for the psoc should be the same, no?

2018-03-18 12:07 GMT+02:00 Evgeniy Pavlov <community-manager@cypress.com>:

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

How to drive a step motor using Microstep

reply from Evgeniy Pavlov

<https://community.cypress.com/people/user_49271930?et=watches.email.thread>

in PSoC 5 - View the full discussion

<https://community.cypress.com/message/153562?et=watches.email.thread#153562>

0 Likes

For PSoC4, only the first link (folder SCB_Spi_0)   Stepper.vi is for someone who uses LabVIEW (not PSoC)

The microstep in the DRV8825 is already implemented on the hardware level.

The L298N does not have such features, so I use the   more functional DRV8825.

More materials:

Using a L298N Chip to drive stepper motor with Psoc 5LP

and my old project for BA13002F (Unipolar Step / haltStep)    STEPPER.zip

0 Likes
Anonymous
Not applicable

Again thanks for the help, I have another driver that is suitable for

micro-steps- EasyDrive

https://learn.sparkfun.com/tutorials/easy-driver-hook-up-guide?_ga=2.94590932.991365997.1521640557-33783433.1513688946

.

Will your code work the same way with this driver?

Thanks

2018-03-18 13:33 GMT+02:00 Evgeniy Pavlov <community-manager@cypress.com>:

<http://www.cypress.com>

Cypress Developer Community

<https://community.cypress.com/?et=watches.email.thread>

How to drive a step motor using Microstep

reply from Evgeniy Pavlov

<https://community.cypress.com/people/user_49271930?et=watches.email.thread>

in PSoC 5 - View the full discussion

<https://community.cypress.com/message/153565?et=watches.email.thread#153565>

0 Likes

Seems to be yes. Use the contacts   MS1 and MS2 (Microstep Select Resolution Truth Table)

MS1 = M0

MS2 = M1   

STEP = STEP  

DIR = DIR

ENABLE = NOT ENABLE (Seems)

0 Likes