2

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?

PixelStar
  • 21
  • 1
  • 2
  • 8
    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 '19 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. –  Jun 26 '19 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 '19 at 21:22
  • What kind of servo? And reference angle ? – Tony Stewart EE75 Jun 26 '19 at 21:47

0 Answers0