sbus icon indicating copy to clipboard operation
sbus copied to clipboard

big fluctuations in the received values

Open HNeumeier opened this issue 5 years ago • 6 comments

i have tried the following example #include <sbus.h> // used pins #define SBUS_PIN 13 // D3 SBUS sbus; void setup() { Serial.begin(115200); sbus.begin(SBUS_PIN, sbusBlocking);
}

void loop() {

if (!sbus.waitFrame()) { Serial.println("Timeout!"); } else { Serial.println(sbus.getChannel(3)); } if (sbus.signalLossActive()) Serial.print("SIGNAL_LOSS "); if (sbus.failsafeActive()) Serial.print("FAILSAFE"); }

and the values i get back looks like this, why i have such big fluctuations, i have done nothing on the sender, can you help me.

1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 1500 917 1500 1500 1500 1500 1500 1500 1500 1500 917 1500 1500 1500 1500 1500 957

HNeumeier avatar May 22 '19 14:05 HNeumeier

I have same problem.

jasin755 avatar Aug 15 '19 06:08 jasin755

I am also seeing the same thing.

t0ny avatar Nov 11 '19 22:11 t0ny

Same problem.

sergek1985 avatar Jan 27 '20 02:01 sergek1985

Also having this problem, was anyone able to fix this?

czsimon avatar Jun 01 '20 14:06 czsimon

Hi I see the same, please someone fix this. It's the only lib I found, that does need an inverter - maybe that's why it does not work.

chrwh avatar Oct 25 '20 00:10 chrwh

Same problem here. Blocking or non blocking usage. Without a hardware UART's buffer, combined with a hardware inverter in front of it you will always miss too many frames to have a stable reading.

hmeijdam avatar Jan 21 '21 13:01 hmeijdam