inav icon indicating copy to clipboard operation
inav copied to clipboard

Use PB6 for LED_STRIP on Omnibus F4 V2 and above

Open jstremmler opened this issue 9 years ago • 24 comments

If I try to configure iNav 1.7.3 for a X-hexacopter on my Omnibus F4 Pro V3 and want to use an additional LED strip, then this is impossible because, when activating the LED_strip in the config menu resource A1 is now reserved for the LED strip and no longer for motor 5. If I disable the feature for the LEDstrip in the config menu again then A1 is correctly reserved for motor no. 5 of the hexacopter.

So here is the question: Why is the resource for the LED_strip not routed to B6 instead of A1?

jstremmler avatar Sep 11 '17 16:09 jstremmler

Good point. Omnibus V2 and above have a dedicated output for LEDs.

digitalentity avatar Sep 12 '17 01:09 digitalentity

Could this also be working for omnibus F4 Pro? (this is also called V2) Cant find port B6?

michaelvanderhoek avatar Sep 26 '17 09:09 michaelvanderhoek

Sure you can!

On the Omnibus F4 PRO board layout have a look at the bottom side. You will find there connector J1 with the 3 pinouts GND, 5V and LED_Strip. The pin for LED_Strip is connected to B6 of the processor and this is why iNAV should reserve LED_strip 1 as resource B6 instead of A1.The actual resource allocation prevents you from using LED's and a hexacopter configuration same time. Btw for a quadrocopter or a tricopter you wouldn't need this because you simply can solder the DIn port of the LED_Strip to A1 and activate the LED_Strips in the configuration menue of iNAV.

jstremmler avatar Sep 26 '17 10:09 jstremmler

Hi jstremmler,

Someone told me earlier that the dedicated led_strip on Omnibus F4 wasnt working at all. So what you are saying is that it IS possible.

I'm happy to hear that! Already was going to sell my hexa because the ideas with LEDs weren't possible

michaelvanderhoek avatar Sep 26 '17 11:09 michaelvanderhoek

Hi Michael,

pls note that with iNav version 1.7.3 it is actually not possible to use a LED_Strip on a hexacopter with an Omnibus F4 Pro FC, but with version 1.8.0 it will be possible. If you wanted to use a LED_Strip on a hexacopter with iNav version 1.7.3 you would have to use a different FC. I think, e.g., a SPRACINGF3 would work.....

jstremmler avatar Sep 26 '17 11:09 jstremmler

Will wait for 1.8 then! Looking forward to it!

michaelvanderhoek avatar Sep 26 '17 19:09 michaelvanderhoek

@jstremmler can you test #2233 on your board? Please note that on cloned boards from banggood ledstrip connector is not usable)

digitalentity avatar Oct 05 '17 10:10 digitalentity

I tested it and the LED's work, but due to a thunderstorm and bad weather I did not test version 1.7.4 in flight. Best wishes to Komsomolsk! (Have visited it!)

jstremmler avatar Oct 07 '17 16:10 jstremmler

Hi jstremmler, what kind of board do you own? An original or clone?

michaelvanderhoek avatar Oct 07 '17 21:10 michaelvanderhoek

I own both, but as digitalentity pointed out the clone cannot work because Chinese cloners connected the Led_Strip_Out pin of connector J1 on the board to a wrong pin of the processor.

jstremmler avatar Oct 08 '17 04:10 jstremmler

@jstremmler great! Then we can merge #2233. You should visit here again :wink:

digitalentity avatar Oct 08 '17 05:10 digitalentity

Jstremmler, oke tnx. I was just checking :D

michaelvanderhoek avatar Oct 08 '17 09:10 michaelvanderhoek

At least I read this and will know why my LEDs will stop working when I upgrade to 1.7.4. I'd suggest we make a release notes (if this wasn't already thought of).

teckel12 avatar Oct 11 '17 00:10 teckel12

@teckel12 good idea to mention that in release notes. There is a wiki work-in-progress page for that https://github.com/iNavFlight/inav/wiki/1.8.0-Release-notes

digitalentity avatar Oct 11 '17 00:10 digitalentity

Well, one couldn't use LED strips with a hexacopter in iNav 1.7.3 before because A1 for motor 5 was resourced for the LED_Strips.

To avoid confusion in iNAV version 1.7.4 I would like to suggest that reserving B6 for the LED _Strip is only happening with a hexacopter frame! With any quadcopter resource A1 should be reserved. Then people with quadcopters (and Omnibus clones) and people with hexacopters (and an original Omnibus) can use LED_strips.

jstremmler avatar Oct 11 '17 09:10 jstremmler

@jstremmler I'd rather support LEDSTRIP as it is on original Airbot boards. Trying to support all of Chinese clones is impossible.

digitalentity avatar Oct 11 '17 10:10 digitalentity

If you do this:

define LED_STRIP if defined(OMNIBUSF4PRO) || defined(OMNIBUSF4V3) define WS2811_PIN PA1 define WS2811_DMA_HANDLER_IDENTIFER DMA1_ST4_HANDLER define WS2811_DMA_STREAM DMA1_Stream4 define WS2811_DMA_CHANNEL DMA_Channel_6

then LED STRIP will work on the OMNIBUSF4PRO clone with BG

a6j avatar Oct 19 '17 18:10 a6j

Hi, I have a cloned (BG) Omnibus F4 v2 (pro? - prod. link), I connected the led strip to the J1 connector and I'm running iNav 1.8RC2, but the leds still aren't working...

My resource output says:

B05: LED1 OUT B06: LED STRIP OUT

So should it work or not? If it's true, that wiring is wrong, can I access the B06 from another pin?

putimir avatar Oct 25 '17 15:10 putimir

With a clone it probably won't work on J1. You need to o use the new OMNIBUSF4PRO_LEDSTRIPM5 target and connect the LED strip to M5 (PWM5).

teckel12 avatar Oct 25 '17 16:10 teckel12

I suppose this target isn't going to be pre-built, can I ask someone with a running dev environment to build it? Thank you!

putimir avatar Oct 25 '17 20:10 putimir