-
Notifications
You must be signed in to change notification settings - Fork 266
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
Servo write() vs writeMicroseconds() #73
Comments
From PaulinaQuintero on 2020-06-07: Hello! Can I work on this feature? Or is already taken by someone else? |
Hello Paulina, |
From PaulinaQuintero on 2020-06-08: Hello kreinkens! |
Hello Paulina, The Arduino To add some details...
|
Hi @kreinkens. Has this been resolved? |
Hello there per1234, I'm still hoping to use continuous rotation servos in MATLAB in the future. Addressing the difference between write() and writeMicroseconds() might help in transferring solution to MATLAB. Again, I'm not an experienced programmer, just enough to help our freshmen get started. Thank you, |
Moved from arduino/Arduino#10160 by @kreinkens
Both
write()
andwriteMicroseconds()
commands should be able to control both position and continuous rotation servos, given appropriate inputs.I discovered that they are unable to act equally in controlling the continuous rotation servos. I was working in MATLAB which apparently used only the
write()
command as the basis for servo control.Returning to Arduino environment, I configured the servo,
attach(12,1400,1600)
. I measured the delivered signals. Although the midpoint pulse width of 1500 was valid, the min/max values were closer to 375 and 2620 respectively. The result is that it is not possible to vary the speed of the continuous rotation servo using thewrite()
command.Not a problem in Arduino, since
writeMicroseconds()
is available to create variable speed control.However, MATLAB has not included a similar command in the support for Arduino Hardware. I have made this request, but thought that addressing this in the Arduino
write()
command might be another strategy to solve this.The text was updated successfully, but these errors were encountered: