Arduino-Transmitter-for-ELRS icon indicating copy to clipboard operation
Arduino-Transmitter-for-ELRS copied to clipboard

digital buttons doesnt work

Open womihako opened this issue 1 year ago • 1 comments

Hi, this is a nice project and i did it. So i have connection to the Flight controllor and also can see the analog inputs. but the switches doesnt work. maybe can get some help?

womihako avatar Aug 02 '24 08:08 womihako

are you sure you have the right gpio numbers? and you are using switches to connect those to ground?

I have 4 switches working; 2 2-pos and 2 3-pos and they all work ok. you have to check the code to make sure that all your switches have code that runs (not commented out, etc).

sercona avatar Aug 18 '24 14:08 sercona

How did you connect the switch. For 2-pos switch, it should be connect 1 pin to the one of the digital pin you declared and the other pin to ground. The digital should be pull up in the setup section. The digital read is high unless you use switch to "ground" it.

kkbin505 avatar Nov 12 '24 12:11 kkbin505

This is not a software issue, it may be related to some wiring issue. Please check your diagram.

kkbin505 avatar Dec 13 '24 01:12 kkbin505