Hi all, I have a project I am trying to modify or refine. I am controlling a gear drive stepper that uses 5390 steps per rev at 1500uS. I’m using an 18 v rechargeable battery with a 8390 driver. So one dir pin, one step pin and so far one push button. What I am trying to do is pretty specific for an invention I am working on. What I need to do is have the stepper turn a half rev CW and then back for button 1. Then turn a half rev CCW and back for button 2 and finally half rev CCW and then back one full rev for button 3. I admit I am new to this and I have a working code for one full rev CW for one button. I can edit the steps to make a half rev or edit the delay to speed up or slow down but I am lost on this new code I need. Can anyone help?
Control one motor 3 different scenarios with 3 separate push buttons. Unless it can be done with one
can one button be used to scroll thru the modes and the 2nd button select/execute that mode?
Yes. That would be fine? Might even be more elegant but beyond my current level.
Would I use “led’s” to indicate the mode?
I’m sorry, I mis spoke. That third step would have to turn 1/2 CCW then 3/4 CW then back one quarter CCW. basically, back to home after each mode. Sorry for the confusion.
Hello rpotter65
Do you have a key manager that calls functions when a key is pressed or released?
Have a nice day and enjoy coding in C++.
Isn't this the same project as this? If yes, you should not open a new topic for the same question. Cross-posting is not appreciated in this forum and wastes the time of the helpers.
Yes it is. I apologize, I was using a different device and didn’t realize it. My bad.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.