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

Stepper control and relays #35

Open
une18 opened this issue Dec 22, 2022 · 1 comment
Open

Stepper control and relays #35

une18 opened this issue Dec 22, 2022 · 1 comment

Comments

@une18
Copy link

une18 commented Dec 22, 2022

I am looking for a solution to control stepper and relays. Are relays supported?

Would like to build a small device, that works in loop. Stepper turns 60 degrees, when stopped a relay will turn on solenoid valve for the set time and when completed, starts again.

A simple task in Arduino, but i remember testing Stepper motor server few years ago, and I liked it.

Could this be an option for future developement?

@pkerspe
Copy link
Owner

pkerspe commented Jan 3, 2023

So if it is fine for you to do that in code, you could register a callback function in the flexystepper instance when the position is reached which then toggles the pin the Relay is connected to.

See the example Arduino script in line 65 where the callback handler is registered when the final position is reached:

examples/Example2_StepperMotorServer_with_hardcoded_config/Example2_StepperMotorServer_with_hardcoded_config.ino

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

No branches or pull requests

2 participants