Im in the middle of designing a pcb for a project. This project has stepper motors that get homed via limit switches. While designing the pcb I ran into a possible electronic problem.
So I was wondering if I connect things via like circuit shown in the attacted image if it's possible to get multiple output readings.
thanks in advance
Black wire: GND
Red wire: 3.3V
Green wire: Wire to digital pin
Then how would I get 3 different inputs from the limit switches on one pin. I haven't seen a different method to get what limit switch is pressed. The fact that I can get the different outputs is the whole reason why I asked the orginal question
The clip in your first post makes no sense, all the switches are connected in parallel then all three inputs D2, D3, D4 are connected together to the same connection.
Can you please tell us your electronics, programming, arduino, hardware experience?