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.
Hi folks!
I purchased two HS 422 servos (from http://www.coolcomponents.co.uk/catalog/product_info.php?cPath=46&products_id=235). I am facing a problem with using the servo library, each time I run the simple code below to center the servo, the servo moves to one extreme end and stays there humming.
#include "mbed.h" #include "Servo.h" Servo s1(p21); int main() { //wait(1); s1 = 0.5f; while(1) {} }Am I missing something? I am facing the same issue with both servos, so I'm inclined to believe that it has something to do with the code.
Thanks in advance,
-Devesh