Arduino 18 channel PWM to SBUS and SBUS to PWM @ceptimus
Arduino 18 channel PWM to SBUS and SBUS to PWM  @ceptimus
Uploaded April 2022 | Updated November 2026, 1 day ago
I hooked up eighteen PWM inputs to one Arduino Nano, and eighteen servos to a second Nano. The first Nano samples the PWM and converts to an (inverted) SBUS signal which it outputs. The second Nano decodes the SBUS signal and drives eighteen PWM outputs to control the servos.

It was an interesting coding challenge to get 8-bit Arduinos to do that jitter free and with fast frame rates (about 82 updates per second). Coders may wish to study the sketches which use some pretty advanced techniques such as inline assembly, and direct control of the Serial hardware.

All the sketches are stand-alone and use no libraries.
PWM to SBUS: ceptimus.co.uk/PWM2SBUS.zip
PWM monitor (use with the Arduino IDE Serial Plotter tool (Ctrl-Shift-L) to get a real-time graph of all 18 PWM inputs (115200 baud): ceptimus.co.uk/PWM18channelMonitor.zip
SBUS to PWM: ceptimus.co.uk/SBUS2PWM.zip
Arduino 18 channel PWM to SBUS and SBUS to PWMOctagonal star kit. Work in progress.Cheap POV clock kitE-paper display - improved Arduino circuitSaxophone borescopeGarys base unit - and an easy way to test infra red LEDsFrSky V8 transmitter module using Arduino and CC2500Ripmax Trainer test flightMikes solar-powered planesCPPM decoder to 8 servo outputs, using an ATmega328 chip.Sammys Raspberry PisLEGO Mindstorms NXT Mindcuber, solving Rubik cube.
ceptimus |

Arduino 18 channel PWM to SBUS and SBUS to PWM

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER