Hi Guys,
I am using the micro serial 8 servo controller with a PIC16F876.
I connected the USART pin of the PIC to the RS-232 serial input of the controller and i have written the following code in C:
void main(){
TRISB = 0x00;
PORTB = 0x01;
Usart_Init(2400);
while(1){
Delay_ms(1000);
Usart_Write(0xFF);
Usart_Write(0x01);
Usart_Write(0x00);
PORTB = ~PORTB;
Delay_ms(1000);
Usart_Write(0xFF);
Usart_Write(0x01);
Usart_Write(0x0F);
}
}
I am using the Mini SSC II mode and the jumper placed.
I am getting an error: startup the servo turns just a bit and the green led blinks. then the yellow led blinks and the red led is on simultaneously.
I think the error is in the serial data i am sending.
What am i doing wrong?
PS: i am using a GWS mini servo.
Thanks,
Rami