Cockpitbuilders.com

Main => Builders Discussions => Topic started by: navymustang on June 03, 2020, 10:27:42 AM

Title: P3D I/O card to drive LEDs
Post by: navymustang on June 03, 2020, 10:27:42 AM
I want to drive LEDs in the cockpit from an I/O card using Lua scripting. Turns out the Pokeys cards I have no longer have a supported library for P3D v5 and FSUIPC v6. Can anyone point me to an I/O card (prefer not using Arduino) that talks to Lua and FSUIPC. I will be mostly programming LVARs and not FSUIPC offsets.
Title: Re: P3D I/O card to drive LEDs
Post by: _alioth_ on June 04, 2020, 12:00:00 AM
Quote from: navymustang on June 03, 2020, 10:27:42 AM(prefer not using Arduino)

What is the problem with Arduino?
You can use a Lua script and arduino or teensy without problems to do this.

Arturo.
Title: Re: P3D I/O card to drive LEDs
Post by: navymustang on June 04, 2020, 05:58:57 AM
It just seems to be another level of coding that I would have to learn instead of a turn-key I/O card. I could be wrong.
Title: Re: P3D I/O card to drive LEDs
Post by: Trevor Hale on June 04, 2020, 08:43:43 AM
Jim, I would be happy to send you a copy of ONE my Arduino Codes, and the Matching Lua Script to go with it.

Its really easy, Copy Paste. My entire sim is Arduino/Lua based.

Trev
Title: Re: P3D I/O card to drive LEDs
Post by: navymustang on June 04, 2020, 09:10:29 AM
Trev, your offer is outstanding!  Will enjoy looking at what you have.
Jim
Title: Re: P3D I/O card to drive LEDs
Post by: Fess_ter_Geek on June 11, 2020, 12:16:56 AM
Excellent...Now you start your journey down the path of the dark side. 8)
Title: Re: P3D I/O card to drive LEDs
Post by: Trevor Hale on June 11, 2020, 04:14:55 AM
Which wouldn't have been possible without your help Fess!  I will never forget that!
Title: Re: P3D I/O card to drive LEDs
Post by: Masterploxis on June 15, 2020, 08:10:28 AM
Quote from: Trevor Hale on June 04, 2020, 08:43:43 AMMy entire sim is Arduino/Lua based.

Trev


Trevor,
how many Arduinos do you have to run the simulator ? How many for MIP, MCP, FMC, Overhead etc ? I worry that too many Arduino will make too many USB disconnect issues. Do you use USB Hubs, if yes - how is the reliability of the complete setup ? I made the mistake to start with Open Cockpits cards, then introduced pokeys and also some phidgets cards... So too many different products. I want to simplify everthing and use only Arduino with mobiflight wherever possible..

Cheers
Andy

www.masterploxis.de

Title: Re: P3D I/O card to drive LEDs
Post by: Trevor Hale on June 15, 2020, 08:48:30 AM
I am running (ALL PLUGGED INTO 1 USB HUB)

4- Mega 2560
1-Uno
1-Pro Micro
1-ESP8266
1-FDS Joystick Card for TQ

No Disconnects and since December 16th I have had usb's lockup 1 time. Probably something I did to piss it off with a lua script.

A simple reboot rectified the issue.

I will never regret dropping all the different interfaces and going strictly with Arduino, But I will make it clear I don't use 3rd party software like mobiflight I code my own LUA Scripts and talk to the arduino's through FSUIPC.

Everything in the cockpit is arduino based except the Yoke/Rudder Peddles (Pro Micro setup as game controller) and FDS Joystick card for the TQ.

Trev