Results 1 to 8 of 8
  1. #1
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Nov 2010
    Location
    Barcelona (Spain)
    Posts
    8
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    USBOutput card dimmer control

    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)

  2. #2
    300+ Forum Addict



    Join Date
    Mar 2009
    Location
    Body in Netherlands, Hart in the Fairest Cape!
    Posts
    402
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBOutput card dimmer control

    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-D...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.

  3. #3
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Nov 2010
    Location
    Barcelona (Spain)
    Posts
    8
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBOutput card dimmer control

    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.

  4. #4
    150+ Forum Groupie pdpo's Avatar
    Join Date
    Nov 2005
    Location
    belgium
    Posts
    280
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBOutput card dimmer control

    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
    FS9+PM+AST+opencockpits

  5. #5
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBOutput card dimmer control

    Yes, you can dim all (at once) the outputs of the USB Outputs card in SIOC, no need to buy dimmers...

  6. #6
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Nov 2010
    Location
    Barcelona (Spain)
    Posts
    8
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBOutput card dimmer control

    Quote Originally Posted by kiek View Post
    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
    }
    }

  7. #7
    300+ Forum Addict



    Join Date
    Mar 2009
    Location
    Body in Netherlands, Hart in the Fairest Cape!
    Posts
    402
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBOutput card dimmer control

    Quote Originally Posted by kelety View Post
    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!

  8. #8
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Nov 2010
    Location
    Barcelona (Spain)
    Posts
    8
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBOutput card dimmer control

    Quote Originally Posted by capetonian View Post
    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

Similar Threads

  1. FS2P5 - 18 Dimmer
    By neuman5022 in forum FS2Phidget Users
    Replies: 4
    Last Post: 03-22-2010, 03:42 AM
  2. IO Cards Problem setting up Display Card on Master Card
    By Barrykensett in forum OpenCockpits General Discussion
    Replies: 1
    Last Post: 05-02-2009, 02:30 PM
  3. GPS Control
    By Buddym in forum I/O Interfacing Hardware and Software
    Replies: 0
    Last Post: 03-09-2009, 05:44 PM
  4. New input card disconnecting the other card
    By Michael Carter in forum Computer Hardware Setup
    Replies: 7
    Last Post: 01-23-2009, 12:01 PM
  5. How To? Dimmer for 5V Grain of Wheat Bulbs
    By XOrionFE in forum General Builder Questions All Aircraft Types
    Replies: 16
    Last Post: 01-12-2009, 06:37 PM