#LED Bar graph array

1 messages · Page 1 of 1 (latest)

brave zodiac
#

I’m looking to output the pitch and yaw trim indications from P3D to an external LED bar graph array …..can Mobiflight support such a thing? I searched here but came up negative results ……so I assume no one has done this???
Ta

wispy crow
#

Depends on how the LED bar graph array is wired. Is it just a set of individual LEDs?

gentle kite
#

Someone used graph bar in past and showed it working on this server. It was some time ago. Not sure if it was in P3D tho

wispy crow
#

as long as you can map each LED in the bar graph to a separate arduino pin, I can see doing this with one output row per LED and using a transform like if($ >= 1, 1, 0), if($ >= 2, 1, 0) etc. for each LED to turn them on as the output value increases. You would of course adjust the 1, 2, etc. to be whatever value cutoffs you want for each LED to light up.

#

and that transform is from memory, syntax might not be correct at all. I rarely use transforms, just kinda hinting at the solution

nocturne rivet
#

I was having the same idea of making a trim indicator where I use the programmable LED strip instead of a servo motor and pointer. I looked at the WS2812B and programming this is quite straightforward. @brave zodiac , do you have some programming skills? You can do this with a Mobiflight community device. I might try this out in the future once I finish my other community device projects and when I get my hands on a WA2812B led strip. 🙂

nocturne rivet
brave zodiac
#

Thanks for replies……I’m not a programmer so hoping for a way via MF and arduino…….
I’ll keep searching…..
Cheers

cunning lance
#

If you connect the leds individually to arduino pins, then turning them on and off is very easy, but sounds like you will consume very many pins.

#

A Led driver chip like DM13A might be just what you need.