Analog steering output voltage via PWM pins?

Is it possible to setup ph to output an analog voltage instead of PWM for steering? If not, has anyone tried a simple low pass filter? Any other way?

http://discuss.ardupilot.org/t/analog-steering-output-voltage-via-pwm-pins/11255/1

Im not aware of such feature but maybe @gmorph can answer this ? Thanks in advance!

We don’t have a DAC (Digital to Analogue Converter) on the PH so you can’t do it without some external hardware. A cheap approach is to use a capacitor (the low pass filter option) as a PWM voltage averager. So the longer the PWM pulse the higher the average voltage. Its not a great approach, and is very “slow” so your steering would be very slow to respond. A better approach is to use a DAC for PWM to voltage conversion.

Thanks, Grant.

1 Like

can the opposite work , use inputs as analog instead of pwm ?