ZZ-Cat / CRSFforArduino

An Arduino Library for communicating with ExpressLRS and TBS Crossfire receivers.
GNU Affero General Public License v3.0
161 stars 27 forks source link

Can I communicate and interact with TX? #59

Closed zhuwei closed 11 months ago

zhuwei commented 11 months ago

Is there already an issue for this?

Is your feature request related to a problem?

I want to create a simple control system instead of Opentx, Because many tx communicate in half-duplex and only have one GPIO connection, I don’t know whether CRSFforArduino currently supports it.

Describe the solution you'd like

Use esp32 to communicate with tx, and then use mobile phone Bluetooth to communicate with esp32 for parameter configuration.

Describe alternatives you've considered

There is currently no open source alternative

Additional context

I just want to make a very simple remote control with no screen, only a switch button and voice broadcast, and the rest are set up through the mobile phone's Bluetooth. For example, a mini handle remote control or a car or boat remote control

ZZ-Cat commented 11 months ago

Thank you for your suggestion. However, this is outside the scope of CRSF for Arduino.
CRSF for Arduino aims to bring the Crossfire RC Protocol to the Arduino ecosystem of development boards.

It is not an entire controller, transmitter, receiver, and flight controller suite of firmwares.
It is simply a library for a widely used RC and telemetry protocol, and it's my attempt at bringing it to the Arduino development platform, while simultaneously supporting a diverse range of hardware targets.

CRSF for Arduino is intended to be used as the pipeline between a compatible CRSF (EG ExpressLRS or TBS Crossfire) receiver and your development board. IE Your development board is seen by the CRSF Protocol as the "Flight Controller".

One more thing... OpenTX is obsolete firmware, as EdgeTX has overtaken its place in the drone community. I wish you all the best in your endeavours, and the best of luck to you.

zhuwei commented 11 months ago

I think it may not have been expressed clearly. I want to use CRSF for Arduino and esp32 tx for data communication, just adding half duplex communication on the existing basis. Do you know if it is available now?

ZZ-Cat commented 10 months ago

For a start, your question here should not be in the Issues tab.
Issues are for bug reports, feature requests and requests for new target development boards.
Everything else goes to my Discussions tab.

If you would like more information, you can read the CRSF Protocol's documentation here.
The physical UART for the CRSF Protocol used in CRSF for Arduino is full duplex (and uses both UART Rx and Tx pins) and supports telemetry feedback, as of #47.
As of #39, CRSF for Arduino does support a handful of ESP32 targets.

What you need to do in order to get up and running is you MUST have at least either a TBS Crossfire transmitter module and receiver, or an ExpressLRS transmitter module and receiver. Either way, you connect your receiver to your development board (in your case, your ESP32 target) via its default Serial1 UART port (usually this is marked as pins 0 for Rx and 1 for Tx); and you plug your transmitter module into the module bay of your handset (EG RadioMaster TX16S).
Then, you flash your ESP32 with CRSF for Arduino... preferably using one of the example firmwares to get you started and to see how the API works.

As for you making your own handset, that is outside the scope of CRSF for Arduino itself.

Also, I am locking this discussion. If you would like to continue it, you can do so in this repository's Discussions tab, under the Q&A section.