I want to program a switch for my button box

Hi guys.
I want to ask for help cause I'm new in arduino things. I have an arduino micro.
I want to build a button box for SIM RACING, ETS, ATS and I want to operate my switch as follows: When the switch is flicked up or down, it presses the button and releases it. It does NOT hold the button.
So when I flip it ON gives a signal and when I flip it OFF it also gives a signal.

P;ease show us a picture of your project. The switch and lever and flicking and flipping make no sense.

What is "it"? I can't make sense out of this.

I don't normally follow links but I took a look at that. There are a lot of buttons on that box and I don't know what the box is connected to, so it really doesn't help.

You need to describe your application and the functionality you want. Or maybe some gamer on here can help.

Really best to show us YOUR box, not someone else's box.

I make a wiring diagram quickly

It's a custom button box for a simulator.

It sounds like the OP has some toggle switches that do things like "gear up" in a flight sim. Doing that likely requires sending key data: "G key down, G key released" so that the sim can respond to the buttons in the box.

1 Like

Yes, your example is "landing gear up". I use a LED to make it understandable.
So when I switch it from OFF to ON position I need a HIGH signal just for a moment(50ms) to make the led light up, and when I switch from ON to OFF position I need a HIGH signal again for a moment(50ms) to make the led light up
LED light up simulates the signal of the button/switch signal

Study This:

This comes up often.

I’ll search for the other threads

Added: this is another, same thing I think

a7

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.