0

When I do

myServo.write(0)

It isn't straight, I want it to be straight but it is at about a 45 degree angle anyone know how to reset the position with arduino to make other positions 0 and making everything relative to where that zero is?

migrated from electronics.stackexchange.com Jun 27 at 2:56

This question came from our site for electronics and electrical engineering professionals, students, and enthusiasts.

  • 7
    The easy way is to remove the servo arm, set the servo position with the Arduino, and then put the servo arm back on. – W5VO Jun 26 at 20:55
  • 1
    if the servo class is designed to go from 0 to some maximum, then it's correct that a typical servo should be at 45 degrees (and it should be at 45 degrees the other way when you ask for maximum). Typical modern servos have splined output shafts that are easy to reset. – TimWescott Jun 26 at 21:07
  • 1
    On Arduino, 0 is 90 degrees one way, 90 is centered, and 180 is 90 degrees in the other direction. Not all servos can do 180 degrees so the actual maximum rotation may be less. – Bruce Abbott Jun 26 at 21:22
  • What kind of servo? And reference angle ? – Sunnyskyguy EE75 Jun 26 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.