Forum Navigation
Please or Register to create posts and topics.

Roel's interfacing topic

PreviousPage 4 of 8Next

The power of air manager is you can use any arduino type to interface your hardware with fsx/p3d/fs2020 with lua.

you can also use the messageport option to write your code in arduino c+ and use airmanager to interface...very powerfull.

i interface my chrono’s and pressurepanel like that.

originally the software was used to create gauges, but since the support of arduino this has greatly improved.

Doing some research, I found a way to communicate to and from Arduino (thru IDE) with FSUIPC Lua. Using Arduino serial read write with Lua's read write serial, communicate character data back and forth.

Example: Gear / Hyd Lights BCN on = GLB1 = on to Lua and FSUIPC. GLB0 = off.

Communication with Jet45 offsets can be done the same way with Lua setting / reading the FSUIPC offset.

The advantage over Mobiflight and others is all that needs to run is FSUIPC, WideClient and Arduino script. The Lua is stored and executed with FSUIPC.

Another advantage is that any Arduino card can be used.

I plan to attach each of my arduinos to the rear of a panel. It derives it's 5v from the USB. The only connection is the USB to the PC. Switches, LEDs, etc. can be connected via jumper wires.

The disadvantage, some programming capability is needed.

Yes i know with LUA you can connect by serial port.
But i use Air Manager know, and this software uses the serial port also...
So for me this option does not work...

I agree with you. I haven't committed to Air Manager as the tutorials I can find show only using or creating gauges. Before I found Hangar45 and Jet45, I was creating gauges in XML (I have the whole Lear suite).

Can you recommend documentation or a tutorial that discusses how to work with FSUIPC?

I trust your input very much but not patient enough to struggle. I am a programmer by trade (retired) so am comfortable and quick with Sketches and Lua.

Thanks for all your help. I could never have the patience to do the volume that Ron and Jason deal with.

Well the only way is coding in .NET i know so far.
I have tried that, but for me this learning curve was to steep . 😉

FSUIPC Client DLL for .NET (paulhenty.com)

So i stick to Air Manager for most of the interfacing and Mobiflight for FSUIPC connections ( DU's /RMU's / FMS)

Air Manager is great for arduino use. The API is very comprehensive. I have been trying to find a way that Air Manager and FSUIPC can use the same LUA interpreter to code each other's function in the same module. Using the same language, one should be able to use the interpreter.

Not even near.

But stumbled on a technique to communicate back and forth Air Manager and FSUIPC.

Create an XML gauge containing LVars.

<Gauge Name="TrafficInfo" Version="1.0">

<Size X="400" Y="300" />

<Update Frequency="5" Hidden="No">

<!-- Clear old values -->

0 (&gt;L:TCAS_bearing,degrees)          (&gt;L:TCAS_distance,nmiles)       (&gt;L:TCAS_altitude, feet) [etc.]

</Update>

</Gauge>

The LVars are available as FSX/Prepar3D variables for use with the Air Manager API and also available as LVars to FSUIPC.

Both can read/write values.

According to the SDK, unit requirements are not needed but, personal opinion, good information.

Yes i had a similar post on the air manager forum.

this should be possible.

i haven’t tried this yet ...

 

 

 

I have learned something today...i bet you guys might know this allready..i didn't.

I mounted 2 12v fans in the avionics bay.
I have some unused 10k pot meters in the MIP , so i figured i wired one to the fans so i can regulate the fan speed.
This seemed to work, but after a few minutes fans began to spin slower and there was a...smell...
After some googling i learned you shoud never do this like i did.
For motor control you should use a PWM controller, NOT a pot meter!!

I did a test with another pot meter, they really catch on fire!!!
Flames came out.!

Not really an interfacing topic this, but wanted to share never the less.

Wow!  yeah that makes sense.  Fans will draw much more current through them than the pot can handle.  Typically a pot can handle up to 0.2 watts, the typical PC case fan can run up to 2 watts, so you are pushing 10x more current through the pot as it can handle.  Flame on!

Jason Hite FlightDeckSoft

Yep another gem to store away.

After having endured a fire in the sim, for another reason, I now have a big CO2 fire extinguisher in pride of place near by. Would not be pretty throwing water or dry chemical all over our hard work !

I suppose I could've bragged if there was anything left, that 'my Lear has an afterburner '........lol.

PreviousPage 4 of 8Next