Jump to content

Recommended Posts

Posted
Stelios, you can use any ON-OFF-ON toggle switch and edit the default.lua in the mirage input folder to let the game know what command you want the OFF position to do. Buying ON-ON-ON switches is a waste of money when you can do this

 

 

My dear friend,

i have bought AAALLLL the opencockpits cards (http://www.opencockpits.com/index.php/en/iocards/available-cards ) some years ago but i dont know how to use them...

i have ask for help many times here but unfortunately all have bought leo bodnar or arduino and they dont know these cards....

so i use a keyboard emulator (http://xkeys.com/xkeys/assets/documents/Pi3%20Matrix%20Board/Pi3%20Matrix%20Board.html) for only on/off switches and buttons just to play the game...

i would appreciate if somebody could help me with these cards as they seem to be fantastic(but not for someone who doesnt know)

thank you again guys

Posted (edited)
i tryed it....doesnt work....pity :(:(:(:(

 

Similar problem there and the guy get 3 ON working with 3 position switch:

 

http://forums.eagle.ru/showthread.php?t=147186&highlight=bridge

 

The middle pin should be the common for all 3 others.

 

EDIT - The guy are using a ON-ON-ON switch, from Mouser, not a ON-OFF-ON:

 

http://br.mouser.com/search/ProductDetail.aspx?Apem%2f644H-2%2f&qs=%2fs1LKTamv0z1Fm2vV5nWZw==

 

Unfortunatelly this kind of switch is expensive - Digikey options:

 

http://www.digikey.com/product-search/en/switches/toggle-switches/1114212?FV=fff40011%2Cfff80064&mnonly=0&newproducts=0&ColumnSort=1000011&page=1&stock=0&pbfree=0&rohs=0&k=DPDT+ON-ON-ON&quantity=&ptm=0&fid=0&pageSize=250

Edited by Sokol1_br
Posted (edited)

as i wrote earlier i dont want TOGGLE switches ....

 

:huh: ???

 

Wiki - "the phrase "toggle switch" is applied to a switch with a short handle and a positive snap-action, whether it actually contains a toggle mechanism or not".

 

The picture that you post previous show a "toggle switch" type:

 

http://s11.postimg.org/q1zik52sy/image.jpg

 

The "toggle switch" lever operation can be:

 

ON-OF

ON-ON

ON-OFF-ON

(ON)-OFF-ON - momentary in one side: Mon-Off-On

(ON)-OFF-(ON) - momentary in both sides, OFF in middle: Mon-Off-Mon

ON-ON-ON

(ON)-ON-ON - momentary in one side, ON in middle: Mon-On-On

(ON)-ON-(ON) - momentary in both sides, ON in middle: Mon-On-Mon (1)

 

The one in your picture use the ON-OFF-ON operation.

 

Besides this are other variations, example, models that can lock the lever in one or both positions - require pull-up the lever to change the position.

To not say the custom types like the 4 positions and "inverted Y" operation in (DCS) Ka-50...

 

If you dont want a "TOGGLE switch" - generically, the kind with short lever (typically round or flat) for operation - what kind of switch want?

 

(1) Digikey list of the type:

 

http://www.digikey.com/product-search/en/switches/toggle-switches/1114212?k=&pv235=7&FV=fff40011%2Cfff80064&mnonly=0&newproducts=0&ColumnSort=0&page=1&quantity=0&ptm=0&fid=0&pageSize=500

Edited by Sokol1_br
Posted (edited)
:huh: ???

 

Wiki - "the phrase "toggle switch" is applied to a switch with a short handle and a positive snap-action, whether it actually contains a toggle mechanism or not".

 

The picture that you post previous show a "toggle switch" type:

 

http://s11.postimg.org/q1zik52sy/image.jpg

 

The "toggle switch" lever operation can be:

 

ON-OF

ON-ON

ON-OFF-ON

(ON)-OFF-ON - momentary in one side: Mon-Off-On

(ON)-OFF-(ON) - momentary in both sides, OFF in middle: Mon-Off-Mon

ON-ON-ON

(ON)-ON-ON - momentary in one side, ON in middle: Mon-On-On

(ON)-ON-(ON) - momentary in both sides, ON in middle: Mon-On-Mon (1)

 

The one in your picture use the ON-OFF-ON operation.

 

Besides this are other variations, example, models that can lock the lever in one or both positions - require pull-up the lever to change the position.

To not say the custom types like the 4 positions and "inverted Y" operation in (DCS) Ka-50...

 

If you dont want a "TOGGLE switch" - generically, the kind with short lever (typically round or flat) for operation - what kind of switch want?

 

(1) Digikey list of the type:

 

http://www.digikey.com/product-search/en/switches/toggle-switches/1114212?k=&pv235=7&FV=fff40011%2Cfff80064&mnonly=0&newproducts=0&ColumnSort=0&page=1&quantity=0&ptm=0&fid=0&pageSize=500

 

 

 

my dear friend....TOGGLE switch means (as far as i know -but maybe i am mistaken - ) that when you leave the switch it has a spring that RETURNS the switch at the middle by itself....I DONT WANT THIS.

i want switch that when you select a position STAYS where it is and not return back... i want NO spring switches....

thanks again

Edited by stelios2000
Posted

Everyone and vendor understand toggle as a switch with a lever that either stays in the selected position or returns to the center. So if you want to order toggle switches that STAY in the position you left it, look them up as ON-OFF-ON or ON-OFF

If what you want is self reversible toggle switches, order them as

(ON)-OFF-(ON) or (ON)-OFF

The parenthesis ( ) means that positions is momentary

My rig specs:

Intel Core i7 4770 @3.4Ghz // Corsair 16GB DDR3 // MoBo Asus Z87K // HDD 1TB 7200RPM // eVGA Nvidia GTX 760GT 2GB DDR5 // LG 3D 47" 1920x1080 // Thrustmaster Warthog HOTAS // Saitek Combat Pro Pedals // Thrustmaster MFD Cougar pack // PS3 Eye + FTNOIR

Posted
Everyone and vendor understand toggle as a switch with a lever that either stays in the selected position or returns to the center. So if you want to order toggle switches that STAY in the position you left it, look them up as ON-OFF-ON or ON-OFF

If what you want is self reversible toggle switches, order them as

(ON)-OFF-(ON) or (ON)-OFF

The parenthesis ( ) means that positions is momentary

 

understood :thumbup::thumbup::thumbup:

Posted
my dear friend....TOGGLE switch means (as far as i know -but maybe i am mistaken - ) that when you leave the switch it has a spring that RETURNS the switch at the middle by itself....I DONT WANT THIS.

i want switch that when you select a position STAYS where it is and not return back... i want NO spring switches....

thanks again

 

Then is ON-ON-ON type, that allow 3 positions always ON - like the guitar ones linked in eBay.

 

What you DONT want is the momentary - Mon or (ON) types, the ( ) means momentary, had spring to return the lever to center position.

Posted (edited)
Then is ON-ON-ON type, that allow 3 positions always ON - like the guitar ones linked in eBay.

 

What you DONT want is the momentary - Mon or (ON) types, the ( ) means momentary, had spring to return the lever to center position.

 

 

correct my friend :thumbup:

even though i prefer the 12V (big size) switch ON-ON-ON

Edited by stelios2000
Posted

Anyway, ON-ON-ON toggle switches are very rare in my country and therefore more expensive. I used cheaper ON-OFF-ON switches and edit the default.lua to let the game know what OFF should do. This obviously works with ANY controller board in the market! Some of this boards come with extra software to allow you to bind this OFF position but I prefer the default.lua way since I'm trying to fire up my sim with the least extra software possible!!

My rig specs:

Intel Core i7 4770 @3.4Ghz // Corsair 16GB DDR3 // MoBo Asus Z87K // HDD 1TB 7200RPM // eVGA Nvidia GTX 760GT 2GB DDR5 // LG 3D 47" 1920x1080 // Thrustmaster Warthog HOTAS // Saitek Combat Pro Pedals // Thrustmaster MFD Cougar pack // PS3 Eye + FTNOIR

Posted
correct my friend :thumbup:

even though i prefer the 12V (big size) switch ON-ON-ON

Correct! Use the big toggle switches 15/32" bushing size or your panel is gonna look odd

My rig specs:

Intel Core i7 4770 @3.4Ghz // Corsair 16GB DDR3 // MoBo Asus Z87K // HDD 1TB 7200RPM // eVGA Nvidia GTX 760GT 2GB DDR5 // LG 3D 47" 1920x1080 // Thrustmaster Warthog HOTAS // Saitek Combat Pro Pedals // Thrustmaster MFD Cougar pack // PS3 Eye + FTNOIR

Posted
my dear friend....TOGGLE switch means (as far as i know -but maybe i am mistaken - ) that when you leave the switch it has a spring that RETURNS the switch at the middle by itself....I DONT WANT THIS.

i want switch that when you select a position STAYS where it is and not return back... i want NO spring switches....

thanks again

 

Stelios,

have you read this by Hans?

 

http://forums.eagle.ru/showpost.php?p=2017801&postcount=52

 

I have a double throw single pole switches (the ones you showed originally) that allows me to do this in DCS A10 (the AHCC panel).

 

UP position: ARM Laser

Middle position: SAFE

Down position: TRAIN

 

In other words, the three positions are defined to do three different functions. I think this is all you are after, no? It sure seems to me that you're making it to be more difficult than it needs to be. But maybe I'm missing something.

 

 

Isn't this what you are trying to accomplish?

hsb

HW Spec in Spoiler

---

 

i7-10700K Direct-To-Die/OC'ed to 5.1GHz, MSI Z490 MB, 32GB DDR4 3200MHz, EVGA 2080 Ti FTW3, NVMe+SSD, Win 10 x64 Pro, MFG, Warthog, TM MFDs, Komodo Huey set, Rverbe G1

 

Posted

I think the same. He's making a storm in glass of water. I already explained him what needs to be done but I think he's a little bit stubborn....

My rig specs:

Intel Core i7 4770 @3.4Ghz // Corsair 16GB DDR3 // MoBo Asus Z87K // HDD 1TB 7200RPM // eVGA Nvidia GTX 760GT 2GB DDR5 // LG 3D 47" 1920x1080 // Thrustmaster Warthog HOTAS // Saitek Combat Pro Pedals // Thrustmaster MFD Cougar pack // PS3 Eye + FTNOIR

Posted
Stelios,

have you read this by Hans?

 

http://forums.eagle.ru/showpost.php?p=2017801&postcount=52

 

I have a double throw single pole switches (the ones you showed originally) that allows me to do this in DCS A10 (the AHCC panel).

 

UP position: ARM Laser

Middle position: SAFE

Down position: TRAIN

 

In other words, the three positions are defined to do three different functions. I think this is all you are after, no? It sure seems to me that you're making it to be more difficult than it needs to be. But maybe I'm missing something.

 

 

Isn't this what you are trying to accomplish?

 

 

hi,

that is correct....but what cards are you using? i have opencockpits.com cards

thanks in advance

Posted
I think the same. He's making a storm in glass of water. I already explained him what needs to be done but I think he's a little bit stubborn....

 

 

stubborn?

if you have read what i wrote you could understand that "i have ALL the

http://www.opencockpits.com/catalog/electronic-cards-iocards-c-21.html cards.... "

i gave almost 500€ euros for the cards and cant afford to buy others such as Leo bodnar etc.

Nobody answered me when i asked for help and i assumed you dont use them....

so as i wrote i use a keyboard emulator to achieve the switches and the buttons for the basic.

keyboard emulator understand only the ON situation....the OFF is un-programmable.

Posted

it sounds like that softwware is limited.

 

Because you can use other software, like SV Mapper. there you can tell the software to emulate a specific key then a switch is activated.

It dosnt see that the switch is hold in the activated position, but when you turn if off again, you can tell the software to emulate another or the same Key, or even a macro if you want.

 

That makes it really simple to make Plug And Play panels from simple joysticks etc.

 

So maybe you should, if your computer sees all the switches through those boards you bought, run the whole thing through another software, so you can get key strokes every time you flip a switch. And then you can just use real cheap and simple on-off-on buttons.

Regards.

LynxDK

 

[sIGPIC][/sIGPIC]

Instagram

Posted
hi,

that is correct....but what cards are you using? i have opencockpits.com cards

thanks in advance

 

 

I'm using GP-WIZ40 board.

 

http://groovygamegear.com/webstore/index.php?main_page=product_info&products_id=235

 

 

Have you played around with the default.lua files? It may be a software limitation and not a hardware one. Worth a shot.

hsb

HW Spec in Spoiler

---

 

i7-10700K Direct-To-Die/OC'ed to 5.1GHz, MSI Z490 MB, 32GB DDR4 3200MHz, EVGA 2080 Ti FTW3, NVMe+SSD, Win 10 x64 Pro, MFG, Warthog, TM MFDs, Komodo Huey set, Rverbe G1

 

  • 3 weeks later...
Posted (edited)
Other type that will be difficult to find (if exist)...

 

What (pit'builder) people do is use a DPDT* ON-OFF-ON switch,

a swtich with double electrical circuit but only one lever, and wire in this way.

 

ononon.gif

 

So in all 3 positions of the lever: Up - Middle - Down one ON circuit is closed.

 

What do the trick is the wire jumper (red) between some poles.

 

* DPDT switch is the one with 6 pins in the back:

 

http://cdo.seymourduncan.com/blog/wp-content/uploads/DPDT-300x291.jpg

 

This is how I did it with mmjoy2. Turned a dpdt into an on-on-on spdt, which works great for a mode switch. I flip 6 encoders/push buttons between 3 states, so I can do nice things like flip between controlling FM, UHF, and AM radios with the same encoders, etc.

 

In a pinch you can use a on-off-on spdt and a couple diodes to look for reverse voltage for the center pin to determine it's 'on' (no voltage would be the on position for center). This is what I did for a few days while waiting for my dpdt to come in the mail.

 

Both on pins are wired to a third pin (think like a y cable). The diodes prevent each of the on positions from turning on the other. When either position is selected the third wire is lit up as well. When the third pin is off you know you're un center just by looking at the state of a single pin.

 

It worked fine, albeit the wiring was a bit icky. The dpdt was a much nicer option once it arrived.

Edited by xaoslaad
Posted
xaoslaad

 

You can make a sketch with this diode wiring in on-off-on switch?

 

On-On-On switches are not easy to find there.

With an on-off-on i'd normally look in this case for pin 0 or 1 to be on.

attachment.php?attachmentid=136141&stc=1&d=1457319087

 

With this case I'd look for 0 or 1 to be on and 2 to be off. I demonstrated with resistors because I dont have diodes handy. Of course this would work in a full blown button matrix as well.

attachment.php?attachmentid=136142&stc=1&d=1457319087

20160306_214207.thumb.jpg.f363a6394a701e105e89da1baae8f688.jpg

20160306_214819.thumb.jpg.4130580041cd0db25503c57f62b5ed52.jpg

Posted

In the picture one resistor have the strips toward Arduino and another toward the switch...

Is this or both strips in direction of Arduino in case of diode?

 

Looks this work in this way:

 

Switch lever UP button 0 and 2 ON

Switch lever DOWN button 1 and 2 ON

Switch lever in MIDDLE all buttons OFF

 

Then is need a keymapper with "on press and on release" functions (Autohotkey, XPdadder, Joy2key, SVMapper...) or if DCS plane allow edit LUA set command only OFF position of switch 2...?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...