cmucam3-hardware (#1) - configure servo pin to output mode (#195) - Message List

configure servo pin to output mode

Hi,

I tried to configure GPIO servo pin to output mode. I wrote few lines below.

/* set GPIO servo pin to OUTPUT mode @param[ servo pin, mode] */

cc3_gpio_set_mode (0, CC3_GPIO_MODE_OUTPUT); cc3_gpio_set_mode (1, CC3_GPIO_MODE_OUTPUT); cc3_gpio_set_mode (2, CC3_GPIO_MODE_OUTPUT); cc3_gpio_set_mode (3, CC3_GPIO_MODE_OUTPUT);

/* initialize GPIO servo OUTPUT @param[ servo pin, value] */

cc3_gpio_set_value(0, 0); cc3_gpio_set_value(1, 0); cc3_gpio_set_value(2, 0); cc3_gpio_set_value(3, 0);

With this command line, am i only able to control the middle pin (which is the one that driving pulse to servo) ? Can i control +5V to on and off as well?

if anyone has done it please let me know how..

thanks in advance

  • Message #492

    You can only control the middle pins. The +5 and ground are hard-wired to power and ground.