Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Soft serial on Darwin AIO FC 1-3s 15A (no Rx)
#1
I've just got one of these FCs for use on a 75mm craft. I see it has two UARTS and also pad S5 that can be allocated to - among other things - soft serial.

I have never tried to use soft serial before (or any resource allocation) but as I have the (ELRS) Rx on UART1 and want to keep UART2 free for things like GPS or black box logging, and I need smart audio for a Fyujon combined ELRS Rx and VTx, this seemed to be the moment to try it for smart audio.

The Darwin data says:

S5: (PB3) can be resourced to soft serial for smartport

(it also says

RSSI: PA0, TIM5_CH1, can be resourced for soft serial or camera control
resource camera_control A00)

resource SERIAL_TX 11 PB3 didn't work (syntax error), but resource SERIAL_TX 11 B03 did, smart audio worked fine. The CLI warned me that B03 was already in use for motor 5, but as there isn't a motor 5, I carried on.

However, unfortunately motor 3 stopped working. But, change it back as resource MOTOR 5 B03 and the motor works again, but no soft serial, of course.

So, I'm stuck. How do I get soft serial onto S5 without screwing anything else up?

Answers gratefully received.
Reply
Login to remove this ad | Register Here
#2
U got my interest… I use this fc and have crossfire and a vtx on the uarts.. would love to get black box on it to “dial it in”..
Isn’t there something about crossfire RXs and a uart on it? I can’t remember ? I wonder if ELRS has a possible function?
Reply
#3
I think Snow posted about remapping resources on another thread, recently. I don't personally know what command you need.

If you need an answer quickly, hop on to Betaflight's Discord and ask, someone will know.
Try Not, Do or Do Not
- Yoda

Reply
#4
(22-Jan-2023, 07:03 PM)Pathfinder075 Wrote: I think Snow posted about remapping resources on another thread, recently.  I don't personally know what command you need.

If you need an answer quickly, hop on to Betaflight's Discord and ask, someone will know.

Thanks. After a bit of research I think I've got the commands worked out, but what I need to know is what IO pin pad S5 is connected to on this specific Darwin FC. I have emailed Darwin but as it's the Chinese new year I'm not expecting a reply any time soon, so I was hoping someone might have got it going on this FC.
Reply
#5
There was some talk of combined Rx and VTx with a common CPU where such things could be done - a bit like Ghost I guess. As far as I know at the moment the only combined one at the moment is the Fyujon, and that is two completely independent circuits on the same PCB.
Reply
#6
Have you looked at Oscar's tutorial?

https://oscarliang.com/betaflight-resource-remapping/
Try Not, Do or Do Not
- Yoda

Reply
#7
(22-Jan-2023, 08:01 PM)Pathfinder075 Wrote: Have you looked at Oscar's tutorial?

I have, yes.

Actually I have now solved it for anyone interested - it is important to remove motor drive 5 from the IO pin as well as allocating soft serial, though why that screwed up motor 3 I don't know. There are times when you can have two functions on the same pin, but this isn't one of those. So the correct series of commands to get soft serial on to pad S5 is:

resource MOTOR 5 none
resource SERIAL_TX 11 B03

That puts softserial1 on that pin (soft serials are offset by 10, presumably to allow for more hardware uarts), and all the motors still work. And, to get it back as it was:

resource SERIAL_TX 11 none
resource MOTOR 5 B03
[-] The following 1 user Likes nmw01223's post:
  • Lemonyleprosy
Reply
#8
I have a fc with the esc toasted.. I may give this a shot.. if I pull it off.. can you suggest a black box logger?
Reply
#9
(22-Jan-2023, 11:22 PM)Rob Axel Wrote: I have a fc with the esc toasted.. I may give this a shot..  if I pull it off.. can you suggest a black box logger?

Can't I'm afraid, a friend got a very small cheap one and it worked OK though, so there must be some around.

Not sure how it will help you with a dead ESC though?
Reply
#10
(22-Jan-2023, 11:22 PM)Rob Axel Wrote: I have a fc with the esc toasted.. I may give this a shot.. if I pull it off.. can you suggest a black box logger?

OpenLager. The Happymodel or JHEMCU one are usually in stock. I’ve got the JHEMCU one, but here’s a link to the hm one.
https://speedyfpv.com/products/happymode...gJlCvD_BwE
Dangerous operations.

Disclaimer: I don’t know wtf I’m talking about.
I wish I could get the smell of burnt electronics out of my nose.
Reply
#11
I meant the remapping.. see if the uart responds properly .. THEN, do it to my good esc I have installed
Reply
#12
(22-Jan-2023, 11:38 PM)Rob Axel Wrote: I meant the remapping.. see if the uart responds properly .. THEN, do it to my good esc I have installed

Ok, yes, makes sense.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Darwin rtf bundle FlDronie 1 87 24-Mar-2024, 09:37 PM
Last Post: Pathfinder075
  4" frame that fits GOKU HD 745 EVO 40A AIO Zorik_IL 5 280 24-Jan-2024, 03:00 PM
Last Post: skywanderer
  BetaFPV Meteor 65 Pro 2022 w/ elrs built in serial RX BarqsIsGood 11 948 11-Dec-2023, 04:13 AM
Last Post: V-22
  2022 BetaFPV F4 1S 5A Toothpick/Whoop Flight Controller W/ Built in serial RX BarqsIsGood 2 202 10-Dec-2023, 01:22 PM
Last Post: SnowLeopardFPV
  BETAFPV F4 1S AIO - no ELRS ? niuk 3 219 19-Nov-2023, 12:17 AM
Last Post: SnowLeopardFPV


Login to remove this ad | Register Here