Home arrow Support arrow Forums

Luminary Micro Forums

bsmith

Fresh Boarder
Click here to see the profile of this user

2006/12/17 21:32

5V I/O....

Hi,

I'm wanting to use the board as a servo controller, but it appears that I need the PWM lines to be 0-5V instead of 0-3.3V.

Is this possible without adding any external hardware?

If I do need some external hardware, then would I just need a 5V source + pull up resistor, and change the PWM library to set it to GPIO_PIN_TYPE_STD_WPU?

Or, is there something else I can do? :)

(More to the point...does anyone know the control voltage required when controlling servos? Is it related the voltage used to power the motor?

Thanks,

--buddy

login or register to reply

bsmith

Fresh Boarder
Click here to see the profile of this user

2006/12/18 20:03

Re:5V I/O....

Replying to my own post....

I changed the GPIOPadConfig() in pwm.c to use GPIO_PIN_TYPE_STD_OD. When I connect a pull up resistor (18k or so, arbitrary....) to the motor + and the PWM output, I now get 100% working servo control.

Excellent.....

login or register to reply