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

if you have 2 different servos? #64

Open
5andy opened this issue May 12, 2016 · 1 comment
Open

if you have 2 different servos? #64

5andy opened this issue May 12, 2016 · 1 comment

Comments

@5andy
Copy link

5andy commented May 12, 2016

Instead of running a default min and max at 500 and 2500 for all servos

define DEFAULT_SERVO_MIN_US 500

define DEFAULT_SERVO_MAX_US 2500

How would I change this so...
pin 7 min = 300 and max = 1200
pin 11 min = 150 and max = 1650
(im building a pan / tilt live pi cam stream to start from boot and the horizontal range for the servo travel is bigger on the servo on pin 7 than the vertical range on the servo from pin 11.
Thanks for writing this. I'm a noob and this is a great help.

@richardghirst
Copy link
Owner

Sorry this is a bit late, but your only option is to run with a min of 150
and a max of 1650, and then take care in your code to never try and set pin
7 outside the valid range for the servo on that pin. You can set the
global min and max values via the servod command line or via the
servoblaster file in /etc/init.d/ if you start it that way.

On Thu, May 12, 2016 at 5:13 PM, Drew P Robertson [email protected]
wrote:

Instead of running a default min and max at 500 and 2500 for all servos
#define DEFAULT_SERVO_MIN_US 500
#define DEFAULT_SERVO_MAX_US 2500
How would I change this so...
pin 7 min = 300 and max = 1200
pin 11 min = 150 and max = 1650
(im building a pan / tilt live pi cam stream to start from boot and the
horizontal range for the servo travel is bigger on the servo on pin 7 than
the vertical range on the servo from pin 11.

Thanks for writing this. I'm a noob and this is a great help.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#64

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