This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RPi 3 Pypilot control via GPIO push buttons
#20
(2020-10-12, 02:10 AM)CapnKernel Wrote:
(2020-10-09, 10:03 PM)rastam4n Wrote: Did you need to adjust anything software wise to get this switch array to work? Can you show my how you wired it to the gpio pins?

No, just connected it, like this:

 https://forum.openmarine.net/showthread....3#pid11963

(2020-10-10, 01:04 AM)rastam4n Wrote: Thanks Sean, That would work fine, so what value of resistor should I put in series and what side of the switch should the resistor be placed? Between the gpio pin and the switch or between the switch and ground?

In another thread, Sean suggested a resistor between the GPIO and the keypad pin to provide some protection against possible short circuits.  I used a 1k resistor array and it works ok:



I've connected the LED to GPIO7, but I don't know if that's the recommended pin, or if the pin has sufficient drive current.
I believe the resistor Sean suggested was a current limiting resistor to GND avoiding a direct short to ground by the switch.
I have a number of these membrane keypads and they all have a resistance from 27-47 Ohm per switch, so no need for the resistor to GND.
My keypad has an LED as well with a separate wire for the power, not using it at the moment.
Reply


Messages In This Thread
RE: RPi 3 Pypilot control via GPIO push buttons - by SYWindveer - 2020-10-12, 12:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)