Skip to content
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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

ChinmayLonkar
Copy link
Contributor

Hey @gautam-dev-maker ,
I have added the firmware and example for stepper motor control, please do check it out :)

examples/stepper_motor/LICENSE Outdated Show resolved Hide resolved
include/stepper.h Outdated Show resolved Hide resolved
include/stepper.h Outdated Show resolved Hide resolved
examples/stepper_motor/main/main.c Outdated Show resolved Hide resolved
Comment on lines +108 to +109
#define STEP 14
#define DIR 27
Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is DIR okay then?

Copy link
Member

@SAtacker SAtacker Jan 14, 2023

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

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Member

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

src/stepper.c Outdated Show resolved Hide resolved
include/stepper.h Outdated Show resolved Hide resolved
src/stepper.c Outdated Show resolved Hide resolved
@SAtacker
Copy link
Member

lastly squash your commits into one single commit after removing dda7369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants