- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)