The Wooden Menace is a robotic arm made from hobby servos
& (you guessed it) wood! It can be autonomously or remotely controlled.
Questions & Comments?
The Wooden Menace is a robotic arm made from hobby servos
& (you guessed it) wood! It can be autonomously or remotely controlled.
Code: Select all
int servo0 = 0xF63B; // Servo 0
int servo1 = 0xF077; // Servo 1
Code: Select all
switch(count){
case 1: PORTA = 0x08; // First Stage
WriteTimer1( servo3 );
break;
case 2: PORTA = 0x04; // Left Gripper
WriteTimer1( servo1 );
break;
case 3: PORTA = 0x00;
PORTC = 0x02; // Swivel/Rotate
WriteTimer1( servo4 );
break;
case 4: PORTC = 0x00;
PORTA = 0x02; //Right Gripper
WriteTimer1( servo0 );
break;
case 5: PORTA = 0x00;
PORTC = 0x01; // Second Stage
WriteTimer1( servo2 );
break;
case 6: PORTC = 0x00; //Future Servo?
WriteTimer1( 0 );
break;
}
Users browsing this forum: No registered users and 3 guests