#Wiring 2 tactile switch on 1 output...
1 messages · Page 1 of 1 (latest)
short answer is NO. There is no support for mixed mode arduino pin usage. You either define a pin as input or output... it can't be both.
even if technically it would be possible.
maybe I don't understand your diagram
how do you know which of the four buttons was pressed?
all four buttons appear to trigger the same button pin.
so to the arduino firmware, you are only pressing one button.
there is no button connected to any output pin in this diagram.
You said to connect 2 tactile switch on a 1 output in mobiflight
that is not the case in this diagram
I have 2 led tactile switch ina dualkorry and i decide to connect like this also one of button legs will daisy chain ground...also i want to activate other switch with same output...?
@tulip hatch what is the problem you are trying to solve?
I want it to function same when either or both are pressed...
that is a solution, what is the problem to solve?
Problem is that my button has 2 tactile switch and when i use it It doesnt activate the function because sometimes the other one that not connected pushing
ok, hmm, which button is it?
oh wait is that the Korry by Karl?
so it is two pushbutons and depending on which edge you push either one or both activate?
so you can wire both buttons to the same pin
each button has two contacts that connect when pushed, so just wire one to GND and the other to the arduino button input pin
grounds together, and button1 pin to arduino button pin, and button 2 pin to the same pin?
so either or both connecting makes the button signal
or you can just connect them together at the button end
so GND-GND--> arduino GND
BTN1-BTN2--> arduino button input pin
if this is not your design, you really should ask better instructions from the person who made this?
but that might work - do you have a multimeter?
because I am not sure which one of those 4 legs per button do connect and which direction
so with a multimeter you need to identify which pairs of pins connect
so find two pins on each switch that connect together when pressed
and take two of them to GND
and the other two to the arduino pin
and that should work
you just need to make sure the two pins you use per switch actually connect
and the switch has 4 pins
like this usually
so you need to use 1 or 2 and 3 or 4
1 and 2 does not work, and 3 + 4 does not work since they are always connected
and I think it might be like this, but check with a multimeter beeper