9 years, 3 months ago.

[Servo] Number of PWM channels, general values

Hi,

I'm trying to get a hang of the FRDM-TFC API. I got the motors running, but the Servo it's kinda weird. First of all: Why are there 2 channels used? From my previous experiences with servos I only needed one. Secondly: What values are interpreted by de TFC_SetServo()? The first parameter selects which channel to use, but the second parameter is between which values?

Question relating to:

Official library for the FRDM-TFC shield Cup, Freescale

1 Answer

9 years, 3 months ago.

1.) There is an extra servo output on the FRDM-TFC in case a team wanted to use another servo in their design. (I.E. I have seen some mount the camera so it can be steered as well).

2.) Look in TFC.h Lines 171 to 190 will give you the answer. In TFC.cpp, lines 9 and 10 set the default servo pulse widths at the extremes

Accepted Answer