Go Down

Topic: How to wire two push buttons (Read 4 times) previous topic - next topic

PaulS

Wire both switches the same way. Then, read the state of each switch, and act only if both switches are pressed.

Erika86

But...They don't disturb each other if connected on the same line? Thanks for the fast reply! :D

PaulS

Quote
They don't disturb each other if connected on the same line?

Do you mean to the same pin? If so, then, yes, they disturb each other. The Arduino can not tell whether one or two switches connected to the same pin are pressed. HIGH is HIGH, after all.

The switches need to be connected to different pins.

Erika86

No NO I meant the line of the breadboard..Sorry I'm still ignorant about electronic... :(

Go Up