stelios2000 Posted February 12, 2016 Author Posted February 12, 2016 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
Sokol1_br Posted February 12, 2016 Posted February 12, 2016 (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 February 12, 2016 by Sokol1_br
Sokol1_br Posted February 12, 2016 Posted February 12, 2016 (edited) eBay & China come to rescue. :) http://www.ebay.com/itm/Lot-3-3-Way-Toggle-Switch-Two-Mini-Toggle-Switch-On-On-On-DP3T-Guitar-125VAC-/111897462644?hash=item1a0d9bc774:m:mgghOQf5-jBIhJO8D0MuPzA http://www.ebay.com/itm/DPDT-3-position-on-on-on-mini-toggle-guitar-switch-/181902198338?hash=item2a5a374642:g:RokAAOSwj0NUmC~g http://www.ebay.com/itm/One-3-Way-Toggle-Switch-On-On-On-For-Guitar-Amp-/110656989797?hash=item19c3abaa65:m:miNPjml6IvR3huxLlmnq5xw http://www.ebay.com/itm/1pcs-Chrome-DPDT-3-Way-Guitar-Toggle-Switch-ON-ON-ON-/180738971928?hash=item2a14e1d918:g:8sYAAOxyIAZRyAWP Search for "toggle switch on-on-on" or "guitar on-on-on switch". Dual concentric knob for guitar - 18 and 15mm. http://www.ebay.com/itm/Electric-Guitar-Parts-Dual-Concentric-Volume-Tone-Blend-Control-Metal-Knob-Black-/190868209748?hash=item2c70a1c054:g:X6MAAOxy-o5R3P~s Edited February 13, 2016 by Sokol1_br
stelios2000 Posted February 13, 2016 Author Posted February 13, 2016 eBay & China come to rescue. :) http://www.ebay.com/itm/Lot-3-3-Way-Toggle-Switch-Two-Mini-Toggle-Switch-On-On-On-DP3T-Guitar-125VAC-/111897462644?hash=item1a0d9bc774:m:mgghOQf5-jBIhJO8D0MuPzA http://www.ebay.com/itm/DPDT-3-position-on-on-on-mini-toggle-guitar-switch-/181902198338?hash=item2a5a374642:g:RokAAOSwj0NUmC~g http://www.ebay.com/itm/One-3-Way-Toggle-Switch-On-On-On-For-Guitar-Amp-/110656989797?hash=item19c3abaa65:m:miNPjml6IvR3huxLlmnq5xw http://www.ebay.com/itm/1pcs-Chrome-DPDT-3-Way-Guitar-Toggle-Switch-ON-ON-ON-/180738971928?hash=item2a14e1d918:g:8sYAAOxyIAZRyAWP Search for "toggle switch on-on-on" or "guitar on-on-on switch". Dual concentric knob for guitar - 18 and 15mm. http://www.ebay.com/itm/Electric-Guitar-Parts-Dual-Concentric-Volume-Tone-Blend-Control-Metal-Knob-Black-/190868209748?hash=item2c70a1c054:g:X6MAAOxy-o5R3P~s my dear friend, thank you for your time to find them..... as i wrote earlier i dont want TOGGLE switches ....
Sokol1_br Posted February 13, 2016 Posted February 13, 2016 (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 February 13, 2016 by Sokol1_br
stelios2000 Posted February 13, 2016 Author Posted February 13, 2016 (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 February 13, 2016 by stelios2000
7rooper Posted February 13, 2016 Posted February 13, 2016 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
stelios2000 Posted February 13, 2016 Author Posted February 13, 2016 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:
Sokol1_br Posted February 13, 2016 Posted February 13, 2016 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.
stelios2000 Posted February 13, 2016 Author Posted February 13, 2016 (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 February 13, 2016 by stelios2000
7rooper Posted February 13, 2016 Posted February 13, 2016 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
7rooper Posted February 13, 2016 Posted February 13, 2016 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
hansangb Posted February 13, 2016 Posted February 13, 2016 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
7rooper Posted February 13, 2016 Posted February 13, 2016 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
stelios2000 Posted February 13, 2016 Author Posted February 13, 2016 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
stelios2000 Posted February 13, 2016 Author Posted February 13, 2016 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.
LynxDK Posted February 13, 2016 Posted February 13, 2016 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
hansangb Posted February 13, 2016 Posted February 13, 2016 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
stelios2000 Posted February 14, 2016 Author Posted February 14, 2016 Hello all, i am trying to find these rotary switches (1) one rotary over the other(works independently) for the (1) i found this word that explains how to make one double concentric rotary switch unfortunately it is in spanish http://www.opencockpits.com/index.php/en/download/item/Concentric%20rotary%20encoder%20tutorial%20?category_id=9
Sokol1_br Posted February 14, 2016 Posted February 14, 2016 Nice done tutorial, but a complicated way to... "reinvent the wheel". :) http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=98_75&products_id=196 http://www.leobodnar.com/shop/index.php?main_page=product_info&cPath=98_75&products_id=197 Anyway can be option for you - if your Opencockpits board dont support encoders.
xaoslaad Posted March 6, 2016 Posted March 6, 2016 (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. 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 March 6, 2016 by xaoslaad
Sokol1_br Posted March 6, 2016 Posted March 6, 2016 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.
xaoslaad Posted March 7, 2016 Posted March 7, 2016 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. 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.
stelios2000 Posted March 7, 2016 Author Posted March 7, 2016 i didnt understand....can you please draw it with the diodes ? thanks
Sokol1_br Posted March 7, 2016 Posted March 7, 2016 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...?
Recommended Posts