AOA Indexer Project

Support for Arduino in combination with Air Manager and Air Player

Moderators: russ, Ralph

Message
Author
User avatar
Ralph
Posts: 6814
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AOA Indexer Project

#11 Post by Ralph »

Try this:

Code: Select all

led_AOAhigh = hw_output_add("ARDUINO_NANO_A_D6", false)

function new_data_fsx(AOA)

  hw_output_set(led_AOAhigh, AOA >=8.8)

end

fsx_variable_subscribe("INCIDENCE ALPHA", "Degrees", new_data_fsx)

DH14300
Posts: 18
Joined: Mon Sep 26, 2022 6:56 pm

Re: AOA Indexer Project

#12 Post by DH14300 »

Thanks Ralph!
Much simpler than I expected for sure. For my on-speed LED we will want a range (6.9-9.3 degrees in this example). Based on your feedback for AOAhigh I wrote the AOAnorm as follows:

led_AOAnorm = hw_output_add("ARDUINO_NANO_A_D4", false)

function new_data_fsx(AOA)
hw_output_set(led_AOAnorm, AOA >=6.9) and (led_AOAnorm, AOA <=9.3)
end

fsx_variable_subscribe("INCIDENCE ALPHA", "Degrees", new_data_fsx)


I'm guessing there's a better way to request a range of values? I will test the new out tonight and report back the results.
Dan

User avatar
Ralph
Posts: 6814
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AOA Indexer Project

#13 Post by Ralph »

Almost.

Code: Select all

hw_output_set(led_AOAnorm, AOA >=6.9 and AOA <=9.3)

DH14300
Posts: 18
Joined: Mon Sep 26, 2022 6:56 pm

Re: AOA Indexer Project

#14 Post by DH14300 »

Success!!!
Big thanks to Ralph, SimPassion and Sling for your input. The code for the Arduino Nano works perfectly. The AOA Indexer values are adjusted for the F-14 Grumman. Here's the code as it stands today:

Code: Select all

led_AOAlow = hw_output_add("ARDUINO_NANO_A_D2", false) -- Fast, Red Chevron
led_AOAnorm = hw_output_add("ARDUINO_NANO_A_D4", false) -- On Speed, Amber Donut
led_AOAhigh = hw_output_add("ARDUINO_NANO_A_D6", false) -- Slow, Green Chevron
function new_data_fsx(AOA)	
	  hw_output_set(led_AOAhigh, AOA >=11.1)  	
	  hw_output_set(led_AOAnorm, AOA >=9.75 and AOA <=11.53)
    	  hw_output_set(led_AOAlow, AOA <=10.17 and AOA >5.0)
end
fsx_variable_subscribe("INCIDENCE ALPHA", "Degrees", new_data_fsx)
Here's some pictures of my AOA Indexer in action:
A Little Slow
A Little Slow
On Speed
On Speed
A Little Fast
A Little Fast
I'm very happy to have Air Manager handle this project quite nicely. In the next few days I will move forward with the last part of this project: When the arrestor hook is stowed (not deployed) the AOA lights should flash. But for now this is super cool.
Thanks again everyone for you input!
Dan

User avatar
Ralph
Posts: 6814
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AOA Indexer Project

#15 Post by Ralph »

Ah, then you'll be diving into timers and global variables :D
You can also add bus power, so it does not show at cold and dark.

User avatar
Sling
Posts: 4919
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: AOA Indexer Project

#16 Post by Sling »

Nice one. Glad you have the basics working.

frumpy
Posts: 266
Joined: Sat Jan 30, 2016 12:01 pm

Re: AOA Indexer Project

#17 Post by frumpy »

I made an AOA indicator with a 3D-printer as well and got it running in MSFS and DCS (with the A4). Fun stuff! :)
Do you have any more info on your sim? Looks like a cool and rewarding project.

DH14300
Posts: 18
Joined: Mon Sep 26, 2022 6:56 pm

Re: AOA Indexer Project

#18 Post by DH14300 »

Frumpy,
About my flight simulator...
About 10+ years ago I 1st designed a working HUD assembly (using small LCD projector) and then built my small jet cockpit frame around it basically using 5/8" particle board and spruce spars. The outside is finished with 30mil aluminum sheeting and rivets. The cockpit layout includes 7 Flight Illusion gauges, 3 LCD screens, a Go Flight landing gear module, Saitek Radio, BIP panels and Logitek Pro rudder pedals, Thrustmaster Warthog flight stick and throttle plus a custom lighting control panel. My most recent addition is the functional AOA Indexer. The cockpit platform is isolated from a riser via rubber isolators with a buttkicker attached to it for added feel. The dedicated basement room is 12'x18' and covered in black felt with a floor-ceiling curved screen about 11' wide and uses an Optoma 4K projector for the main view. I have a Yamaha receiver providing the 5.1 sound. Here's a few pictures of my project:
Cockpit1
Cockpit1
Cockpit2
Cockpit2
Cockpit3
Cockpit3
Next in line
Next in line
Night Flying
Night Flying

DH14300
Posts: 18
Joined: Mon Sep 26, 2022 6:56 pm

Re: AOA Indexer Project

#19 Post by DH14300 »

More on my small jet simulator...
The software list includes P3Dv5 and DCS World primarily in Windows 10 flying mostly the F-18, F-14 & T-45. P3D is used in conjunction with Air Manager (newest addition), SPAD.Next, VLSO, GSControl (Flight Illusion gauges), AeroSystem737 avionics, RFN Tacan Guage, AI Carriers and Gemini Software Moving Map display. DCS World is supported with the Addon aircraft modules, Supercarrier, DCS-Bios, MFD Exporter by PW Developer and SimShaker.

User avatar
Ralph
Posts: 6814
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AOA Indexer Project

#20 Post by Ralph »

Nice work!
You can connect the Flight Illusion gauges to Air Manager if you want. It will not effect your current setup. Of course the Flight Illusion software should not be running when it is connected to Air Manager.
In theory there shouldn't be any difference. But if you want then you can add some more things like failures, no power conditions, etc...

Post Reply