SBUS to PWM decoder on Arduino @ceptimus
SBUS to PWM decoder on Arduino  @ceptimus
Uploaded April 2022 | Updated November 2026, 3 hours ago
Uses a standard AtMega328 Arduino (Uno, Nano, Pro Mini, etc.) to decode an inverted SBUS signal and drive up to eighteen PWM (servo) outputs. Inverted SBUS goes in on RX0, and the PWM outputs are on pins D2 - 13, and A0 - A5. The outputs go in channel order, so the first 8 channels are on D2 - D9.
Here's a link to the Arduino sketch: ceptimus.co.uk/SBUS2PWM.zip
Here's a link to a previous video of mine showing an SBUS decoder that drives CPPM out, and also provides a human readable display of the channels on a little OLED display module: youtu.be/XBsLfIQPxf4

I misspoke a couple of times when discussing the PWM frame rate. One time I said 'six milliseconds' and another time 'twelve seconds'! It should always have been 'twelve milliseconds' (actually about 12.2) If your receiver outputs SBUS frames slower than every 12.2 milliseconds, then the PWM output rate will sync with those frames: if your receiver outputs SBUS frames faster than every 12.2 milliseconds, then intermediate frames will be ignored, and the servo PWM signal will be sent on every other SBUS frame (or every third frame, etc.)

If the SBUS signal stops, then the decoder will stop outputting PWM signals, this leaves the servos in their last commanded position, until the SBUS signal is restored.
SBUS to PWM decoder on ArduinoAT89C2051 clock kits.  Firmware and source code for three-button variety.Arduino SBUS decoder with OLED display and CPPM outputVCCC24 My Snake wild competition entryDifferent patterns on the 57-LED hourglass kits, and how to alter the clock speedRadio control (four channel proportional) using two Arduinos with nRF24L01+modules .Lidl Pulser Flight video (ground view and on-board)Slope soaring. Walton-on-the-Naze, Essex.Raspberry Pi EB:Expansion Board PI:PI seven segment displayF5J competition at Fish Meadow, Upton upon Severn, June 2021.Octagonal Star.kit.  Programming progress.Read AT89C2051 using Arduino (Nano, Uno, etc.)
ceptimus |

SBUS to PWM decoder on Arduino

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER