else if(strcmp(hyp,"MEDIUM") == 0)
        system("espeak 'medium'");
        printf("%s\n", hyp);
        digitalWrite(LIGHT1, HIGH);
        pwmWrite (PWM_pin1, 524) ;


i try to control servo using voice but the program doen't run, can someone help me ? note : PWM_pin1 = 1

  • 3
    Why do you think we know how pwmWrite has been configured. It's always best to post a complete executable example to support a question. This snippet does not help us diagnose the problem.
    – joan
    Apr 9, 2020 at 16:03


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.