How to control Servo Motor with Android using IOIO board? What is the android code behind it and what kind of input is required?
Asked
Active
Viewed 921 times
-5
-
Can you be more specific about the question? Have you tried anything so far? What is your actual problem? – Michael W May 27 '13 at 14:55
-
The question is badly put but this post has a good answer! – gideon Jun 27 '13 at 19:46
1 Answers
2
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);

Matt Clark
- 27,671
- 19
- 68
- 123