SBUS to PWM decoder on Arduino
Автор: ceptimus
Загружено: 2022-04-23
Просмотров: 11241
Описание:
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: https://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: • Arduino SBUS decoder update
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.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: