PDA

View Full Version : Why Do I need I/O Cards?



digirati
02-14-2010, 06:35 PM
Hi,
All this time I have come along just fine plugging things into the PC USB ports. A yoke, throttle, GoFlightMCP Pro, rudder, VRInsight mpanel, Saitek engine controls.

Why would I need an I/O Cards?
What exactly is an I/O card anyway in simpit context?
When do I need this beast and learn to configure it?

Thanks!

Mike.Powell
02-14-2010, 08:48 PM
I/O Cards provide the means to interface arbitrary hardware to your simulation computer. It's a family of interface products for building a simulator. "I/O Cards" is a development of the people of Open Cockpits. (www.opencockpit.com)

As long as the additions to your simpit are plug-and-play modules, you don't need a separate interface module. Once you want to add something else, you need to interface it if you intent that addition to interact with the simulation application. I/O Cards is one option. You can learn about them at the Open Cockpits website.

jnr641802
02-16-2010, 06:34 AM
I too am at the point in my sim build that I need to understand exactly what i/o cards do at a very and I mean very ....basic level,knowing nothing about electronics or programming alas.I have read articles on suppliers sites and read many posts on specific i/o queries,but these all assume the reader has a general basic knowledge on the subject.If you could see the lenghts I've gone to to avoid i/o cards/wiring/programming on my sim you'd probably have hysterics !!.Is there a definitive article someone can point me in the direction of to get me started on the subject as I have a built enclosed 737 cockpit just waiting to be fully utilised.


regards Jim

Philb737
02-16-2010, 01:41 PM
I recommend Mike Powell's Building Recreational Flight Simulators book!!!!!!!!:mrgreen:
www.mikesflightdeck.com
www.mikesflightdeckbooks.com

Sean Nixon
02-16-2010, 05:31 PM
I too am at the point in my sim build that I need to understand exactly what i/o cards do at a very and I mean very ....basic level,knowing nothing about electronics or programming alas.I have read articles on suppliers sites and read many posts on specific i/o queries,but these all assume the reader has a general basic knowledge on the subject.If you could see the lenghts I've gone to to avoid i/o cards/wiring/programming on my sim you'd probably have hysterics !!.Is there a definitive article someone can point me in the direction of to get me started on the subject as I have a built enclosed 737 cockpit just waiting to be fully utilised.


regards Jim

First of all Jim, we want to see pictures of your sim. A 737 enclosed cockpit? Where have you been hiding??? :mrgreen:

Input cards - As basic as I can think of, inside your joystick and keyboard, there is a little circuit board. This is an input card. It detects when a button is pressed on the joystick or keyboard, or joystick is moved. It is an input card because things YOU do are input into the computer. Windows has a driver for your keyboards and joysticks, so these types of input card are truly plug and play. In fact early cockpit builders would strip down a cheap keyboard and wire switches to it instead of the keys on your keyboard (that's a lot of switches connected to your sim for very little cash). All you had to do was set the required keyboard assignments in FS.

More complicated hardware, like the MCP, also have input cards, but as Windows does not recognise these by default, the manufacturer supplies the driver, making them plug and play.

Output cards do the opposite. They take a value FROM the PC and depending on what's connected to it, displays it. An example would be the landing gear lights. FS tells the output card whether that particular output is on or off, and the card lights up your red/green landing gear lights. As with input cards, you can buy some that already have the software/drivers written for them, such as the CPFlight MIP737 card, making them plug and play. You still need to wire out from the output card to your light or whatever. CPFlight, in association with FlyEngravity are very close, if not already releasing hardware that is truly plug and play, with no wiring by you at all. For example, the entire 737 overhead.

If you want to do something that you cant buy off the shelf, then you'll need to consider using generic input/output cards. As the card is generic and could be used for many applications, not just flight sims, you must tell the individual inputs and outputs what they are to do. This is done with some [simple???] programming.

This is roughly where I am at the moment. I have some Leo Bodnar input cards, a hardware MCP, and a MIP737, all of which need no programming. I will be looking at input/output cards for the overhead soon.

Hope that helps.

Sean

jnr641802
02-17-2010, 06:56 AM
Hello Sean thank you for a simple and thorough explanation,just what I needed.I didn't even realise that output cards were for annunciators etc.If you've never before tinkered with electronics/programming then it all appears a mystery to start with.It looks like a leo Bodnar card is a must as others have mentioned (any other cards do roughly the same??) so I will order one or other and experiment.Could I possibly ask for your advice on the following if you have time.

To experiment I want to make the gear lever,so a simple one way switch to start with (forget gear lights for now) will do to test it (push up ,gear raises,handle stowed up,,,,push up slightly again, gear lowers,handle then lowered/stowed) can you recommend a switch,thickness of wire to use,and any power supply (if required???).It's no problem if none of it works as I need to experiment so please don't worry about any suggestions going wrong and I promise you won't be plagued with other questions as you have your own build to worry about !!

With regards to my cockpit/photo, if your avatar is anything to go by you won't be getting much competition from me !!.I have had to fit it into a 9'x9' room (wife kindly donated the dining room) so there were many compromises.So far mip is pmdg737 screens repositioned/sized x3 monitor with 3x facias,no mcp yet although I am looking,reasonable-ish.... looking replica of throttle linked physically to ch throttle quad (with push/pull rods for fuel /brake.....see my problem!!),o/head monitor , 37" lcd left fwd view (wideview) and short throw projector fwd view 9' image.When I learn how to screenshot I'll maybe post a pic or two but don't expect to be impressed.......


regards jim

No Longer Active
02-17-2010, 09:29 AM
Remember This:

I/O Cards:

I = Input = What the human input is (you push button,you flick switch to tell flight sim program to do something)

Input On Card = The Card will accept your toggles and switches and turn their actions into functions that flight simulator acknowledges.


O = Output = The I/O card will output a signal to something like an LED on your overhead, flight sim will tell your I/O card to turn on an assigned LED

Output On Card = The Card will accept your LEDs and lights and turn them on when flight sim needs the LED to be lit.


What goes in must come out!

cscotthendry
02-18-2010, 01:35 AM
Here's an even simpler answer IO cards let you connect things like switches, variable resistors, relays and lights etc to your computer. These kinds of electronic controls are used in cockpits to control various parts of the airplanes behaviour.
Some types of controls are so commonly used that manufacturers have made them so that they are easy to connect. Things like joysticks fall into this category. Other things like single switches are not so commonly used. So to connect things like that we use IO cards.

jnr641802
02-18-2010, 07:38 AM
Thanks Scott and others for your help and patience !!,I think I'm beginning to grasp the i/o concept and will now experiment with either an opencockpit or Leo Bodnar board and see where I get........:-?


regards Jim

Riempie
02-19-2010, 04:28 PM
Example for the gear that is 6 leds and two switches

// 7.11 Gear Panel

Var 764 Static
{
&O_Nose = TESTBIT v764 0
&O_Left = TESTBIT v764 1
&O_Right = TESTBIT v764 2
&O_Gear = TESTBIT v764 3
&O_Doors = TESTBIT v764 4
}

Var 1 name O_Doors Link IOCARD_OUT Output 82
Var 2 name O_Gear Link IOCARD_OUT Output 83
Var 3 name O_Nose Link IOCARD_OUT Output 84
Var 4 name O_Left Link IOCARD_OUT Output 85
Var 5 name O_Right Link IOCARD_OUT Output 86


// Gear Lever:

Var 368 Static Link IOCARD_SW Input 73 Type I
Var 369 Static Link IOCARD_SW Input 72 Type I
Var 370 Static Link IOCARD_SW Input 74 Type I

This for the 767-300 Level D sioc software

Regards Pieter

jnr641802
02-19-2010, 05:17 PM
Pieter thanks for your help with your attached script,I've saved it just in case in the very distant future it might make sense to me (you never know...) but if you're ever in Lincolnshire UK please bring it with you and I'll buy the beers !!.Seriously, thank you for your help it is much appreciated and I will try... to understand it .


regards Jim

Riempie
02-21-2010, 07:10 AM
Example for the gear that is 6 leds and two switches

// 7.11 Gear Panel

Var 764 Static
{
&O_Nose = TESTBIT v764 0
&O_Left = TESTBIT v764 1
&O_Right = TESTBIT v764 2
&O_Gear = TESTBIT v764 3
&O_Doors = TESTBIT v764 4
}

Var 1 name O_Doors Link IOCARD_OUT Output 82
Var 2 name O_Gear Link IOCARD_OUT Output 83
Var 3 name O_Nose Link IOCARD_OUT Output 84
Var 4 name O_Left Link IOCARD_OUT Output 85
Var 5 name O_Right Link IOCARD_OUT Output 86


// Gear Lever:

Var 368 Static Link IOCARD_SW Input 73 Type I
Var 369 Static Link IOCARD_SW Input 72 Type I
Var 370 Static Link IOCARD_SW Input 74 Type I

This for the 767-300 Level D sioc software

Regards Pieter

Here is another script for the default aircraft using SIOC SOFTWARE from www.opencockpits.com. One needs a mastercard to connect the 2 switches and 6 leds if you want them to follow the gear extention and rectraction.

//Gear switches en leds ------------------------------------------------------------------------------------------

Var 9009, Link IOCARD_SW, Device 2, Input 003 // Gear Up SW
{
IF V9009 = 1
{
V9011 = 0
}
}

Var 9010, Link IOCARD_SW, Device 2, Input 001 // Gear Down Sw
{
IF V9010 = 1
{
V9011 = 16383
}
}

Var 9011, Link FSUIPC_OUT, Offset $0BE8, Length 4 // Gear Up/Down

Var 4001, Link FSUIPC_OUT, Offset $0BE8, Length 4 // Gear Offset, 0=up, 16383=dwn

// Var 4002, Link IOCARD_SW, Device 2, Input 1 // GEAR_SW, off=0=up, on=1=dwn
// {
// V4001 = V4002 * 16383
// }

Var 4003, Link FSUIPC_IN, Offset $0BEC, Length 4 // Nose Gear Green Offset, 0=up, 16383=dwn
{
IF V4003 = 16383
{
V4004 = 1
V4005 = 0
}
IF V4003 < 16383
{
V4004 = 0
V4005 = 1
}
IF V4003 = 0
{
V4004 = 0
V4005 = 0
}
}

Var 4004, Link IOCARD_OUT, Device 2, Output 19 // Nose Gear Green Led, 0=off, 1=on

Var 4005, Link IOCARD_OUT, Device 2, Output 27 // Nose Gear Red Led, 0=off, 1=on

Var 4006, Link FSUIPC_IN, Offset $0BF4, Length 4 // Left Gear Position Offset, 0=up, 16383=d
{
IF V4006 = 16383
{
V4007 = 1
V4008 = 0
}
IF V4006 < 16383
{
V4007 = 0
V4008 = 1
}
IF V4006 = 0
{
V4007 = 0
V4008 = 0
}
}

Var 4007, Link IOCARD_OUT, Device 2, Output 21 // Left Gear Green Led, 0=off, 1=on

Var 4008, Link IOCARD_OUT, Device 2, Output 25 // Left Gear Red Led, 0=off, 1=on

Var 4009, Link FSUIPC_IN, Offset $0BF0, Length 4 // Right Gear Position Offset, 0=up, 16383=
{
IF V4009 = 16383
{
V4010 = 1
V4011 = 0
}
IF V4009 < 16383
{
V4010 = 0
V4011 = 1
}
IF V4009 = 0
{
V4010 = 0
V4011 = 0
}
}

Var 4010, Link IOCARD_OUT, Device 2, Output 20 // Right Gear Green Led, 0=off, 1=on

Var 4011, Link IOCARD_OUT, Device 2, Output 26 // Right Gear Red Led, 0=off, 1=on


Regards Pieter

PS output numbers depend on the actual connection to the print.

jnr641802
02-21-2010, 08:25 AM
Thanks Pieter for your continued help,I will be honest with you though it is mostly going completely over my head:oops:.I will though persevere as I will not give up and your scripts will eventually :-? make sense hopefully......so thanks again for trying.


regards Jim

Riempie
02-23-2010, 04:34 PM
If you need any tutorial on sioc programming here is a wabsite http://www.lekseecon.nl/howto.html

Hope you work things out.;)

Pieter

jnr641802
02-24-2010, 05:57 AM
Thanks Pieter now that is very useful indeed ,it's all about knowing where to look,I've ordered some bits inc BU0836x to start with and that guide will have some relevance as I will hopefully if all goes well....be using some of their cards later.


regards jim