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?

Était-ce utile?

La 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top