fdivitto / sbus

Arduino library for SBUS (Futaba)
GNU Lesser General Public License v2.1
61 stars 20 forks source link

big fluctuations in the received values #10

Open HNeumeier opened 5 years ago

HNeumeier commented 5 years ago

i have tried the following example

include

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

jasin755 commented 5 years ago

I have same problem.

t0ny commented 4 years ago

I am also seeing the same thing.

sergek1985 commented 4 years ago

Same problem.

czsimon commented 4 years ago

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

chrwh commented 4 years ago

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.

hmeijdam commented 3 years ago

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.