Plane: Using do_set_servo and do_digicam_command.
Hi there
I am trying to use the do_set_servo or do_digicam_command in arduplane V.2.74b. To move a servo inflight, so it drops a parachute or an egg on a waypoint.
I have read the forums pretty well and nothing seems to move the servo. Here is a summary of what I am doing and I would really appreciate any help you can give.
I connect 2x servos as seen on Fig. 1 to the CH5 and A5 as seen on Figs. 2 and 3. Because I am not sure which to use.



I am testing this using the mission planner then walking around the parking lot where I work. In Fig. 4 i show how my way points are set in the MP. Fig 5 shows the path I am walking. Then The Fig 6 shows the shutter settings for the do_digicam_command. If somebody can tell me what I am missing and why the servos don't move would be highly appreciated.
I feel like I am missing something, like enabling the servo outputs in the advanced parameters.
Best Regards
Freyfaxi.
I think you just need to set this parameter to Manual. http://plane.ardupilot.com/wiki/arduplane-parameters/#Servo_out_function_RC5_FUNCTION
RC5 is on the Output side of the board labeled 5 (not the A5 which is configured as something else, and you don't want to power a servo from there as could cause a brownout)
It does not work. Which is really frustrating so I uploaded the ArduCopter Firmware and tried the camera trigger on channel 7. See link. I works and moves the servo like a champ. http://code.google.com/p/arducopter/wiki/AC2_Camera But the thing is I want to make it work with the Arduplane and "tridge" says it should work for arduplane https://github.com/diydrones/ardupilot/issues/153
So changing the RC5_FUNCTION in adv parameters did not move the servo for me. Any idea what might have been wrong.
The servo should be connected to RC5 which is one of the outputs on the back of the APM which is what you've done in the 2nd image perhaps. I personally always use RC10 or RC11 which are much further up on the left side of the APM. Need to be careful with those labels on the left side of the APM though, they don't perfectly line up with the pins.
In his picture he shows a servo on output 5 as well as A5, looks like he has tried both, with no luck
Phil
On 19/07/2013, at 0:56, Randy Mackay [email protected] wrote:
The issue is the confusion between A5 and RC5. The servo in the image above is connected to A5 (analog port 5) but it needs to be connected to RC5 which is one of the outputs on the back of the APM.
— Reply to this email directly or view it on GitHub.
I think if you want the RC outputs to be controlled by the autopilot, RC[x]_FUNCTION needs to be set to 'Disabled', ie. 0. Manual is for direct RC feedthrough from input to output.
On Thu, Jul 18, 2013 at 8:22 AM, proficnc [email protected] wrote:
In his picture he shows a servo on output 5 as well as A5, looks like he has tried both, with no luck
Phil
On 19/07/2013, at 0:56, Randy Mackay [email protected] wrote:
The issue is the confusion between A5 and RC5. The servo in the image above is connected to A5 (analog port 5) but it needs to be connected to RC5 which is one of the outputs on the back of the APM.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/ardupilot/issues/449#issuecomment-21191181 .
I connected via A10 and A11, and I am pretty sure that i caused a brownout and can't upload the arduplane firmware. Has anybody experienced this?
And when I read this below I feel like this: http://www.angelfoodcomic.com/wp-content/uploads/I-have-no-idea-what-I-am-doing.jpg
Warning: Do not connect power (red + & black -) from the A10 & A11 connectors to the servos, just use the servo signal lines. Power the servos via PWM Outputs connector or separate UBEC. These solutions will avoid the scenario that can possibly happen when the servo/s draw too much current and cause the APM to brownout (reset)
So Im going to try to power the servos the other way with the help of you guys or this link ;) http://diydrones.com/forum/topics/powering-the-servos-to-prevent-brownout-please-help-me-understand
Okey, I connected to pin 12 :/ what does that do to my APM? I don't seem to be able to connect to it.
I tested this today on arduplane on my APM2.0. I connected the servo to RC11 (aka A11) on the left side of the APM. Then I set the Hardware > Optional Hardware > Camera Gimbal's Shutter field to "RC11". I also updated the Pushed and Not Pushed values to 1700 and 1300 respectively. I could get it to trigger by going to the Flight Data screen and right-mouse-button-click on the Trigger Camera NOW. I could not get it to trigger by setting CH7_FUNCTION to 10 and flicking the CH7 switch.
I was also able to get it to only twitch by setting CH7_FUNCTION to 1 (Manual) and then using the MP's Flight Data screen's Servo tab. It looked to me like the servo was trying to move to the new target but was immediately being pulled back to center so it basically just twitched for a moment.
I got it to work in Arduplane, I just put the signal from the A11 to the servo and powered the servo via the CH8 output. I used do_digicam_command. That seems to work fine but the do_set_servo does not work at all in my case. On the other hand can a change the min and max limits for the PWM on Pin A11? I know it's from 1000 - 2000 ms. but can I make the gap larger?
Thx for your feedback. If I would create a guide, where is the best place to post it :P ;)?
Closing this as working as we used it in the outback challenge. If anyone objects please let me know. Thanks, Grant.