Find out range of servo rotation
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I am controlling a servo motor with Arduino and Matlab. The servo motor changes its position if the input values belong to the interval [0.111 0.924] by using the writePosition() function. Is there any way of finding out the range of the rotation in degrees ?
0 comentarios
Respuestas (1)
Soham Chakraborty
el 23 de Oct. de 2019
Hello,
As per my understanding you want to read the shaft position in degrees.
To answer your question, you would first have to declare the range of the interval and then read th eservo position using the readPosition(s) command, where 's' is the servo object.
For example, the following documentation link provides a similar example using the FS5106B servo: https://www.mathworks.com/help/supportpkg/arduinoio/examples/control-servo-motors.html
Ver también
Categorías
Más información sobre Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!