Sokrates80 / sbus_driver_micropython

a Micropython driver for the SBUS protocol
25 stars 7 forks source link

Inverted SBUS #1

Open rinozen opened 3 years ago

rinozen commented 3 years ago

Hi.. Thanks for the code.. A question, do i need to get uninverted SBUS signal before connect it to Pyboard RX (UART)?

Sokrates80 commented 3 years ago

Yes, there is an example of diy shield on the project website: air-pay.com

Cheers

On Fri 18 Jun 2021 at 18:13, rinozen @.***> wrote:

Hi.. Thanks for the code.. A question, do i need to get uninverted SBUS signal before connect it to Pyboard RX (UART)?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Sokrates80/sbus_driver_micropython/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADM2RFZKVP33TVCBUAUVMHLTTN5EHANCNFSM466AZOVA .

Sokrates80 commented 3 years ago

I meant air-py.com

On Fri 18 Jun 2021 at 18:13, rinozen @.***> wrote:

Hi.. Thanks for the code.. A question, do i need to get uninverted SBUS signal before connect it to Pyboard RX (UART)?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Sokrates80/sbus_driver_micropython/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADM2RFZKVP33TVCBUAUVMHLTTN5EHANCNFSM466AZOVA .

rinozen commented 3 years ago

@Sokrates80 , is the library work on esp8266?

matzetronics commented 8 months ago

Thanks for the code! Just a quick note that the software runs perfectly on the RPi Pico, which has the ability to invert the RX Pin in Code:

    def __init__(self, uart_port):
        self.sbus = UART(0,baudrate=100000, parity=0, invert=UART.INV_RX, timeout_char = 3, stop=2, tx=Pin(16), rx=Pin(17))

Nothing else needs to be changed and the signal can be directly connected to the Pico (GPIO 17 in this case)

Btw, works well with the SBUS receiver from the DJI Phantom 2 Vision+