Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I am trying to reproduce facial expressions of a robot using the mbed kit. The face is driven by six servos.
I have a problem for testing the servos. I am using this code and one servo is connected to P21.
#include "mbed.h" PwmOut servo_0(p21); int main() { servo_0.period(0.020); while(1) { for(float p = 0.0f; p < 11.0f; p += 0.1f) { servo_0 = p; wait(0.1); } } }The skeleton of the code was found in example programs. Thanks...