px4驱动linux,Connecting an RC Receiver on Linux

Redirecting...

Click here if you are not redirected.

Connecting an RC Receiver on Linux (Including S.Bus)

This topic shows how to setup a PX4 Linux-based autopilot to connect and use a supported RC receiver 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).

For an S.Bus reciever (or encoder - e.g. from Futaba, RadioLink, etc.) you will usually need to connect the receiver and device via a signal inverter circuit, but otherwise the setup is the same.

Then Start the PX4 RC Driver on the device, as shown below.

Starting the Driver

To start the RC driver on a particular UART (e.g. in this case /dev/ttyS2):

rc_input start -d /dev/ttyS2

For other driver usage information see: rc_input.

Signal Inverter Circuit (S.Bus only)

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.

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 晶体管(例如 NPN S9014 TO92)

1x 10K 电阻

1x 1K 电阻

可以使用任何类型/型号的晶体管,因为电流消耗非常低。

Circuit Diagram/Connections

Connect the components as described below (and shown in the circuit diagram):

S.Bus 信号→1K 电阻→NPN 晶体管

NPN晶体管发射→GND

3.3VCC&→ 10K电阻→ NPN晶体管集合→ USB-to-TTY rxd

5.0VCC→S.Bus VCC

GND → S.Bus GND

fef593632d0327fe902bb2a2d069aae7.png

The image below shows the connections on a breadboard.

afa79d85efab54d8e5060c161284975a.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值