Everything work ok otherwise. The 4 motors run correctly, the sensors all check out.

I have a Corona digital servo that works when I plug it into the receiver or output channel 0.

On output channel 4-7 I don't get anything.

servoMotor = constrain(APM_RC.InputCh(3), 1220, 1780);

APM_RC.OutputCh(6, servoMotor);

APM_RC.Force_Out6_Out7();

I put the variables in the serial monitor. Input channel 3 and servoMotor goes from 1220 to 1780.

The only time the servo reacts is when I plug in the power. It twitches once.

Power is from the LIPO through a BEC plugged into output channel 7. The red wire to the four ESC's are disconnected.

Views: 39

Reply to This

Replies to This Discussion

I too have had difficulty with digital servos, only getting some twitching on startup and very erratic occasional servo movement. With standard servos there is no problem. May be an issue with the current draw of the digital servos causing a brownout on the board.
you have to uncomment
#define IsAM
because it tries to toggle these outputs
// #define IsAM

If it hasn't been done, I agreee w/ Sebastian. I can vouch for APM's ability to run digitals with sufficient BEC/supply, as my cam stabilization ran 2 Airtronics 94761's without a hitch.Let us know what you determine!
Thank you Sebastian. All four outputs are tied to digitalWrite for LED's with isAM.

The servo works with #define IsAM commented.

Yes if you have IsAM activated and OUT4-7 pins in use on ArduUser.h file, camera servoes won't work. So either uncomment IsAM and/or change ArduUser.h

 

/* AM PIN Definitions */
/* Will be moved in future to AN extension ports */
/* due need to have PWM pins free for sonars and servos */


#define FR_LED 3  // Mega PE4 pin, OUT7
#define RE_LED 2  // Mega PE5 pin, OUT6
#define RI_LED 7  // Mega PH4 pin, OUT5
#define LE_LED 8  // Mega PH5 pin, OUT4

/*
#define FR_LED AN12  // Mega PE4 pin, OUT7
#define RE_LED AN14  // Mega PE5 pin, OUT6
#define RI_LED AN10  // Mega PH4 pin, OUT5
#define LE_LED AN8  // Mega PH5 pin, OUT4
*/

 

to be:

 

/* AM PIN Definitions */
/* Will be moved in future to AN extension ports */
/* due need to have PWM pins free for sonars and servos */

/*
#define FR_LED 3  // Mega PE4 pin, OUT7
#define RE_LED 2  // Mega PE5 pin, OUT6
#define RI_LED 7  // Mega PH4 pin, OUT5
#define LE_LED 8  // Mega PH5 pin, OUT4
*/

#define FR_LED AN12  // Mega PE4 pin, OUT7
#define RE_LED AN14  // Mega PE5 pin, OUT6
#define RI_LED AN10  // Mega PH4 pin, OUT5
#define LE_LED AN8  // Mega PH5 pin, OUT4

(yes i know later ones have wrong pin marking on their comments)

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service