Hey, i am building a rc plane with arduino and to operate it i wanna use TBC Crossfire system that i have already used in some fpv drones. I saw a reddid post with some github references about this topic but i can't really understand the code. Can someone help me writing the code plese?
It basically allows a teensy ( a very similar microcontroller to arduino) to comunicate with any SBUS receiver
You just need to put the Crossfire receiver into SBUS Mode (you can use the TBS Agent software or directly with your radio), then you can connect the VCC to 5V, the GND to GND, and the TX Pin of the Crossfire Receiver to an RX pin of one of the UART PORTS of the Teensy (remember that the exapmple of the library is set up to comunicate with the RX2 witch is pin 7 on the tensy 4.0). Then you can test it out by running the only example in the library and you are done!.
The library allows you to store each channel of the receiver to a variable that you can then use for watherver you want.
I dont know if this works also with original arduino boards.
I am building a thrust-powered quad and need the TBS Crossfire CRSF signal into an Arduino with as many channels as possible for subsystems. I tried the two other CRSF libraries on Github and could not get anything to compile.
error: invalid cast to abstract class type 'sketchLayer::CRSFforArduino' .... etc...
The Bolder Flight Systems SBUS library works like a charm.
I have a TBS Crossfire Sixty9 RX unit, a RadioMaster TX16S with a TBS CrossfireTX unit, and hooked up a Leonardo. TX and RX units were previously paired.
The library says it works with all Arduino architectures, fantastic.
In TBS Agent on PC, connected via USB to the RadioMaster, choose the Sixty9 RX unit and set the 'Output Map.' | Output 1 : n.i.SBUS (SBUS did not work for me)
TX green wire from the TBS Sixty9 to pin 0 (RX) of the Leonardo. Have external power for the TX unit, but on the desktop environment at least, the Sixty9 runs off the USB power without a problem.
Ran the sbus_example.ino sketch from the examples and get 16 channels displaying (two extra channels showing 0) twelve of which are updating live values. Which corresponds with the setting of 12 channels in TBS Agent. Right on.