Braeden108 Posted August 20, 2016 Posted August 20, 2016 Hey guys, I've got MMJoy2 working, love it, I was wondering if there was a way that I could simulate a 3 position switch (SP3T) with a 2 position switch (SPDT). I think this would be done by telling the computer if button 1 and button 2 are not pressed then press button 3. A virtual switch pretty much. I want to do this for the A-10's autopilot switch. Right now I have it running on a rotary switch. But I just don't like that as much as a nice toggle switch. Light the tires kick the fires! [sIGPIC][/sIGPIC]
Sokol1_br Posted August 20, 2016 Posted August 20, 2016 (edited) Using keymapper with "mapped key on press" and "mapped key on release" (SVMapper, Joy2Key, Xpadder, MacbMapper...) and wiring the switch in this way with diodes, you get a "ON-ON-ON" switch using a 2 position SPDT. A "hardware" only solution I dont know... MMjoy2 has more hardware options for buttons behavior (mode) than other controller boards, but not at this extend: image hosting 30 mb There's a topic about "on-on-on" switch there, but the search don't see on-on-on... Edited August 20, 2016 by Sokol1_br
Braeden108 Posted August 20, 2016 Author Posted August 20, 2016 (edited) This is exactly what I was looking for, thanks a million! I actually bought joy to key earlier so that I could use my throttle for various web design functions. Edited August 20, 2016 by Braeden108 Light the tires kick the fires! [sIGPIC][/sIGPIC]
Braeden108 Posted August 20, 2016 Author Posted August 20, 2016 So uhhh yeah, I wandered around in JoytoKey for a good 20 minutes. Couldn't find the button on release option. Where is it? Light the tires kick the fires! [sIGPIC][/sIGPIC]
Sokol1_br Posted August 20, 2016 Posted August 20, 2016 (edited) Is in Joy2Key version 6.0 - tab: Keyboard2 [input1] when the button is released (and[input2] when it's pressed). I think this should be inverted, but don't matter, just set and test. BTW - The SPDT switch wiring tip is from Xaoslaab in this topic: http://forums.eagle.ru/showpost.php?p=2702987&postcount=46 In MMJoy2 set the swtich buttons to send momentary commands. Edited August 20, 2016 by Sokol1_br
Goblin Posted August 20, 2016 Posted August 20, 2016 Or get a 3 way ON-OFF-ON DPDT switch and wire it like a SPDT ON-ON-ON switch...
RAZBAM_ELMO Posted August 20, 2016 Posted August 20, 2016 How would you wire that up exactly. Do you have a picture of one? Sent from my SM-G900W8 using Tapatalk Know and use all the capabilities in your airplane. If you don't, sooner or later, some guy who does use them all will kick your ass. — Dave 'Preacher' Pace, USN.
Goblin Posted August 20, 2016 Posted August 20, 2016 There are several versions available. You need a dual pole, dual throw (DPDT) switch that closes like in the picture above. The two upper images show the ON positions (switch thrown to either side) and the center OFF position like the last image. You short pin 1&5, link pin 2 to column and pins 3,4&6 to different rows in your button matrix. This will give you 3 different 'ON' states. Now, some ON-OFF-ON switches close in a different manner. I suggest you google "DPDT On-OFF-ON Switch" to find one that may suit you. Then google that switch to find the manufacturers datacards which will show you how the switch closes.
Goblin Posted August 21, 2016 Posted August 21, 2016 Here's a document I put together about making a ON-ON-ON switch... https://www.dropbox.com/s/gq6qeck3yijvxxi/DIY%20ON-ON-ON%20Switch.pdf?dl=0
Sokol1_br Posted August 21, 2016 Posted August 21, 2016 But thinking about the usage, since you will use Joy2Key you don't need wire a SPDT ON-OFF-ON with diodes in the suggested way. Wire normally, as button 1 and 2. In Joy2key set: Swtich up (button 1) = press A, on release B Switch down (button 2) press C, on release B Middle position don't press nothing, but moving the switch from Up or Down are sending B when leave the position. Can use for Autopilot, Landing Gear with neutral position, 3 position flaps...
RAZBAM_ELMO Posted August 21, 2016 Posted August 21, 2016 This system of wiring could be useful for a pre programmed board like a Leo bodnar without using an external software Sent from my SM-G900W8 using Tapatalk Know and use all the capabilities in your airplane. If you don't, sooner or later, some guy who does use them all will kick your ass. — Dave 'Preacher' Pace, USN.
Recommended Posts