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
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










