Go Down

Topic: Solved please delete (Read 353 times) previous topic - next topic

c0rsa1r

Oct 22, 2015, 03:21 pm Last Edit: Oct 22, 2015, 04:37 pm by c0rsa1r
PLEASE DELETE
"The S2000 is nothing so much as a legend in its own time. If you don't like it, you probably haven't driven it hard enough." - Car culture

david_prentice

A membrane switch is nothing more than a regular switch.   (with a "moderate" ON resistance)
So you can read it like any other pushbutton.    i.e. connect common to GND,  the switch to a pin.   use pinMode(button, INPUT_PULLUP);

If you have a matrix keypad,   you would use exactly the same code as a 4x4 keypad.

You do not need any external electronics.

If you are very tight for pins,   you can use an Analog input pin to read 3 or 4 pins on a resistance ladder.    But it is a bit unreliable with dirty membrane.

David.

MAS3

Note to self:

NEVER reply to user c0rsa1r.
He/she doesn't appreciate help if offered, and doesn't want others to learn from their mistakes.
Have a look at "blink without delay".
Did you connect the grounds ?
Je kunt hier ook in het Nederlands terecht: http://arduino.cc/forum/index.php/board,77.0.html

Go Up