Futaba SBUS reverse engineered to work with Arduino

ardued:
Hi, thanks for nice work on this code :slight_smile:
I have tried the code, made transistor signal inverter and i read the values of ch 1-8.

Arduino ProMicro 16Mhz
Reciever = Futaba R6303SB
Transmitter = Futaba 10C

Any idea on why dont i get values from channel 9 and 10?
ch9 stays solid on value 1023
ch10 stays solid on value 0

Solution:
Well i found it so i leave this post here if someone else wonders.
In the libraryfile "FUTABA_SBUS.h" i removed "//" before `1
Now it works perfectly and prints all channels :slight_smile:

Thanks for posting this...now I've got all 16 channels of my Taranis after uncommenting #define ALL_CHANNELS. Before this, I was only able to see channels 1-8 changing.

Next step for me is to pass along some of these values to a Pololu Servo Maestro controller.

Here is my updated serial display line with all channels

    Serial<<sBus.channels[0]<<"\t"<<sBus.channels[1]<<"\t"<<sBus.channels[2]<<"\t"<<sBus.channels[3]<<"\t"<<sBus.channels[4]<<"\t"<<sBus.channels[5]<<"\t"<<sBus.channels[6]<<"\t"<<sBus.channels[7]<<"\t"<<sBus.channels[8]<<"\t"<<sBus.channels[9]<<"\t"<<sBus.channels[10]<<"\t"<<sBus.channels[11]<<"\t"<<sBus.channels[12]<<"\t"<<sBus.channels[13]<<"\t"<<sBus.channels[14]<<"\t"<<sBus.channels[15]<<"\r\n";

And of course, thanks to Mike for the library!