Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top