Another SBUS OUT problem

So, for the life of me, I can’t figure out how to get sbus output working. I’m trying to use serial2 on a Matek F405hdpe FC. I’ve tested that I can get output to a uart on a raspberry pi by setting serial2 to mavlink and I can see data moving, so I’m pretty sure the wiring is ok. But when I switch it to sbus servo out, I don’t see anything. I’m trying to hook it to a hoverboard motor controller and using an Arduino or raspberry pi to convert from sbus to ibus since it doesn’t support sbus. It doesn’t seem like this FC need the brd sbus option since it’s not available. In servo outputs, I’ve tried various things including rc passthrough and throttle left and throttle right since this will be for a skid steering rover. Long story short, I can’t seem to get any data when I have serial2 set to sbus servo out. Do I need to use a different port or am I missing something?

F405 controllers cannot do inverted serial that SBUS uses, you would need an external SBUS inverter for the SBUS signal to be recognised.

https://www.aliexpress.com/item/32819855069.html

I’ll take a look at that, but I feel pretty dumb. I was reading everything thinking I had an F7 FC. No idea what I was thinking. However, since I’m just getting the data on a pi or an Arduino that I can put whatever code onto, I should be able to deal with that anyway, right? I’ll check, but I would have thought my receiving code would at least be catching invalid data, but I’m not seeing anything. I will double check though.

I’ve thought about trying a different output. Technically I could probably just go with pwm, but was trying to stay with something digital. I’m using mavlink for the RC control link via an elrs receiver, could I just pass mavlink rc controls somehow?

you can read the mavlink servo output packet. this is how I have done it to make a mavlink servo output expander to drive accessories on a boat.

Your stuff is how I got started on this Geo. I’ll read through that. I was using your code on the Arduino, unfortunately what I have on hand is an rp2040 and it’s going to be challenging to get it working with the limited uarts. But, I was using chatgpt to help me with the code and had bit banging working at least ok. Just could seem to get sbus to output.

Just updated my code to grab the rc channels via mavlink and that seems to be working, but I’ll have to think about how to do this as it’s not servo output. Maybe it’s possible to get that via mavlink? Anyway, going to read through your docs again.

1 Like

that code is wrote for a rp-2040. you just add this to Arduino.

the hoverboard controller also has mavlink servo output

Awesome, thanks, reading through it and looks interesting. I didn’t find these earlier today.