MikeBland / SbusToPWM

Arduino as SBUS to PWM decoder
65 stars 22 forks source link

Sbus To CPpm #2

Open RMFPV opened 6 years ago

RMFPV commented 6 years ago

Hi Mike, Can it be also set to decode SBUS to 16 or 12 CPPM channels on one single output? Thank you.

MikeBland commented 6 years ago

That is not something easy to add/change. SBUS frames arrive every 9mS. Currently, to get accurate pulse timing, two sets of 4 pulses are output BETWEEN SBUS frames, synchronised to the SBUS input timing. A CPPM signal for 12 channels would have a period of arounf 30mS, so would not synchronise, and pulse edges would occur while a SBUS frame was alos arriving.

RMFPV commented 6 years ago

I see the problem now, but is there a way to find the solution?

DemidosMir commented 2 years ago

Usually use 8 pwm in one cppm. It maybe help and useful

DangerD1024 commented 1 year ago

Usually use 8 pwm in one cppm. It maybe help and useful

can someone share code with 8pwm? that's enough for me =) or maybe we can use stm32 for that

zelogik commented 2 months ago

@DangerD1024, RTFM, or more precisely ground <-> R 1Ko <-> TXpin