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

Servo Motor #15

Open
thgcst opened this issue Nov 7, 2018 · 3 comments
Open

Servo Motor #15

thgcst opened this issue Nov 7, 2018 · 3 comments

Comments

@thgcst
Copy link

thgcst commented Nov 7, 2018

Is it possible to use a Servo motor such as MG995 modified to continuous rotate? How should be the connection for Up and Down pins?

@hennessyevan
Copy link

I actually initially was going to use a servo, the one I had wasn't strong enough for my blinds but it was easy enough to modify this project for that usage. You will need to change some of the code to work properly with PWM (Pulse Width Modulation) which is what servos run on.

I began to modify this module for use with my servo but then I abandoned it and I can't find that version anymore 😞 but you can take a look at this which may shed some light on PWM for servos in general. You just need to change the rpio.write() functions to make use of PWM.

If you get stuck I may be able to help

@thgcst
Copy link
Author

thgcst commented Nov 9, 2018

Thanks a lot for your help.
I don't know exactly how to make it work, but i was expecting something like this code here. Set a time for open and close the blinds and the code does the rest such as opening percentage. The thing is, I got the MG995 Servo based on this, but expecting to use this GPIO-BLINDS code with the MG995 Servo.

Another problem I got is: this Servo is 180º limitaded, but with this video I realized that there's a way to make it continuous rotate. But actually I am very amateur on programming and can't make everything work.

@rsporny
Copy link
Owner

rsporny commented Nov 14, 2018

Since rpio supports PWM it seems easy enough. If you manage to do some sort of proof of concept, please share the code and I'll think how to support it in this plugin.

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

3 participants