Pregunta

How to control Servo Motor with Android using IOIO board? What is the android code behind it and what kind of input is required?

¿Fue útil?

Solución

This is a common question when using the IOIO, and the answer is easily Googleable. Also, please adhere to the SO guidelines when posting, showing what you have tried, and what you are having problems with.

Servo control is PWM, which is a function built into the IOIO library:

PwmOutput pwm = ioio.openPwmOutput(pinNum, freq);
pwm.setDutyCycle(dc);
pwm.setPulseWidth(pw);

See this page

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top