#8 positions rotary switch issues.

1 messages · Page 1 of 1 (latest)

burnt cipher
#

I noticed alot of the 8 position rotary switches that i used for my overhead and mip has the problem of not so distinct clicks and when I turn the switch CC or CW, some of my switches has the tendency to skip over to the next two positions in the sim. Very frustrating as this makes the physical switch and my sim switch out of sync. I find the 12 ways rotary switch (blue colour) more accurate and with distinct clicks and never jumps.
I read online that the problem with the 8 ways switch can be solved by using capacitor and resistor as well as configuring a preconditioned delay in MF. Can I do the configuration only to solve this problem? not keen to go the capacitor and resistor route.

I am sure I am not the only one having this issue as these particular 8 positions rotary switches are used by many sim builders and honestly they are not cheap either. I had to get extras from online electronic stores. couldnt find them sold on aliexpress. These are the one with long shaft that you can cut to length. (EDITED FOR CLARITY)

stiff delta
#

Can you please clarify what you mean by 8 ways rotary switch?
Is it an 8-position rotary switch with 8 poles connected to Arduino pins and one central pin connected to GND?

#

A link to such "8 way rotary switch" device would also help.

burnt cipher
#

sorry 8 positions 1 way. got my terms confused. 😁

stiff delta
#

Can you provide a link so we know exactly what you are talking about?

burnt cipher
#

@stiff delta , here is the 8 position rotary switch I was referring to and what I am using for my Overhead and MIP. https://www.leobodnar.com/shop/index.php?main_page=product_info&products_id=391&srsltid=AfmBOooAE4mzucj3h47h-PlKSZA8aIxYkZcFm5mJzaH5cFrKHLNzwnhR

#

My issue with the 8 positions one is that when ever I turn the shaft to each position, the sim switch will jump two positions making my physical and sim switch out of sync. I hope this is clear enough. Its like when I turn the switch, the contact will touch both positions causing the arduino to trigger the sim switch to go out of sync.

#

The 12 positions switch is very distinct click and hardly will cause the jump but the 8 positions I am having issues with.

#

So I read up online and the suggestion was to provide a resistor and capacitor to help prevent this. And also to configure a precondtion for a time delay on the sim switch when I turn the physical switch so it won't jump two position when I only want to turn one position left or right.

#

Maybe there is precondition I can set in MF to force the switch to stay in sync somehow? If there is, I have no clue how to set it.

#

Another thing, the 8 position rotary switch seems to be costlier in general compared with the 12 positions switch. The above link, the 12 position switch is £1.85 but in the first link, the 8 positions switch is £22. 😳

#

8 positions rotary switch issues.

#

I found this explanation.

#

I think this is what it is. Question is how to solve this so the sim switch won't randomly jump around.

stiff delta
#

Are you using a Leo Bodnar BBI-32 with this 8-position rotary switch? The link you provided is for a device designed to work with this board, not an arduino.

#

While the link for the 12-position rotary switch appears to be a normal rotary switch with 12 poles, like I described in my initial question.

#

Mobiflight does not support that 8-position switch (with only two wires) connected directly to an Arduino. However, it most likely will work with a Leo Bodnar BBI board.

burnt cipher
#

No, thats just the type of 8 and 12 positions rotary switch i am using. Not necesary the exact one. I have some spare 8 positions switch. Here is the picture of the actual one I used.

burnt cipher
#

@stiff delta nevermind. I think my rotary switch is the culprit. I pressed hard on the knob while turning, it seems to work ok with the occasional out of sync issue. But much less compared to me not pressing on the knob. I suspect its a contact issue. I will leave it for now until I get better rotary switches to replace them.

stiff delta
#

Sorry, but the link you provided for the 8-position rotary switch (Leo Bodnar switch) is totally different from the rotary switch you now showed.

burnt cipher
#

Its OK. I am pretty sure the rotary switch itself is the issue here. Its not affecting my simming experience. just annoying when the sim switch not sync properly with my physical switch. That's all. Thanks for your help Appreciate it.

hidden rose
#

Well, IF you wire properly the switch (8 different wires for all positions and different pins on Arduino) AND you use proper commands (not up dn, but different command for each position) THEN it can not get out of sync. It may jump 2 positions, but the the SIM switch also jumps to that pos.
Are these conditions true for your setup?

burnt cipher
#

@hidden rose All wired properly. Its not gltiching when I am not touching the knob. It jumps when I turn knob CW or CC only. And if I turn the knob fast'ish. If I slowly turn it, its fine. One of the switch I am having issue with is the autobrake. I am using "laminar/B738/knob/autobrake_up" and "laminar/B738/knob/autobrake_dn" commands. Can you advice how to do the command other than what I am using currently? I tried setting preconditions but that doesn't seem to work.

#

When I say precondition, I mean additional precondition. I am using dataref pos as a reference for the switch pos and set precondition to trigger the change of state. I added additional precondition just to see if it works but no luck there.

hidden rose
#

Hi,
Formerly I've also managed the autobreak with preconditions. But much easier witha a lua script.
Install flywith lua, drop this script there. Then new commands are created, that you can use for your switch.

#

Therefore your issue was not an issue with the switch itself, but a simple configurating issue 😉

burnt cipher
#

ah ok. I am using FWL with alot of my switches. will try this. if it works for me I can get most of my switches to be in sync. tqvm

burnt cipher
#

@hidden rose Its working perfectly. Thank you very much for the script. This will help me with my other switches.

burnt cipher
#

Will this work with toggle switches?

hidden rose
#

Well, I've seen lua commands for toggle switches as well, but honestly I dont need them. For a toggle switch the up and dn commands are perfect for the onpress and onrelease events.

burnt cipher
#

ok. I do this just to get the switches sync up the moment I start mobiflight.

I tested and your script actually help to do this with my rotary swutches which is great meaning my panel and my sim will always be in sync.

How do you do this so the whole cockpit is in sync?

hidden rose
#

Try to avoid the 'toggle' event. That may cause out of sync. Which switch gets out of sync ? And which command are you using?

burnt cipher
#

My rotary switch based on your script is working perfectly now and will get jn sync with the sim when I hit run on Mobiflight.

Its all my toggle switches that will be out of sync. I basically have to go through the whole panel to make sure they are all in sync with my panel and the sim panel before starting the flight.

Would be nice to have the event where when I hit run on MF, the panel and sim panel sync up.

hidden rose
#

Basic question: do you have auto retrigger checked in MF options?

burnt cipher
#

Yes, it is default when I installed MF. I checked and it is enabled to auto retrigger

hidden rose
#

I dont remember if you mention the aircraft you are flying with. If its Zibo you can try the attached lua which creates a lot of commands.

burnt cipher
#

Yes its Zibo. ok. will take a look at the scripts. Thank you.

fickle viper
burnt cipher
#

Bear with me.