-
Notifications
You must be signed in to change notification settings - Fork 34
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
Switch servo not works #11
Comments
Same problem for me. Did you solve it? |
I have the same problem. I am not an expert but I think it is do with the pulse width (in milliseconds) that is used for the servos. |
Unfortunately I don't know the programming language that well, however I have other sketches that move the same servo 180 degrees so I agree with you that it is definitely a code configuration problem, not an hardware problem. |
Sorry for my bad english, but i think, the follow steps will solve your Problem @TillMoss and @Fullmetal11 you have to calibrate the min and max pulsewidth in servo.h, located in \AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\Servo\src\
in my case i have set to 500 and 2500, like @chips32 |
@Doka85 Thak you!!! As you suggested, I change the value: #define DEFAULT_MIN_PULSE_WIDTH 500 // uncalibrated default, the shortest duty cycle sent to a servo in the file servo.h located in \AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\libraries\Servo\src\ and I solved the problem, now it works good!!!!! |
I have made this Useless-box but switch servo rotate only 45 degrees. If in config.h I change 145 with other value servo rotate always 45degrees
The text was updated successfully, but these errors were encountered: