Servo only does 90 degrees
-
Hello all,
This night I finally made some time to build a gateway and a device to use a servo.
The only issues I had was finding drivers to programm the nano and the uno ( I use the uno for the servo).Now , there is 1 issue. The servo only turns max 90 degrees. I uploaded the sketch without changing anything.
http://www.mysensors.org/build/servoIt should to a full 180 degrees I think ? it is a standard futaba S3001.
The servo is good ( I checked with my RC transmitter and reciever)anyone has an idea how to troubleshoot?
edit ... oh ... that's wierd... when I use the slider or open-close , it does the 90 degrees. but when I click up-down, it does full 180 degrees ...... why not with the slider??
thanks,
Cor -
Hello all,
This night I finally made some time to build a gateway and a device to use a servo.
The only issues I had was finding drivers to programm the nano and the uno ( I use the uno for the servo).Now , there is 1 issue. The servo only turns max 90 degrees. I uploaded the sketch without changing anything.
http://www.mysensors.org/build/servoIt should to a full 180 degrees I think ? it is a standard futaba S3001.
The servo is good ( I checked with my RC transmitter and reciever)anyone has an idea how to troubleshoot?
edit ... oh ... that's wierd... when I use the slider or open-close , it does the 90 degrees. but when I click up-down, it does full 180 degrees ...... why not with the slider??
thanks,
CorJust recieved a responce via another forum.
I ran in the same problem. I fixed it by replacing the line:
myservo.write(SERVO_MAX + (SERVO_MIN-SERVO_MAX)/100 * val); // sets the servo position 0-180
by the following 2 lines of code:
val = map(val, 0, 100, 0, 180); // scale 0%-100% between 0 and 180) myservo.write(val); // sets the servo position 0-180
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login