mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
* Failsafe metadata update * docs: update module reference metadata * docs: update parameter reference metadata * docs: metadata: update uORB graph JSONs * uorb message metadata updates * Add new uorb topics to sidebar * Remove uorb topics that no longer exist * fix up resulting docs links --------- Co-authored-by: PX4BuildBot <bot@pixhawk.org>
60 lines
2.2 KiB
Markdown
60 lines
2.2 KiB
Markdown
# Connecting an RC Receiver to a PX4 Linux-based Autopilot
|
|
|
|
This topic shows how to setup a PX4 Linux-based autopilot to connect and use a [supported RC receiver](../getting_started/rc_transmitter_receiver.md) on any serial port.
|
|
|
|
For RC types other than S.Bus, you can just connect the receiver directly to the serial ports, or to USB via a USB to TTY serial cable (e.g. like PL2302 USB to Serial TTL converter).
|
|
|
|
::: info
|
|
For an S.Bus receiver (or encoder - e.g. from Futaba, RadioLink, etc.) you will usually need to connect the receiver and device via a [signal inverter circuit](#signal_inverter_circuit), but otherwise the setup is the same.
|
|
:::
|
|
|
|
Then [Start the PX4 RC Driver](#start_driver) on the device, as shown below.
|
|
|
|
## Starting the Driver {#start_driver}
|
|
|
|
To start the RC driver on a particular UART (e.g. in this case `/dev/ttyS2`):
|
|
|
|
```sh
|
|
rc_input start -d /dev/ttyS2
|
|
```
|
|
|
|
For other driver usage information see: [rc_input](../modules/modules_driver_radio_control.md#rc-input).
|
|
|
|
## Signal Inverter Circuit (S.Bus only) {#signal_inverter_circuit}
|
|
|
|
S.Bus is an _inverted_ UART communication signal.
|
|
|
|
While some serial ports/flight controllers can read an inverted UART signal, most require a signal inverter circuit between the receiver and serial port to un-invert the signal.
|
|
|
|
:::tip
|
|
This circuit is also required to read S.Bus remote control signals through the serial port or USB-to-TTY serial converter.
|
|
:::
|
|
|
|
This section shows how to create an appropriate circuit.
|
|
|
|
### Required Components
|
|
|
|
- 1x NPN transistor (e.g. NPN S9014 TO92)
|
|
- 1x 10K resistor
|
|
- 1x 1K resistor
|
|
|
|
::: info
|
|
Any type/model of transistor can be used because the current drain is very low.
|
|
:::
|
|
|
|
### Circuit Diagram/Connections
|
|
|
|
Connect the components as described below (and shown in the circuit diagram):
|
|
|
|
- S.Bus signal → 1K resistor → NPN transistor base
|
|
- NPN transistor emit → GND
|
|
- 3.3VCC → 10K resistor → NPN transistor collection → USB-to-TTY rxd
|
|
- 5.0VCC → S.Bus VCC
|
|
- GND → S.Bus GND
|
|
|
|

|
|
|
|
The image below shows the connections on a breadboard.
|
|
|
|

|