Hi all, I want to control mg995 from esp8266. I tried PWM.set method from api_pwm.js but everytime the servo is moved to around 160-170 degrees on two different events :
PWM.set(SERVO_PIN,100,50); // to move to degree x
and PWM.set(SERVO_PIN,0,0); // to move back to the zero degree position
i don't know how this PWM.set method is working. In general i want to know what values to write if i want to rotate my servo by, lets say 45 degree. If anyone has done something like that or know anything about this then please do comment. Every comment is appreciated.