Hi, I am the new member in your site. I have bought a C36R servo motor manufactured by cytron. I want to have the servo motor controlled by PIC16F873A microncontroller with 20MHz external crystal oscillator.
I have tried to connect the servo motor to my programmed mcu...but the result manifested is very weird, the servo was keep vibrating and turning in an inconsistent fashion. Besides, the servo acts differently everytime I switch on.
I know to activate the servo we need 20ms period or 50Hz frequency, I have measured the pwm signal generated from my mcu using oscilloscope, the value for the period is around 22ms or 44Hz, is it the reason why the servo can't work properly?
I have check my codes for several times, I think my calculation for the period is correct. Please help thanks a lot.
I set 1ms and 2ms pulse width in my codes for servo to turn counterclockwise and clockwise respectively.