PDA

View Full Version : USBOutput card dimmer control



kelety
11-30-2010, 09:46 AM
Hi:
This is my first post in the forum, though I've been following many of the thread for a long time and they have been of enormous help in the many problems I have found up to now.

I'm in the middle stage of a 737 cockpit project, based on Opencockpit's Iocards an SIOC.

I'm trying to control the backlighting of the MIP using an USBOutput card; all leds used in it are connected to different outputs, in groups of 20 (not to overload each output) and I want to control the dimming through a 10K pot.

I have seen that you can establish a determinate level of intensity for all outputs of the card using the card's test soft (test_outputs.exe) but I want to control it through a pot, which means using SIOC.

Can someone tell me how to do that?

I know how to do that with the displays card (sending -99994 and then the value of the intensity) but, although that I have found that in the USBOutpout card, values of intensity range from 1 to 126, I don't know how to send that value to the card.
I have tested that it is not possible to send it to each output individualy, as any value different from 0 lights the leds with the level of intensity that you have established in the test program, so I can't use the value of the pot input (divided by 2, as the pot ranges from 1 to 255) directly to the output.

Is there a way of controling the dimm level of all the outputs of the card via SIOC?

I will be very greatful for any help

Andrés
Barcelona (Spain)

capetonian
11-30-2010, 01:51 PM
Hola Andres, Como Estas?

I went this way ... for 14 dollars (incl postage) I purchased one of these:
http://cgi.ebay.com/5-6-12-24V-LED-Dimmer-brightness-adjustable-controller-/180590360588?pt=LH_DefaultDomain_0&hash=item2a0c06380c

You can disconnect the pot and use your own., Using a pot with integrated on/odd switch you can make your MIP lighting switches as real as it gets!! I know this not what you asked, but It might be a plausible solution. Adios.

kelety
12-01-2010, 04:18 AM
Hi:

Thanks for your suggestion. Although I do not loose the hope that someone will finally tell me if it is possible or not to control dimm through SIOC in the USBOutputs card, I have followed your advice and yesterday I have bought 2 dimmers in Ebay. Will see how it goes when received.
Hasta Pronto

By the way, excellent Spanish.

pdpo
12-01-2010, 04:38 AM
HI there,

please go to the home page of opencockpits, on the right side there is a picture of the usboutput card. Click it and then go the the tab of downloads.
There is a manual for the card there. It explains how to use the analogic inputs of the card and the brightness control of the card. try it out...

Greetz Peter

kiek
12-01-2010, 05:15 AM
Yes, you can dim all (at once) the outputs of the USB Outputs card in SIOC, no need to buy dimmers...

kelety
12-02-2010, 05:20 AM
Yes, you can dim all (at once) the outputs of the USB Outputs card in SIOC, no need to buy dimmers...

Thanks Peter & Kiek.
The manual you download with the card (from the shop) is different and, when refering to the dimming, there are some words missing that changes the sence of the sentence in Spanish (or may be I was too dummy to understand it, that can happen). With the manual attatched to the image, I was able to solve it and works beautifully.
Thanks again, guys

Andrés

I attatch the script if it can be of help to others:
// ****************************************************************** // * Opencockpits - By Manolo Vélez - www.opencockpits.com
// ****************************************************************** // * FileName : backlight dimmer.txt

var 0000, name inicializacion
{
v0001 = 0 // leds off. If you want, you can adjust to power status (for Dark&Cold) or FSX value
}
Var 0001, name leds, Link IOCARD_OUT, Output 0, device 1,
Var 0002, name bright_c1, Link IOCARD_DISPLAY, Digit 1, Numbers 3, device 1
Var 0003, name POT1, Link IOCARD_ANALOGIC, Input #1, PosL 1, PosC 127, PosR 254, device 1
{
IF V0003 < 10 // to avoid that small values in pot makes the leds blink in off position. You can adjust this value to your pot and preferences, if neccessary.
{
V0001 = 0
V0002 = 127
}
IF V0003 >= 10
{
L0 = V0003 / 2
L1 = TRUNC L0
V0001 = 1
V0002 = L1
}
}

capetonian
12-02-2010, 09:55 AM
By the way, excellent Spanish.

Hi,

Glad to hear you have ordered dimmers and that you have a possible harddware / SIOC solution.
I have been to Barcelona at least once a year for either work or holiday cinse 2001. I love Barcelona, it reminds me alot of my hometown, Cape Town. I keep saying I am going to learn Spanish and then Catalan but that will probably never happen!!

Hasta luego!

kelety
12-02-2010, 03:05 PM
Hi,

I have been to Barcelona at least once a year for either work or holiday cinse 2001. I love Barcelona, it reminds me alot of my hometown, Cape Town. I keep saying I am going to learn Spanish and then Catalan but that will probably never happen!!

Hasta luego!

Hi:
Answered through private mail.
If not received, let me know
Hasta prontp

Andrés