hi
i just received two metal gear servos i ordered two weeks ago from ebay
**broken link removed**
my problem is both servos only rotate in clock wise direction.that is they can move from 1500us--> 2200us but fail to move 2200us-->1500us. so i have to rotate arm manually by hand.
this is the code I'm using (CCS C v4.084 on 12F675)
can someone tell is there anything I'm doing wrong or are these servos faulty coz i need to return them asap if they are faulty
i just received two metal gear servos i ordered two weeks ago from ebay
**broken link removed**
my problem is both servos only rotate in clock wise direction.that is they can move from 1500us--> 2200us but fail to move 2200us-->1500us. so i have to rotate arm manually by hand.
this is the code I'm using (CCS C v4.084 on 12F675)
Code:
#include "G:\Aruna\My Electronic projects\servo tester\main.h"
void main()
{
INT16 preset = 0;
INT16 time = 1500;
INT16 temp1 = 0;
INT16 temp2 = 0;
INT16 i = 0;
INT16 j = 0;
setup_adc_ports (sAN2|VSS_VDD);
setup_adc (ADC_CLOCK_INTERNAL);
setup_timer_0 (RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1 (T1_DISABLED);
setup_comparator (NC_NC);
setup_vref (FALSE);
//set_adc_channel (2);
//delay_us (100);
// TODO: USER CODE!!
WHILE (1)
{
output_high (PIN_A4);
delay_us (2000);
output_low (PIN_A4);
delay_us (20000 - 2000) ;
}
}
can someone tell is there anything I'm doing wrong or are these servos faulty coz i need to return them asap if they are faulty