PDA

View Full Version : Opencockpit and usb output



jespergb
02-18-2011, 06:13 PM
I want to build some "lights" using the opencockpits usb output board. There's only one GND on the board so how do i connect more LED's? Do i need some kind of split cable or how to do it?

Also what is the best way to connect to an LED - just solder the cable to the led-legs? or?

Sorry i'm kinda new to this - hope i can get some help ;)

dc8flightdeck
02-18-2011, 08:54 PM
If you are using the onboard USB power to light your LEDs you connect each LED ground to each individual output connector on the board, and the LED + side all connect together to the power + terminal on the board. Ignore the GND. The positive side of ALL the LEDs maust be ganged together to the + slot on the board.

If you use an external power supply then you connect the power supply - to the GND slot on the board and then connect the power supply + directly to your LED or light bulbs. Once again the + from ALL of the LEDs are ganged together.

So to sum it up, The 64 outputs at this card share a common +5V. This is different from the 38 outputs at a Master card that share a common GND.

In SIOC you do not have to take these differences into account, writing a '1' to an output in SIOC will always make the led light.



justin

pdpo
02-19-2011, 04:45 AM
Hi there,

also dont forget to protect the leds and the card with a resistor for each led (limit the current through the led)

one remarks about the above posst. The USBoutput card allows also tu use higher voltage for the outputs. Hust need to take care that the jumpers are in the right position so the higher voltage doesnt reach the usb port electronics. These are then powered by the USB port of the PC and the outputs receive there voltage from the external power. I think the card allows up to 50V external power. Of course if you only power leds then 5v is enough.

Greetz Peter

jespergb
02-19-2011, 05:02 AM
Hey,

Thanks for the answers - i'm still abit confused (not very good in electronics)

so lets say i have 2 LEDs i want to connect to that board. Where should the two wires from each leg of the LED go? Should they go to the numbers on the board? or - can you try to be more specific?

thanks!

dc8flightdeck
02-19-2011, 11:04 AM
(1) What voltage are your LEDs set up for? As Peter pointed out, LEDs are basically 3v DC. If you are using the card's onboard power it provides 5v. You will need a resistor on the positive side of each individual LED to make them work on 5v. Im not sure what size resistor you need for this. You should be able to purchase LEDs with resistors already connected. I purchase LEDs configured for 12v on Ebay.

(2) LEDs are ground and positive specific. The ground side of each LED connects to the numbers(outputs) side of the card. So one LED ground goes to 0, One LED ground goes to 1, etc. To quote the manual, "Numbered from 0 to 63, there we can connect the ground poles (GND) of leds, lamps or another elements." The posotive side to all of the LEDs you must connect together into one connected bundle and then connect this bundle to the Positive (V+) on the card.

(3) WARNING: If you want to connect an EXTERNAL power source for the outputs with a different voltage than +5V and you have the jumper1 and jumper2 connected, the card will be damaged.

Take a close look at page 3 of the manual. It shows 5 volt light bulbs (the circles with x through them) connected to the card and it also shows LEDs with resistors between the LEDs and the 5v power supply.

http://www.opencockpits.com/uploads/manual_usboutputs_eng.pdf

kiek
02-19-2011, 12:13 PM
As Peter pointed out, LEDs are basically 3v DC. If you are using the card's onboard power it provides 5v. You will need a resistor on the positive side of each individual LED to make them work on 5v.
]
Just for clarification: leds have a 'Forward Voltage' ranging from 1.5 to say 4.6 V. Most of them are 1.5 V. A led with a forward voltage of N Volt will work with any Voltage greater then N Volt. However, a led has no resistance, so that's where the resistor comes in. You have to put a resistor in series in order to limit the forward diode current (through the led) according to its specification (mostly 20 mill ampere), otherwise your led will burn to death immediately...

At this page you can calculate the resistor depending on Supplied Voltage, Forward Voltage and optimal diode current: led calculator (http://led.linear1.org/1led.wiz)

jespergb
02-20-2011, 05:03 AM
Ok, I think i get it now. Some more questions:

1. How do i know which resister to buy?

2. Should i buy a resister for each LED or just one for all of them set to the 5v on the board?

3. The LED's available at OC - are they 3v?

4. Is there a good way to collect all the wires into one (to be inserted to the 5v)? Is there some kind of device that will collect wires - or how should this be done?

Thanks in advance

kiek
02-20-2011, 02:17 PM
1) by calculation, see the led calculator link in my post
2) each led needs a resistor
3) that depends on the type of led, ask for specifications. But every electronics shop sells leds, there's no need to buy them from OC.
4) the only thing that's important is that he current can flow, so make good contact. How you physically solve that is up to your imagination, but it is certainly wise to use a bread board or something like that to solder the +5V wires together and let one wire go to the +5V.

dc8flightdeck
02-21-2011, 01:51 AM
These LEDs already have resistors attached,
http://cgi.ebay.com/Wired-LED-Bright-Red-3mm-5V-12-V-1-pc-/170400730430?pt=LH_DefaultDomain_0&hash=item27acaccd3e

Search Ebay and there are other colors available.

Regards,
Justin

dc8flightdeck
02-21-2011, 01:52 AM
Thank you for the correction, Im used to dealing with specific RGB LEDs that are about 3v.

OmniAtlas
01-19-2017, 11:33 PM
Genuine Airbus annunciator bulbs run at 5V @ 115 mA; from what I am reading here the Opencockpit USBOutput card may be an appropriate interfacing solution?

The website states each output can support up to 500 mA, with a maximum of 2.5 A for the board.

Thank you.

dc8flightdeck
01-20-2017, 11:10 AM
Yes you can do this.

However, to protect the Outputs card, rather than running bulbs directly from the card I use DC power from the outputs card to trip relays on a relay module. The modules use 12vDC minus to energize each relay, that allows you to use 5v- from each Output on the opencockpits card with a diode in line to protect the opencockpits card. This also eliminates any USB connection problems to the card cause by the light bulbs and the relays allow you to control any voltage type or load. The relay modules also give you the option of using normally open or normally closed circuits for each bulb. For example, I run all power to the sim though normally closed master relays and if SIOC sees that all power is off in the simulation then it opens the normally closed relays providing you with a dark/cold cockpit.

http://www.ebay.com/itm/16-Channel-5V-Relay-Module-Optocoupler-Protection-Power-Supply-Arduino-PIC-DSP-/201693645506?hash=item2ef5e0cac2:g:JasAAOSw4shYBRmN

I also suggest you place jumper 1 & 2 in the open positions on the USB Outputs card so you can power the card with external power and run the bulbs with external power rather than via the USB 5v


Genuine Airbus annunciator bulbs run at 5V @ 115 mA; from what I am reading here the Opencockpit USBOutput card may be an appropriate interfacing solution?

The website states each output can support up to 500 mA, with a maximum of 2.5 A for the board.

Thank you.

OmniAtlas
01-20-2017, 06:04 PM
Cheers for the detailed answer dc8flightdeck -- will also look into relays; and it seems they may be able to provide the appropriate current for each annunciator/push button?

From what I have been investigating dome and glare shield are the only lights triggered with Bat 1+2 (no ext or APU applied), and this would be useful to use from a cold and dark state.