-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stepper motor driver firmware to sra-board-component #77
base: main
Are you sure you want to change the base?
Conversation
#define STEP 14 | ||
#define DIR 27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
STEP_DIR would be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These macros define the pins to which the STEP
pin and DIRECTION
pins are connected to ESP32.
we cannot name it STEP_DIR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is DIR
okay then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also is STEP
okay? it needs to mean something atleast
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can make it STEP_SIGNAL_PIN
and DIR_SIGNAL_PIN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DIR_SIGNAL_PIN
should be related to the stepper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CC @gautam-dev-maker suggest a better naming scheme
lastly squash your commits into one single commit after removing dda7369 |
Hey @gautam-dev-maker ,
I have added the firmware and example for stepper motor control, please do check it out :)