@napo7 thanks for response. Actually I want to avoid such solution. The main reason is the reliability. Just want to have wired connection between switch and the actuator. I tried the solution with resistor ladder like this:
(5V)
|
(R=2kOhm)
|
(ADC PIN)
--- (SW1) --- (R=1kOhm) -----
-- (SW2) --- (R=1.5kOhm) --
--- (SW3) --- (R=3kOhm) -----
--- (GND)
So pressing different switches (SW1 to SW3) should result in different resistance seen between ADC PIN and GND. And to be able to detect multiple switches pressed at the same moment the resistor values must differ. Unfortunetly this makes very little differences between some combinations, and i'm afraid that on 5 meter long wire the noise will cause misdetections. Does anybody used such solution ?