PWM workaround on channels 5-8

My setup is the following:

-Raspbian image 2017/09/22 Stretch
-Arduplane 3.8.1 and Mission Planner 1.3.52
-Tilt Rotor tricopter (Vectored yaw instead of tail servo)

I am using pwm outpus 1-3 for ESCs and channels 4 and 9-12 for servos, leaving servos 5-8 disabled, as in the image:

The other PWM ports have the following functions:
Servo1: 34
Servo2: 33
Servo3: 36
Servo4: 75
Servo9:76
Servo10:41
Servo11:75
Servo12:76
Servo13-16: Disabled (0)

The PWM pulses I get in channels 1-3 are sporadic (unusably so), as in the image (Notice the 250ms scale):

All the other channels (4-16) are silent, no pulses at all.

SERVO_RATE is set at 50 Hz. I have tried also to disabling the pwm channels as in (here), but no improvement. I wonder if I am missing something on the “disable channels 5-8” procedure.

Hi!
Try moving your servo from channel 4 to channel 5.
PWM outputs 1-4, 5-8, 9-12 should have the same frequency and same purpose (only ESCs or only servos).

Thank you for the quick response @NikitaTomilov.

I have changed Servo4 to Servo9 and shifted all the others:
Servo1: 34
Servo2: 33
Servo3: 36
Servo9:75
Servo10:76
Servo11:41
Servo12:75
Servo13:76
All others disabled (0)

I have also followed the instructions in this post, once I’m using Q_ENABLE = 1.
Now I get a nice PWM output, but I was forced to set Q_RC_SPEED=50. Any other value makes the problem return. SERVO_RATE seems to have no affect.
I am actually concerned about running the drone at such a low rate. I am currently running the controller at 400 Hz (SCHED_LOOP_RATE=400).

It seems that you still have functions with different default frequencies on the same channels.

First things first, if you have updated to the latest RCIO firmware, you can use channels 5-8 without troubles. We fixed that issue.
Try connecting servos with the same functions on the same PWM frequency channel.
In your config, it may look like this (but not exactly):

Servo1: 34
Servo2: 33
Servo3: 36
---
Servo5: 41
---
Servo9: 75
Servo10: 76
Servo11: 75 
Servo12: 76

If you haven’t updated the RCIO firmware, or don’t know how to do this, follow this link:
https://docs.emlid.com/navio2/common/dev/emlidtool/

I am glad to hear that the PWM channels issue has been fixed.

Is there any resource where I can find which functions can be combined together in the same frequency channel? I’m not yet familiar with Ardupilot`s source code, I can only find the frequency setup of the main motors.

I dont have my board with me now. Once I get it I`ll try it and post the results.

I don’t think you will find any information about “combining” functions. This is someway unique for the Navio2 boards. It is a hardware limitation of a chip that we use.
You just have to have the same frequency on channels 1-4, 5-8, 9-12, 13-14 and you will be good to go.

Here is some information about the Stretch update, which fixed the 5-8 issue: Raspbian Stretch Release for Navio with ArduCopter-3.5 and ROS Kinetic

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.