Hey does anyone know how to hook up the Servos provided for the Super Shifters? And if so does anyone know how to program it (in ROBOTC)?
Thanks in advance.
Servos connect directly to a PWM output on the Robot Controller.
Control their position the same way you would control motor speed using a Victor. Setting the PWM output to 0 will drive the servo output to one limit of travel, setting it to 254 will drive it to the other limit, and setting it to 127 will move the servo output to the center of its travel. You’ll probably want to experiment to find the proper numbers to put the actuator in the right spots for high and low gear, because the servo can overheat if it’s constantly trying to push against a physical limit.
PWM values in ROBOTC are centered around 0, not 127.
You can use Servos just like you would a motor in ROBOTC:
Assuming the Servo is attached to motor port 3:
motor[port3] = 0; //this will center the servo
motor[port3] = -127; //this will adjust the servo to one extreme
motor[port3] = 127; //this will adjust the servo to the other extreme
Thanks to all. I thanks you for giving me advaice. :o Amazingly enough I figured it out the same day I posted but I’ll use your advice to attach the new ones to the real robot.
Thanks and could someone close this thread I don’t know how.